Skip to content

Include end marker name in semanticdb #12326

Closed
@tgodzik

Description

@tgodzik

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().

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions