Commit 5b7913c
committed
ExtractDependencies: Split dependency recording in separate class
This will be used later in this PR to perform dependency recording during
Typer.
The new API is slightly higher level:
- Dependencies are recorded using `addUsedName`, `addUsedRawName` and `addClassDependency`.
- `addUsedName` takes a Symbol instead of a Name and takes care of name
mangling, `addUsedRawName` is still available when there is no
symbol (currently this only happens when recording a dependency on a renamed import).
- These methods do not take a `from` argument, instead they take care of
calling `resolveDependencySource` internally.
- Recorded dependencies are sent to Zinc using `sendToZinc`.1 parent 1dc9761 commit 5b7913c
File tree
1 file changed
+193
-168
lines changed- compiler/src/dotty/tools/dotc/sbt
1 file changed
+193
-168
lines changed
0 commit comments