From 94c8670efc5ed6e3149aab0c3a2f687d8033599a Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Sun, 13 May 2018 21:41:22 +0200 Subject: [PATCH] fix #484 - no completion for variable declared in the `IfCondition`s --- containers | 2 +- dsymbol | 2 +- dub.json | 4 ++-- libdparse | 2 +- tests/tc_if_var/expected.txt | 8 ++++++++ tests/tc_if_var/file.d | 1 + tests/tc_if_var/run.sh | 5 +++++ 7 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 tests/tc_if_var/expected.txt create mode 100644 tests/tc_if_var/file.d create mode 100755 tests/tc_if_var/run.sh diff --git a/containers b/containers index d045889..c261fa1 160000 --- a/containers +++ b/containers @@ -1 +1 @@ -Subproject commit d0458897a60137a84f88eefcdd5a0b12ac07cbe7 +Subproject commit c261fa119072ce788ef81b8d8fee9a2adddca5d1 diff --git a/dsymbol b/dsymbol index ddbfbe8..e018446 160000 --- a/dsymbol +++ b/dsymbol @@ -1 +1 @@ -Subproject commit ddbfbe84c3954ed3e7e3014bfb93e8a943ad8ecb +Subproject commit e018446b028b92c34398032e698c05c0919630ee diff --git a/dub.json b/dub.json index c861a14..5bf6d69 100644 --- a/dub.json +++ b/dub.json @@ -7,8 +7,8 @@ ], "license": "GPL-3.0", "dependencies": { - "dsymbol": "~>0.3.6", - "libdparse": "~>0.8.1", + "dsymbol": "~>0.3.7", + "libdparse": "~>0.8.5", "msgpack-d": "~>1.0.0-beta.3", "stdx-allocator": "~>2.77.0" }, diff --git a/libdparse b/libdparse index 0e18b62..157d572 160000 --- a/libdparse +++ b/libdparse @@ -1 +1 @@ -Subproject commit 0e18b62cb2fd86ee09ec8457c394bdef409ca542 +Subproject commit 157d572401d92bc0639c53e700c58018b6b29f06 diff --git a/tests/tc_if_var/expected.txt b/tests/tc_if_var/expected.txt new file mode 100644 index 0000000..9a132a4 --- /dev/null +++ b/tests/tc_if_var/expected.txt @@ -0,0 +1,8 @@ +identifiers +alignof k +init k +mangleof k +max k +min k +sizeof k +stringof k diff --git a/tests/tc_if_var/file.d b/tests/tc_if_var/file.d new file mode 100644 index 0000000..0f1072f --- /dev/null +++ b/tests/tc_if_var/file.d @@ -0,0 +1 @@ +void foo(){ if (int i = call()){ i. } } diff --git a/tests/tc_if_var/run.sh b/tests/tc_if_var/run.sh new file mode 100755 index 0000000..d27dfa5 --- /dev/null +++ b/tests/tc_if_var/run.sh @@ -0,0 +1,5 @@ +set -e +set -u + +../../bin/dcd-client $1 file.d -c37 > actual.txt +diff actual.txt expected.txt