Doug Gregor
a0bc9274db
Change parsing and representation of extensions to accommodate generic parameters.
...
The eventual goal for extensions of generic types is to require them
to specify their generic parameters, e.g.,
extension Array<T> { ... }
rather than today's
extension Array { ... }
Start parsing (optional) generic parameters here, and update the
representation of ExtensionDecl to accomodate this new grammar
production. Aside from the parser changes, there's no intended
functionality change here.
Swift SVN r20682
2014-07-29 19:17:00 +00:00
Argyrios Kyrtzidis
3175251bb1
[IDE] Handle annotation of clang submodule imports properly.
...
rdar://17780613
Swift SVN r20595
2014-07-26 20:58:19 +00:00
Ben Langmuir
2113e3a592
Walk through the initializer for a lazy property in SourceEntityWalker
...
@lazy foo: Int = {
// Required for syntax highlighting and quick help here.
}()
Swift SVN r20078
2014-07-17 06:43:02 +00:00
Argyrios Kyrtzidis
1784315096
[AST/IDE] Keep track of semantic info of imports (resolved module and decls) and report module/decl references via
...
the SourceEntityWalker.
Swift SVN r17689
2014-05-08 07:10:06 +00:00
Argyrios Kyrtzidis
ccc23b60b0
[IDE] Report module references in type contexts.
...
Swift SVN r17688
2014-05-08 07:10:05 +00:00
Argyrios Kyrtzidis
17c3bae3cd
[IDE] Enhance SourceEntityWalker to provide callbacks for the keyword arguments of
...
a call expression.
Swift SVN r17607
2014-05-07 06:10:03 +00:00
Argyrios Kyrtzidis
ab2e58ec6e
[IDE] Fix crash with semantic annotation for an incomplete enum.
...
rdar://16102613
Swift SVN r15227
2014-03-19 07:02:21 +00:00
Dmitri Hrybenko
ab9dcd39c4
Source annotation: fix a crash on var decls with propagated types
...
rdar://16194527
Swift SVN r14868
2014-03-10 15:09:04 +00:00
Argyrios Kyrtzidis
55c02e0cf0
[IDE] Handle observing accessors for syntax and semantic annotations.
...
Swift SVN r13295
2014-02-01 06:22:21 +00:00
Argyrios Kyrtzidis
dc258df962
[IDE] Make sure the constructor reference in a [super/self].init is reported by the SourceEntityWalker.
...
Swift SVN r12957
2014-01-26 05:13:50 +00:00
Argyrios Kyrtzidis
84e20a0620
[AST] Break down IdentTypeRepr to different subtypes.
...
This makes memory allocation for it more efficient and it's more convenient to handle.
Swift SVN r12541
2014-01-18 20:19:09 +00:00
Jordan Rose
417b5d3982
Merge TranslationUnit into Module, and eliminate the term "translation unit".
...
This completes the FileUnit refactoring. A module consists of multiple
FileUnits, which provide decls from various file-like sources. I say
"file-like" because the Builtin module is implemented with a single
BuiltinUnit, and imported Clang modules are just a single FileUnit source
within a module.
Most modules, therefore, contain a single file unit; only the main module
will contain multiple source files (and eventually partial AST files).
The term "translation unit" has been scrubbed from the project. To refer
to the context of declarations outside of any other declarations, use
"top-level" or "module scope". To refer to a .swift file or its DeclContext,
use "source file". To refer to a single unit of compilation, use "module",
since the model is that an entire module will be compiled with a single
driver call. (It will still be possible to compile a single source file
through the direct-to-frontend interface, but only in the context of the
whole module.)
Swift SVN r10837
2013-12-05 01:51:15 +00:00
Argyrios Kyrtzidis
4d168bb839
[IDE] SourceEntityWalker: Visit the base of a member ref expression in source order.
...
Swift SVN r9762
2013-10-29 17:30:12 +00:00
Argyrios Kyrtzidis
a1618e9a33
[IDE] Have SourceEntityWalker report a subscript decl reference.
...
Swift SVN r9761
2013-10-29 17:15:11 +00:00
Argyrios Kyrtzidis
76faca0269
[IDE] Enhance SourceEntityWalker to report walking of expressions.
...
Swift SVN r9760
2013-10-29 17:06:38 +00:00
Argyrios Kyrtzidis
0f9744430c
[IDE] Have SourceEntityWalker invoke the callbacks for getter/setters.
...
Swift SVN r9759
2013-10-29 17:06:36 +00:00
Doug Gregor
112c6123eb
Terminate SpecializeExpr with extreme prejudice.
...
There are numerous other cleanups that could be performed now that
this is gone; I'll follow up with some of them.
Swift SVN r9717
2013-10-28 18:50:29 +00:00
Argyrios Kyrtzidis
65fd2eed43
[IDE] Provide 'walk' method in SourceEntityWalker for SourceFiles.
...
Swift SVN r9136
2013-10-10 14:51:37 +00:00
Argyrios Kyrtzidis
81ab506e59
When creating a constructor reference expression, don't discard source info about the type reference and the qualifiers that were used for it.
...
This allows annotation of type reference qualifiers in a constructor expressions and fixes rdar://15034212.
Swift SVN r8862
2013-10-02 23:16:18 +00:00
Argyrios Kyrtzidis
603521aeae
[AST] When cloning a NamedPattern, make the var implicit if we are propagating implicit'ness.
...
Swift SVN r8789
2013-09-30 19:54:22 +00:00
Argyrios Kyrtzidis
afe06ac951
[IDE] Fix semantic annotation of subscript declarations.
...
Swift SVN r8788
2013-09-30 19:17:32 +00:00
Argyrios Kyrtzidis
efe3d94e6b
[AST] Introduce DeclContext::walkContext(), used for ASTWalking a DeclContext.
...
Swift SVN r8776
2013-09-30 15:43:09 +00:00
Argyrios Kyrtzidis
4a91e28d11
[AST] For the ASTWalker add Module and Decl as a parent kind, and make ParentTy a class.
...
Swift SVN r8756
2013-09-29 00:12:11 +00:00
Argyrios Kyrtzidis
f32167d166
[AST] Introduce a walk() method for TranslationUnit.
...
Swift SVN r8729
2013-09-27 17:24:35 +00:00
Argyrios Kyrtzidis
e68201fa66
[IDE] Replace ide::findSemanticSourceEntities() with a more general SourceEntityWalker abstract class.
...
Swift SVN r8699
2013-09-26 21:36:03 +00:00