Eli Friedman
f1ffa870a3
A few adjustments to AST/Sema for ConstructorDecls, and starting IRGen.
...
Swift SVN r2160
2012-06-06 00:53:44 +00:00
Eli Friedman
75907029f1
Add parsing and semantic analysis for a basic ConstructorDecl. Still missing: no IRGen, and semantic analysis to actually call them.
...
Swift SVN r2159
2012-06-05 23:51:19 +00:00
Eli Friedman
27f8a5ab62
Teach the parser's handling of scopes to handle local types correctly.
...
Swift SVN r2138
2012-06-04 19:14:58 +00:00
Eli Friedman
26159b59ee
First draft of some code to make the general unqualified lookup able to perform lookup into local scopes. Normally, name-binding doesn't need this because the parser can resolve references to locals, but we need this sort of lookup to handle cases involving local types. It's also likely this will be generally useful for tools consuming the AST, typo-correction, etc.
...
We probably need to add some sort of data structure to represent this information, but as a proof of concept the current code appears to work. I'm still working out how to make sure the parser doesn't prematurely bind names and how to make name-binding use it where appropriate (and avoid it when we don't need it, because no matter how efficient we make it, it will still be relatively expensive).
Swift SVN r2112
2012-06-02 01:26:58 +00:00
Eli Friedman
d829b3c775
Unify the complete unqualified lookup logic in the UnqualifiedLookup class.
...
Swift SVN r2109
2012-06-01 23:26:58 +00:00
Eli Friedman
0e7ef8cebb
Start refactoring code towards a single complete implementation of unqualified lookup.
...
Swift SVN r2108
2012-06-01 01:37:44 +00:00
Eli Friedman
29a13e9ae0
Move the NameLookup class into the AST library.
...
Swift SVN r2101
2012-05-31 22:35:50 +00:00