allow completion of tempalte parameter standard properties (#575)

allow completion of template parameter standard properties
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
This commit is contained in:
BBasile 2019-01-13 09:44:25 +01:00 committed by The Dlang Bot
parent fc061b148b
commit 144cc4ed41
9 changed files with 25 additions and 4 deletions

View File

@ -139,6 +139,8 @@ tab character, followed by a completion kind
* l - alias name * l - alias name
* t - template name * t - template name
* T - mixin template name * T - mixin template name
* h - template type parameter (when no colon constraint)
* p - template variadic parameter
#### Example output #### Example output

@ -1 +1 @@
Subproject commit 4606b1608e77af7df58e5d03e18327f623ec25e9 Subproject commit 3da6fb97664f3e0156f62f2f8bd21de3b54ccefc

View File

@ -7,7 +7,7 @@
], ],
"license": "GPL-3.0", "license": "GPL-3.0",
"dependencies": { "dependencies": {
"dsymbol": "~>0.5.7", "dsymbol": "~>0.6.0",
"libdparse": "~>0.10.10", "libdparse": "~>0.10.10",
"msgpack-d": "~>1.0.0-beta.7", "msgpack-d": "~>1.0.0-beta.7",
"stdx-allocator": "~>2.77.5" "stdx-allocator": "~>2.77.5"

View File

@ -1,5 +1,5 @@
identifiers identifiers
C l C h
alignof k alignof k
i v i v
init k init k

View File

@ -1,5 +1,5 @@
identifiers identifiers
T l T h
alignof k alignof k
bar f bar f
init k init k

View File

@ -0,0 +1,4 @@
identifiers
init k
length k
stringof k

View File

@ -0,0 +1,6 @@
identifiers
alignof k
init k
mangleof k
sizeof k
stringof k

View File

@ -0,0 +1 @@
struct Foo(T...){T.} struct Bar(T){T.}

View File

@ -0,0 +1,8 @@
set -e
set -u
../../bin/dcd-client $1 file.d -c19 > actual1.txt
diff actual1.txt expected1.txt
../../bin/dcd-client $1 file.d -c37 > actual2.txt
diff actual2.txt expected2.txt