Krzysztof Borowski
//File A.scala
package com.virtuslab.semanticgraphs
class A(a: String)
//File B.scala
package com.virtuslab.semanticgraphs
class B(b: String, a: A)
a tree representation of the abstract syntactic structure of source code
Represents the exact code structure for given code fragment
The tree has only information about the code and structure in particular file.
Can we know more about semantic data?
A.scala
-------
Summary:
Schema => SemanticDB v4
Uri => A.scala
Text => empty
Language => Scala
Symbols => 4 entries
Occurrences => 7 entries
Symbols:
org/virtuslab/semanticgraphs/A# => class A extends AnyRef { +2 decls }
org/virtuslab/semanticgraphs/A#`<init>`(). => primary ctor <init>(a: String)
org/virtuslab/semanticgraphs/A#`<init>`().(a) => param a: String
org/virtuslab/semanticgraphs/A#a. => private[this] val method a: String
Occurrences:
[0:8..0:11) => org/
[0:12..0:21) => org/virtuslab/
[0:22..0:36) => org/virtuslab/semanticgraphs/
[1:6..1:7) <= org/virtuslab/semanticgraphs/A#
[1:7..1:7) <= org/virtuslab/semanticgraphs/A#`<init>`().
[1:8..1:9) <= org/virtuslab/semanticgraphs/A#a.
[1:11..1:17) => scala/Predef.String#
//File A.scala
package com.virtuslab.semanticgraphs
class A(a: String)
//File B.scala
package com.virtuslab.semanticgraphs
class B(b: String, a: A)
New LSP extension?