Add support for auto anon class completion, close #532

This commit is contained in:
Basile Burg 2018-09-16 16:26:21 +02:00
parent 26663f1a59
commit ff3c7d212b
8 changed files with 37 additions and 3 deletions

@ -1 +1 @@
Subproject commit 87c880c5186207528e68620ac0c73d6422f115b8
Subproject commit 47f471114ad272dc0cd41996c7977413d7a68d63

View File

@ -7,7 +7,7 @@
],
"license": "GPL-3.0",
"dependencies": {
"dsymbol": "~>0.4.5",
"dsymbol": "~>0.4.8",
"libdparse": "~>0.9.8",
"msgpack-d": "~>1.0.0-beta.3",
"stdx-allocator": "~>2.77.2"

@ -1 +1 @@
Subproject commit 698111e7a55d9a5613b43b472588718e2a6b527b
Subproject commit 1556a80bccbe4bf40ed78ec7144011d3496ee334

View File

@ -0,0 +1,13 @@
identifiers
__monitor v
__vptr v
alignof k
classinfo v
foo f
i v
init k
j v
mangleof k
sizeof k
stringof k
tupleof k

View File

@ -0,0 +1,12 @@
identifiers
__monitor v
__vptr v
alignof k
classinfo v
foo f
init k
j v
mangleof k
sizeof k
stringof k
tupleof k

View File

@ -0,0 +1 @@
class Bar {int i;} void main(){auto b = new class Bar {int j; void foo();};b.;}

View File

@ -0,0 +1 @@
void main(){auto b = new class {int j; void foo();}; b.}

7
tests/tc_anon_class/run.sh Executable file
View File

@ -0,0 +1,7 @@
set -e
set -u
../../bin/dcd-client $1 file1.d -c77 > actual1.txt
diff actual1.txt expected1.txt
../../bin/dcd-client $1 file2.d -c55 > actual2.txt
diff actual2.txt expected2.txt