Commit Graph

3541 Commits

Author SHA1 Message Date
Dmitri Hrybenko
6ee92ec96d Code completion: add a test with non-ASCII identifiers
rdar://15323124


Swift SVN r9785
2013-10-30 06:15:53 +00:00
Sonny Falk
ff0a037ae6 [IDE] Add initial document structure annotation support.
Swift SVN r9597
2013-10-22 20:54:46 +00:00
Dmitri Hrybenko
b0b500907d Lookup visible decls / code completion: correctly filter out non-NominalDecls
when looking for visible members


Swift SVN r9562
2013-10-21 22:19:01 +00:00
Dmitri Hrybenko
ae03a13d54 Code completion: complete tuple memebrs
Swift SVN r9483
2013-10-18 17:49:34 +00:00
Dmitri Hrybenko
65654decbc Code completion: add tests for the previous commit (complete references to enum
elements)


Swift SVN r9440
2013-10-17 02:10:53 +00:00
Dmitri Hrybenko
278cbad8a4 Code completion: don't produce any results in enum case. Only integer literals
are allowed in that context.


Swift SVN r9383
2013-10-15 22:45:54 +00:00
Dmitri Hrybenko
0f93a9277d Code completion: complete '!' and '?' on Optional<T>
rdar://14848266


Swift SVN r9377
2013-10-15 21:36:42 +00:00
Dmitri Hrybenko
d615072639 Lookup visible decls / code completion: don't show overridden decls (show only
the overriding decl)


Swift SVN r9219
2013-10-11 20:58:42 +00:00
Doug Gregor
9f7325a6a2 Axle: add code completions for Vec<type, length> and Matrix<type, rows, cols>
Swift SVN r9110
2013-10-09 23:27:16 +00:00
Dmitri Hrybenko
7dde669328 Code completion tests: move some tests to a separate file. I will be adding
more similar tests soon.


Swift SVN r9000
2013-10-07 22:21:10 +00:00
Dmitri Hrybenko
bf5be064a5 Code completion for DynamicLookup: check that we don't show unavailable decls
Swift SVN r8866
2013-10-03 00:35:52 +00:00
Dmitri Hrybenko
6a122e1d88 Clang module importer / code completion for DynamicLookup: when enumerating
decls accessible from DynamicLookup, don't import properties twice and don't
report properties with setters twice


Swift SVN r8858
2013-10-02 22:29:49 +00:00
Dmitri Hrybenko
1f9a7203de Clang importer: import subscript declarations from protocols (instead of
crashing in getClassInterface)


Swift SVN r8856
2013-10-02 20:56:22 +00:00
Dmitri Hrybenko
14c0de117a Clang importer, lookupClassMembers(): return SubscriptDecls when enumerating
all class members

Code completion for DynamicLookup: add tests for imported ObjC classes


Swift SVN r8827
2013-10-02 00:08:21 +00:00
Dmitri Hrybenko
30761e2cb9 Code completion for DynamicLookup: move extra inputs to a separate directory;
more will come in future


Swift SVN r8822
2013-10-01 22:21:57 +00:00
Dmitri Hrybenko
e2060d6d33 Code completion for DynamicLookup: add a test with selective imports
Swift SVN r8821
2013-10-01 22:05:04 +00:00
Dmitri Hrybenko
6f4cb05603 Code completion: basic support for completing memebrs of DynamicLookup (id)
Only tested with functions (instance/class functions) declared in swift
classes.  Need more testcases.


Swift SVN r8800
2013-10-01 02:14:25 +00:00
Dmitri Hrybenko
03db9ef720 AST type printer: add testing infrastructure and a basic test
Swift SVN r8750
2013-09-28 02:37:44 +00:00
Dmitri Hrybenko
448d7cff8e AST Printer: add tests for printing deserialized modules
...and fix bugs found by this.


Swift SVN r8706
2013-09-26 23:17:32 +00:00
Argyrios Kyrtzidis
0fe6d45e62 [IDE] Introduce semantic annotation functionality and test.
Swift SVN r8618
2013-09-25 01:35:36 +00:00
Dmitri Hrybenko
3f15ea9f88 AST printing tests: move error cases to a separate file
This allows us to serialize the non-error cases, and then print the
deserialized AST (not implemented yet).


Swift SVN r8615
2013-09-24 23:58:43 +00:00
Dmitri Hrybenko
f9d1923c0e Add a basic AST printing test
AST printing is important for Swift, but we did not have any tests for it.

rdar://15042725


Swift SVN r8541
2013-09-21 03:36:07 +00:00
Dmitri Hrybenko
a813e14b6d Code completion: complete 'super.init' in constructors
Also add tests for completing constructors declared with selector syntax.


Swift SVN r8412
2013-09-18 19:05:39 +00:00
Dmitri Hrybenko
30117c6a42 Code completion tests: split 'super' tests into complete_after_super.swift
test/IDE/complete_value_expr.swift is becoming too large (and too slow)


Swift SVN r8381
2013-09-18 01:05:30 +00:00
Dmitri Hrybenko
4671a63ad8 Code completion tests: split 'self' tests into complete_after_self.swift
test/IDE/complete_value_expr.swift is becoming too large (and too slow)


Swift SVN r8371
2013-09-18 00:15:55 +00:00
Dmitri Hrybenko
724a93885c Code completion tests: move tests for completion inside closures into a
separate file


Swift SVN r7891
2013-09-04 02:03:35 +00:00
Dmitri Hrybenko
35ceac419d Code completion: ensure we don't try to complete the identifier in pattern-atom
Swift SVN r7555
2013-08-24 03:47:05 +00:00
Dmitri Hrybenko
b2a5e2c11a Code completion: complete in type contexts -- basic implementation
Swift SVN r7207
2013-08-13 20:36:48 +00:00
Dmitri Hrybenko
0761a2ebd7 REPL: pass all unprocessed lines to code completion
This enables us to do code completion in function bodies and resolve local
variables.


Swift SVN r7118
2013-08-10 01:18:43 +00:00
Dmitri Hrybenko
41723aeb30 Code completion: correctly delay parsing of the function body that did not have
a closing brace.

Fixes two bugs:
* delayed parsing was not correctly skipping over the function body because it
  stopped at the 'var' decl;
* parser was not creating a BraceStmt for the function body if it could not
  find the closing brace.


Swift SVN r7062
2013-08-08 22:57:25 +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
Dmitri Hrybenko
8d75dccc84 Code completion: implement partial typechecking of function bodies
This allows us to complete members of local variables and members of
expressions that include local variables.


Swift SVN r7033
2013-08-08 00:59:46 +00:00
Dmitri Hrybenko
dfe28a76bb Clang importer: put the Objective-C class into the module that contains the
@interface definition, not just @class forward declaration.


Swift SVN r6961
2013-08-06 23:45:12 +00:00
Dmitri Hrybenko
fcd461d08f Code completion tests: check that we can complete members of an imported class
Swift SVN r6958
2013-08-06 22:49:59 +00:00
Dmitri Hrybenko
e223048bb2 Clang importer: when a function is re-declared in multiple imported Clang
modules, put the imported decl into the ClangModule where the canonical
decl is.

This is not a complete fix, the function should be visible from all modules
that declare it.  See rdar://14665250


Swift SVN r6956
2013-08-06 22:05:07 +00:00
Dmitri Hrybenko
16c75ddc66 Code completion: add a test: check that we include code completion results for
contents of the frameworks that are re-exported by the imported frameworks (but
not explicitly imported in the .swift source).


Swift SVN r6953
2013-08-06 21:24:50 +00:00
Dmitri Hrybenko
f8e0e31144 Code completion tests: remove an extra file that is not actually used
Swift SVN r6952
2013-08-06 21:20:22 +00:00
Dmitri Hrybenko
a6519a907d Code completion: implement code completion for dot member access on clang modules
Because we don't want FooModule.#^A^# to show completion results for other
clang modules, global completion cache was replaced with a per-module cache.


Swift SVN r6951
2013-08-06 21:15:23 +00:00
Argyrios Kyrtzidis
2cb68e6d87 [IDE] Modify output of swift-ide-test for coloring and add a test case.
The output format currently is:
<line>: { (<color-kind>, <column>:<length>).* }

Swift SVN r6861
2013-08-02 22:44:57 +00:00
Dmitri Hrybenko
ba3cec0871 Code completion: add tests for completion inside statements' controlling expressions
These work OK, except that we don't include local variables in the results --
this is a general limitation now.


Swift SVN r6856
2013-08-02 21:31:35 +00:00
Argyrios Kyrtzidis
df86c54874 [IDE] Rename test/CodeCompletion -> test/IDE
Swift SVN r6842
2013-08-02 17:03:21 +00:00