Commit Graph

64 Commits

Author SHA1 Message Date
Xi Ge
a587c3be53 Check if an extended type is null before further look up. rdar://22036358
Swift SVN r31012
2015-08-04 22:10:04 +00:00
Xi Ge
87018e516f [CodeCompletion] No crashing when function name is empty. rdar://21149908
Swift SVN r31011
2015-08-04 22:09:58 +00:00
Xi Ge
85367420bd [CodeCompletion] Adjust archetype depth so that mangler is always consistent with type checker. rdar://21435993
Swift SVN r30709
2015-07-28 00:02:44 +00:00
Xi Ge
11600e1543 [CodeCompletion] Add checks for erroneous extended types to prevent crash. rdar://21436558
Swift SVN r30708
2015-07-28 00:02:41 +00:00
Xi Ge
4dcc3f1469 [CodeCompletion] No crash on a terribly wrong code completion position. rdar://21796881
Swift SVN r30706
2015-07-28 00:02:33 +00:00
Jordan Rose
27b8451feb Ensure that generic parameters always have a valid access level.
...just in case they end up in a situation where we want to check their
access level. Like code completion.

rdar://problem/21197042

Swift SVN r29453
2015-06-17 18:04:40 +00:00
Denis Vnukov
a2be912e49 Minor: moved code completion test
Swift SVN r25142
2015-02-10 23:35:11 +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
Doug Gregor
b642c555be Allow one to change the argument labels of curried function parameters.
Curried function parameters (i.e., those past the first written
parameter list) default to having argument labels (which they always
have), but any attempt to change or remove the argument labels would
fail. Use the fact that we keep both the argument labels and the
parameter names in patterns to generalize our handling of argument
labels to address this problem.

The IDE changes are due to some positive fallout from this change: we
were using the body parameters as labels in code completions for
subscript operations, which was annoying and wrong.

Fixes rdar://problem/17237268.

Swift SVN r24525
2015-01-19 22:15:14 +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
Argyrios Kyrtzidis
26376f0854 [IDE] Fix crash when code-completing inside an erroneous computer let variable.
rdar://17695497

Swift SVN r20211
2014-07-19 17:58:18 +00:00
Dmitri Hrybenko
31f0b0a145 Code completion: fix crash when a closure is called in place
rdar://17164209


Swift SVN r20152
2014-07-18 11:58:57 +00:00
Ted Kremenek
fad874708e Adjust test cases.
Swift SVN r17964
2014-05-12 22:01:52 +00:00
Dmitri Hrybenko
04a5bcf687 Add a test case that I missed in r14271.
Swift SVN r14298
2014-02-24 11:57:50 +00:00