Skip to content

Commit a414fae

Browse files
committed
Fix presentation compiler
1 parent 66a5306 commit a414fae

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

compiler/src/dotty/tools/dotc/semanticdb/ExtractSemanticDB.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ object ExtractSemanticDB:
198198
.resolveSibling(source.name + ".semanticdb")
199199

200200
/** Extractor of symbol occurrences from trees */
201-
private class Extractor extends TreeTraverser:
201+
class Extractor extends TreeTraverser:
202202
import Scala3.{_, given}
203203
given s.SemanticSymbolBuilder = s.SemanticSymbolBuilder()
204204
val synth = SyntheticsExtractor()

presentation-compiler/src/main/dotty/tools/pc/SemanticdbTextDocumentProvider.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ class SemanticdbTextDocumentProvider(
3232
SourceFile.virtual(filePath.toString, validCode)
3333
)
3434
val tree = driver.currentCtx.run.units.head.tpdTree
35-
val extract = ExtractSemanticDB()
36-
val extractor = extract.Extractor()
35+
val extractor = ExtractSemanticDB.Extractor()
3736
extractor.traverse(tree)(using driver.currentCtx)
3837
val path = workspace
3938
.flatMap { workspacePath =>

0 commit comments

Comments
 (0)