Ben Langmuir
19d13c3aee
Reapply "[CodeCompletion] Don't show the loop index before it is visible"
...
With the tests updated to account for not having the correct behaviour
for brace-stmt items from after the code-completion point. That part
turns out to be harder to fix.
This reverts commit a5325e6281 .
2016-03-09 14:02:51 -08:00
Ben Langmuir
d59a57339e
[CodeCompletion] Add some basic sanity tests for generic typealiases
...
Basically check that the name of the type shows up as a result, and that
we can look through to the members of the underlying type.
2016-03-08 20:13:16 -08:00
Ben Langmuir
739c409140
Revert "[CodeCompletion] Don't show variables defined after the completion loc"
...
This broke some tests; may need a different approach.
This reverts commit 9734bd94bb .
2016-03-07 22:29:24 -08:00
Ben Langmuir
a5325e6281
Revert "[CodeCompletion] Don't show the loop index before it is visible"
...
This reverts commit ce77c868d1 .
2016-03-07 22:29:00 -08:00
Ben Langmuir
ce77c868d1
[CodeCompletion] Don't show the loop index before it is visible
...
for i in <here> // should *not* show 'i'
for i in ... where <here> // should show 'i'
for i in ... { <here> // should show 'i'
Part of rdar://problem/24873625
2016-03-07 22:04:49 -08:00
Ben Langmuir
9734bd94bb
[CodeCompletion] Don't show variables defined after the completion loc
...
... in brace statements. Found by inspection.
2016-03-07 22:01:01 -08:00
Daniel Duan
2bc78b8c09
[stdlib] update for 'inout' adjustment (SE-0031)
2016-02-26 12:02:29 -08:00
Chris Lattner
8dedfb31e3
Add support for #file/#line, etc according to SE-0028. __FILE__ and friends
...
are still accepted without deprecation warning as of this patch.
2016-02-04 14:22:22 -08:00
Ben Langmuir
7eaed61b6f
[CodeCompletion] Fix completion after unspaced binary operator
...
We were miscalculating 'isRightBound' when the RHS was a code-completion
token leading to missing completions in unspaced binary expressions
1+<here>
1...<here>
rdar://problem/24278699
2016-02-03 18:46:15 -08:00
Ben Langmuir
1992bb08b2
[CodeCompletion] Add keyword kind to code completion results
...
This lets us reliably distinguish keywords we care about without
resorting to string comparisons. Also driveby fix throw to be a
statement keyword.
2015-11-02 13:27:34 -08:00
Ben Langmuir
54a28a40db
[CodeCompletion] Split literals out into their own completion kind
...
For rdar://problem/21923069
Swift SVN r32906
2015-10-27 13:34:54 +00:00
Ben Langmuir
58bd3e734d
[CodeCompletion] Stub in value/literal suggestions
...
For now just move the existing true/false/nil completions. No
type-relations yet.
For rdar://problem/21923069
Swift SVN r32887
2015-10-26 20:41:53 +00:00
Ben Langmuir
65cb6bc1bd
[CodeCompletion] Don't show editor placeholders as completions
...
rdar://problem/21797815
Swift SVN r31089
2015-08-07 23:03:37 +00:00
Xi Ge
21e8a93761
[CodeCompletion] Add specific semantic context kind to 'super', 'self' and 'nil'.
...
This change gives these keywords a boost of priority when SourceKit sorts code completion
results.
rdar://21796980
Swift SVN r31037
2015-08-06 01:03:16 +00:00
Ben Langmuir
5f2bcba8ba
Update tests for code-completion modulename change
...
Add module name to OtherModule result output and update the tests
accordingly.
Swift SVN r26262
2015-03-18 16:40:28 +00:00
Denis Vnukov
152df92966
[CodeCompletion] Code Completion String getName should always return non-empty string value for
...
valid code completions. Code completion tests call and validate getName’s result.
A minor fix for code completion fro subscripts.
Swift SVN r25101
2015-02-09 22:32:05 +00:00
Dmitri Hrybenko
3b04d1b013
tests: reorganize tests so that they actually use the target platform
...
Most tests were using %swift or similar substitutions, which did not
include the target triple and SDK. The driver was defaulting to the
host OS. Thus, we could not run the tests when the standard library was
not built for OS X.
Swift SVN r24504
2015-01-19 06:52:49 +00:00
Dmitri Hrybenko
082d79b490
Code completion: include __FUNCTION__ in results
...
rdar://17679174
Swift SVN r20081
2014-07-17 10:23:23 +00:00
Doug Gregor
2f3f6acf21
Make "true" and "false" Boolean literal constants for the BooleanLiteralConvertible protocol.
...
Introduce the new BooleanLiteralConvertible protocol for Boolean
literals. Take "true" and "false" as real keywords (which is most of the
reason for the testsuite churn). Make Bool BooleanLiteralConvertible
and the default Boolean literal type, and ObjCBool
BooleanLiteralConvertible. Fixes <rdar://problem/17405310> and the
recent regression that made ObjCBool not work with true/false.
Swift SVN r19728
2014-07-09 16:57:35 +00:00
Ted Kremenek
fad874708e
Adjust test cases.
...
Swift SVN r17964
2014-05-12 22:01:52 +00:00
Dmitri Hrybenko
bb069b73d8
Code completion: move tests for completion at the beginning of expr-postfix
...
to a separate file
Swift SVN r7036
2013-08-08 01:39:07 +00:00