David Ungar
6e7db41a7c
Crash compilation for ASTScope lookup into an inactive clause
2019-10-16 14:20:00 -07:00
David Ungar
a9ab4aa8c2
Use SeparateCaching
2019-10-09 22:33:39 -07:00
David Ungar
c25de6af75
Merge pull request #27221 from davidungar/A-9-17-astscope-off
...
[NFC, NameLookup, ASTScope] Bug fix for eager scope tree construction & better failure messages
2019-09-22 19:10:58 -07:00
David Ungar
b943a3987f
Use separate bool to record expansion
2019-09-22 17:59:40 -07:00
David Ungar
9674643779
Comment out potential debugging code issue.
2019-09-22 17:59:40 -07:00
David Ungar
683310eb74
Ever expansion detection. WIP
2019-09-22 17:59:40 -07:00
David Ungar
80e7a1f8fc
Remove debug code
2019-09-22 17:59:39 -07:00
David Ungar
603cc05289
WIP lazy whole scopes
2019-09-22 17:59:39 -07:00
Jordan Rose
8d7f1b7c5d
[AST] Separate SourceFile from FileUnit.h
...
Like the last commit, SourceFile is used a lot by Parse and Sema, but
less so by the ClangImporter and (de)Serialization. Split it out to
cut down on recompilation times when something changes.
This commit does /not/ split the implementation of SourceFile out of
Module.cpp, which is where most of it lives. That might also be a
reasonable change, but the reason I was reluctant to is because a
number of SourceFile members correspond to the entry points in
ModuleDecl. Someone else can pick this up later if they decide it's a
good idea.
No functionality change.
2019-09-17 17:54:41 -07:00
Jordan Rose
853caa66d4
[AST] Split FileUnit and its subclasses out of Module.h
...
Most of AST, Parse, and Sema deal with FileUnits regularly, but SIL
and IRGen certainly don't. Split FileUnit out into its own header to
cut down on recompilation times when something changes.
No functionality change.
2019-09-17 17:54:41 -07:00
David Ungar
e3f7760154
Add explanations to all asserts.
2019-09-17 16:30:25 -07:00
David Ungar
8ebba23b06
Add ASTScope_unreachable
2019-09-17 16:03:05 -07:00
David Ungar
3966d086a5
When ASTScope assertions fails, direct user to try disabling ASTScopes.
2019-09-17 15:56:33 -07:00
David Ungar
03a89c7c8a
Reuse pointer
2019-09-14 13:41:16 -07:00
David Ungar
7992e1c6c4
Lots of cleanups, renamings, etc.
2019-08-26 16:55:18 -07:00
David Ungar
b02b4b00ef
Cleanup and fixes, also 1st cut at lazy.
2019-08-13 17:48:06 -07:00
David Ungar
f64033a2d2
Manual rebase with master
2019-08-06 22:13:20 -07:00
David Ungar
3a3145c0f4
Alternate SelfDC computation, fixes, and cleanups.
...
ASTScopeLookup by default
Create empty fn bodies for IDE tests.
Include initializer source range for property wrappers.
Add -disable-astscope-lookup
2019-06-23 09:17:09 -07:00
David Ungar
44c62485e6
Rm redundant computeSelfDCForParemt
2019-06-12 21:24:54 -07:00
David Ungar
3e958442fa
Clean up
2019-06-12 12:00:37 -07:00
David Ungar
72b20967f3
Outer generics
2019-06-12 11:42:11 -07:00
David Ungar
2f2bbfb14c
Better method scope lookup
2019-06-12 10:46:30 -07:00
David Ungar
b418588d88
Fix
2019-06-12 09:59:17 -07:00
David Ungar
4122438f86
Outline lookInGenericsAndSelfType
2019-06-12 08:11:27 -07:00
David Ungar
55323bbab8
Typos, etc.
2019-06-12 07:48:05 -07:00
David Ungar
9b40b3974b
Rephrase comment
2019-06-12 07:40:21 -07:00
David Ungar
69f6b41a13
Use unique_ptr for Scope, getScope returns a reference
2019-06-12 07:29:00 -07:00
David Ungar
6a8d91f673
fmt
2019-06-10 13:18:58 -07:00
David Ungar
17bb03112e
new cond use scheme
2019-06-10 13:18:18 -07:00
David Ungar
7d1f024e07
WIP unfmt
2019-06-10 12:10:21 -07:00
David Ungar
253f16b76d
WIP
2019-06-08 09:34:16 -07:00
David Ungar
3abfa1f384
WIP
2019-06-08 09:08:49 -07:00
David Ungar
1e9bc8465b
Minor cleaning
2019-06-05 16:09:47 -07:00
David Ungar
670eb61f8e
Spell out GTX
2019-06-05 15:54:10 -07:00
David Ungar
73279c99fb
Upto findLookupParentForUse
2019-06-05 09:04:38 -07:00
David Ungar
606ce7b8cb
pattern fixes
2019-06-04 20:50:59 -07:00
David Ungar
94bd4a801a
fmt
2019-06-04 18:11:35 -07:00
David Ungar
8ff4309580
WIP, unfmt
2019-06-04 17:14:32 -07:00
David Ungar
ad77af1b87
Catch top-level dependency for use under pattern.
...
var x = 3
_ = x
2019-06-03 21:13:25 -07:00
David Ungar
8e729aa75e
Fix
2019-06-02 16:27:27 -07:00
David Ungar
5043d56889
Don’t ignore implicit statements.
2019-06-02 09:28:20 -07:00
David Ungar
013a45a9a5
Get fileScope sooner for debugging convenience
2019-06-01 21:35:23 -07:00
David Ungar
23bddf12b4
Format
2019-05-31 21:03:05 -07:00
David Ungar
005e259247
compiles, unfmt
2019-05-31 21:02:19 -07:00
David Ungar
2e7756c5c9
WP Redoing
2019-05-30 21:59:07 -07:00
David Ungar
10affe2b3b
Cosmetic fixes.
2019-05-28 15:46:32 -07:00
David Ungar
8814390225
ifndef NDEBUG nify
2019-05-28 14:40:10 -07:00
David Ungar
36234c3cc8
function_ref
2019-05-28 12:37:49 -07:00
David Ungar
3f820c374e
Some review tweaks.
2019-05-28 11:12:12 -07:00
David Ungar
663760e3b7
ASTOOScope ontology
2019-05-28 10:48:22 -07:00