File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
compiler/src/dotty/tools/dotc/semanticdb Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,14 @@ class TypeOps:
51
51
}
52
52
53
53
private def symbolNotFound (binder : Type , name : Name , parent : Symbol )(using ctx : Context ): Unit =
54
+ warn(s " Ignoring ${name} of symbol ${parent}, type ${binder}" )
55
+
56
+ private def unexpectedType (parent : Symbol , tpe : Type )(using Context ): Unit =
57
+ warn(s " Unexpected type ${tpe} of symbol ${parent}" )
58
+
59
+ private def warn (msg : String )(using ctx : Context ): Unit =
54
60
report.warning(
55
- s """ Internal error in extracting SemanticDB while compiling ${ctx.compilationUnit.source}: Ignoring ${name} of symbol ${parent} , type ${binder} "" "
61
+ s " Internal error in extracting SemanticDB while compiling ${ctx.compilationUnit.source}: ${msg} "
56
62
)
57
63
58
64
extension (tpe : Type )
@@ -361,7 +367,15 @@ class TypeOps:
361
367
case NoPrefix =>
362
368
s.Type .Empty
363
369
364
- case _ => s.Type .Empty
370
+ // Not yet supported
371
+ case _ : HKTypeLambda =>
372
+ s.Type .Empty
373
+ case _ : MatchType =>
374
+ s.Type .Empty
375
+
376
+ case other =>
377
+ unexpectedType(sym, other)
378
+ s.Type .Empty
365
379
}
366
380
loop(tpe)
367
381
You can’t perform that action at this time.
0 commit comments