Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Parser] Add local type declarations to the outermost enclosing sourc…
…e file The parser is currently responsible for adding local type declarations to a `SourceFile`, which IR generation later queries. However, IRGen never sees the source files associated with macro expansion buffers, so local types introduced there don't get recorded. In time, this approach of using the parser to record semantic information should be replaced with something more "pull" oriented. For now, however, record local type declarations in the outermost enclosing source file... so we see the ones produced by macro expansions, too. Fixes rdar://109370309.
- Loading branch information