scala.Dynamic
well
Hi all;
Is there a plugin which can generate SemanticDb files for a Java project?
From https://scalameta.org/docs/semanticdb/guide.html#exampleSemanticDB producers provide full Scala support and partial Java support
Is this support only for when a Scala project calls to Java files?
Thanks
inline
definition for make macros, is it right? and for macro purposes I should use 1.8.0
+ meta/paradise
compiler plugin, is it correct?Hi all,
I'm trying to use scalameta to get type information for very simple piece of code, like this:
object X {
val a = List(1,2,3).head
}
the problem is with head
method and its type, which is always A
, but should be Int
in this case. Also synthetic information is not generated for this method, so there is no way to retrieve real type.
I checked scalameta code and it looks like toTextDocument
method in implicit class XtensionCompilationUnitDocument
doesn't support such situation at all. Synthetic data are generated for only small amount of hardcoded methods, like apply
, map
etc.
Also type (tpe
field) from Trees#Select
is not read at all what causes that there is no way to retrieve return type for head
method from SemanticDocument
.
Can someone advice how to handle this problem?