File tree 2 files changed +2
-3
lines changed
compiler/src/dotty/tools/dotc/semanticdb
presentation-compiler/src/main/dotty/tools/pc
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ object ExtractSemanticDB:
198
198
.resolveSibling(source.name + " .semanticdb" )
199
199
200
200
/** Extractor of symbol occurrences from trees */
201
- private class Extractor extends TreeTraverser :
201
+ class Extractor extends TreeTraverser :
202
202
import Scala3 .{_ , given }
203
203
given s .SemanticSymbolBuilder = s.SemanticSymbolBuilder ()
204
204
val synth = SyntheticsExtractor ()
Original file line number Diff line number Diff line change @@ -32,8 +32,7 @@ class SemanticdbTextDocumentProvider(
32
32
SourceFile .virtual(filePath.toString, validCode)
33
33
)
34
34
val tree = driver.currentCtx.run.units.head.tpdTree
35
- val extract = ExtractSemanticDB ()
36
- val extractor = extract.Extractor ()
35
+ val extractor = ExtractSemanticDB .Extractor ()
37
36
extractor.traverse(tree)(using driver.currentCtx)
38
37
val path = workspace
39
38
.flatMap { workspacePath =>
You can’t perform that action at this time.
0 commit comments