-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type in classOf[T] is not added to occurrences in semanticDB #1909
Comments
Should we also add the occurence for |
tgodzik
changed the title
Type in classOf[T] is not added to accurences
Type in classOf[T] is not added to occurrences
Nov 12, 2019
tgodzik
changed the title
Type in classOf[T] is not added to occurrences
Type in classOf[T] is not added to occurrences in semanticDB
Nov 12, 2019
I think we should add occurrences to |
sswistun-vl
added a commit
to sswistun-vl/scalameta
that referenced
this issue
Nov 26, 2019
sswistun-vl
added a commit
to sswistun-vl/scalameta
that referenced
this issue
Nov 26, 2019
sswistun-vl
added a commit
to sswistun-vl/scalameta
that referenced
this issue
Nov 26, 2019
I looked into this a bit, and I found that we have the following trees for classOf[Int]
Literal(
value = Constant(
value = TypeRef(pre = ThisType(sym = package scala), sym = class Int, args = List())
)
) classOf[List[Int]]
Literal(
value = Constant(
value = TypeRef(
pre = SingleType(
pre = SingleType(pre = ThisType(sym = package <root>), sym = package scala),
sym = package object scala
),
sym = type List,
args = List(TypeRef(pre = ThisType(sym = package scala), sym = class Int, args = List()))
)
)
) This is because
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the example
Int
symbol will not be added to occurrences. @sswistun-vl is taking a look at it.The text was updated successfully, but these errors were encountered: