-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #598 from WebFreak001/skip-private-complete
make private symbols not show up in auto complete merged-on-behalf-of: Basile-z <Basile-z@users.noreply.github.com>
- Loading branch information
Showing
12 changed files
with
105 additions
and
8 deletions.
There are no files selected for viewing
Submodule dsymbol
updated
4 files
+10 −10 | src/dsymbol/conversion/first.d | |
+6 −0 | src/dsymbol/scope_.d | |
+4 −1 | src/dsymbol/semantic.d | |
+4 −1 | src/dsymbol/symbol.d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module tc_access_modifiers.bar; | ||
|
||
class Helper | ||
{ | ||
private int mfieldPrivate; | ||
protected int mfieldProtected; | ||
package int mfieldPackage; | ||
int mfieldPublic; | ||
|
||
private void mfuncPrivate() {} | ||
public void mfuncPublic() {} | ||
private static void mfuncPrivateStatic() {} | ||
public static void mfuncPublicStatic() {} | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
identifiers | ||
mfieldPackage v | ||
mfieldProtected v | ||
mfieldPublic v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
identifiers | ||
mfuncPublic f | ||
mfuncPublicStatic f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
identifiers | ||
myprivate v | ||
mypublic v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
identifiers | ||
mfieldPackage v | ||
mfieldProtected v | ||
mfieldPublic v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import tc_access_modifiers.bar; | ||
|
||
struct X | ||
{ | ||
public int mypublic; | ||
private int myprivate; | ||
} | ||
|
||
void main() | ||
{ | ||
Helper helper; | ||
helper.mfield; | ||
helper.mfunc; | ||
X foo; | ||
foo.myp; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import tc_access_modifiers.bar; | ||
|
||
class Subclass : Helper | ||
{ | ||
this() | ||
{ | ||
this.mfield | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
set -e | ||
set -u | ||
|
||
rm -f actual1.txt actual2.txt actual3.txt actual0.txt | ||
|
||
../../bin/dcd-client $1 file1.d -c 137 | sed s\""$(dirname "$(pwd)")"\"\" > actual0.txt | ||
diff actual0.txt expected0.txt | ||
|
||
../../bin/dcd-client $1 -I bar.d | ||
|
||
../../bin/dcd-client $1 file1.d -c 137 | sed s\""$(dirname "$(pwd)")"\"\" > actual1.txt | ||
diff actual1.txt expected1.txt | ||
|
||
../../bin/dcd-client $1 file1.d -c 152 | sed s\""$(dirname "$(pwd)")"\"\" > actual1_1.txt | ||
diff actual1_1.txt expected1_1.txt | ||
|
||
../../bin/dcd-client $1 file1.d -c 170 | sed s\""$(dirname "$(pwd)")"\"\" > actual2.txt | ||
diff actual2.txt expected2.txt | ||
|
||
../../bin/dcd-client $1 file2.d -c 83 | sed s\""$(dirname "$(pwd)")"\"\" > actual3.txt | ||
diff actual3.txt expected3.txt | ||
|
||
../../bin/dcd-client $1 -R bar.d | ||
|
||
../../bin/dcd-client $1 file1.d -c 137 | sed s\""$(dirname "$(pwd)")"\"\" > actual0.txt | ||
diff actual0.txt expected0.txt |