Skip to content

Commit 94accff

Browse files
committed
Fix tests
1 parent 0d4dc46 commit 94accff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/test/dotty/tools/dotc/core/tasty/CommentPicklingTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class CommentPicklingTest {
112112
val trees = files.flatMap { f =>
113113
val unpickler = new DottyUnpickler(f.bytes().toArray)
114114
unpickler.enter(roots = Set.empty)
115-
unpickler.trees(ctx)
115+
unpickler.rootTrees(ctx)
116116
}
117117
fn(trees, ctx)
118118
}

language-server/src/dotty/tools/languageserver/DottyLanguageServer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ class DottyLanguageServer extends LanguageServer
262262
&& funSym.owner.is(CaseClass)) {
263263
funSym.owner.info.member(name).symbol
264264
} else {
265-
val classTree = funSym.topLevelClass.asClass.tree
265+
val classTree = funSym.topLevelClass.asClass.rootTree
266266
tpd.defPath(funSym, classTree).lastOption.flatMap {
267267
case DefDef(_, _, paramss, _, _) =>
268268
paramss.flatten.find(_.name == name).map(_.symbol)

0 commit comments

Comments
 (0)