Skip to content
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

Include end marker name in semanticdb #12326

Closed
tgodzik opened this issue May 4, 2021 · 0 comments · Fixed by #12541
Closed

Include end marker name in semanticdb #12326

tgodzik opened this issue May 4, 2021 · 0 comments · Fixed by #12541
Assignees
Milestone

Comments

@tgodzik
Copy link
Contributor

tgodzik commented May 4, 2021

Compiler version

If you're not sure what version you're using, run print scalaVersion from sbt
(if you're running scalac manually, use scalac -version instead).

Minimized code

def hello() = 
  val greeting = "Hello world"
  println(greeting)
end hello

Output

src/main/scala/Hello.scala
--------------------------

Summary:
Schema => SemanticDB v4
Uri => src/main/scala/Hello.scala
Text => empty
Language => Scala
Symbols => 3 entries
Occurrences => 5 entries

Symbols:
_empty_/Hello$package. => final package object _empty_
_empty_/Hello$package.hello(). => method hello
local0 => val local greeting

Occurrences:
[1:0..1:0) <= _empty_/Hello$package.
[1:4..1:9) <= _empty_/Hello$package.hello().
[2:6..2:14) <= local0
[3:2..3:9) => scala/Predef.println(+1).
[3:10..3:18) => local0

Expectation

src/main/scala/Hello.scala
--------------------------

Summary:
Schema => SemanticDB v4
Uri => src/main/scala/Hello.scala
Text => empty
Language => Scala
Symbols => 3 entries
Occurrences => 6 entries

Symbols:
_empty_/Hello$package. => final package object _empty_
_empty_/Hello$package.hello(). => method hello
local0 => val local greeting

Occurrences:
[1:0..1:0) <= _empty_/Hello$package.
[1:4..1:9) <= _empty_/Hello$package.hello().
[2:6..2:14) <= local0
[3:2..3:9) => scala/Predef.println(+1).
[3:10..3:18) => local0
[4:4..4:9) => _empty_/Hello$package.hello().

Additional [4:4..4:9) => _empty_/Hello$package.hello().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants