Jordan Rose
0702acab3d
Make SourceFile a DeclContext, but don't actually do anything with it yet.
...
Swift SVN r9646
2013-10-24 18:59:21 +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
bded52492e
[AST] Introduce DeclContext::getLocalContext(), which returns the first local parent context.
...
Swift SVN r8775
2013-09-30 15:43:08 +00:00
Dmitri Hrybenko
10291e0334
Make AbstractClosureExpr a DeclContext
...
(remove DeclContext base class from PipeClosureExpr and ImplicitClosureExpr)
Swift SVN r8303
2013-09-16 22:39:12 +00:00
Dmitri Hrybenko
e7af4d6c72
Collapse ImplicitClosureExpr into its abstract base class, ClosureExpr
...
Swift SVN r8280
2013-09-16 18:31:05 +00:00
Dmitri Hrybenko
45e654fbaa
Make AbstractFunctionDecl a DeclContext
...
and remove DeclContext base class from FuncDecl, ConstructorDecl and
DestructorDecl
This decreases the number of DeclContexts to 7 and allows us to apply
alignas(8) to DeclContext.
Swift SVN r8186
2013-09-13 03:38:33 +00:00
Dmitri Hrybenko
0d6d9a0ffb
Move the DeclContext base class from FuncExpr to FuncDecl
...
FuncDecl still has a FuncExpr because capture list is stored in FuncExpr
(which is a CapturingExpr).
Swift SVN r8179
2013-09-13 01:40:41 +00:00
Dmitri Hrybenko
7da84fd13d
Make FuncExpr, PipeClosureExpr and ClosureExpr DeclContexts on their own.
...
This is a first step to detach them from CapturingExpr and eventually move them
in the AST class hierarchy.
Swift SVN r8171
2013-09-12 23:58:06 +00:00
Chris Lattner
55200e5274
Now that Module has its own kind field, drop the various module
...
discriminators from DeclContext. This is cleaner and should
enable us to drop the alignment of DeclContext (coming next Jordan!)
Swift SVN r8059
2013-09-09 22:43:11 +00:00
Chris Lattner
964075185e
update file header comment, ooops.
...
Swift SVN r8040
2013-09-09 17:08:16 +00:00
Chris Lattner
13c33e0cdd
split declcontext stuff out to its own file.
...
Swift SVN r8039
2013-09-09 17:06:45 +00:00