final class Trees extends AnyRef
Manages parsing of Scala source files into Scalameta syntax trees.
- provides the latest good Scalameta tree for a given source file
similar as Buffers provides the current text content.
- produces diagnostics for syntax errors.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Trees
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new Trees(buildTargets: BuildTargets, buffers: Buffers, scalaVersionSelector: ScalaVersionSelector)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
didChange(path: meta.AbsolutePath): List[Diagnostic]
Parse file at the given path and return a list of errors if there are any.
Parse file at the given path and return a list of errors if there are any.
- path
file to parse
- returns
list of errors if the file failed to parse
- def didClose(fileUri: meta.AbsolutePath): Unit
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
findLastEnclosingAt[T <: Tree](source: meta.AbsolutePath, lspPos: org.eclipse.lsp4j.Position, predicate: (T) ⇒ Boolean = (_: T) => true)(implicit arg0: ClassTag[T]): Option[T]
Find last tree matching T that encloses the position.
Find last tree matching T that encloses the position.
- source
source to load the tree for
- lspPos
cursor position
- predicate
predicate which T must fulfill
- returns
found tree node of type T or None
- def get(path: meta.AbsolutePath): Option[Tree]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def tokenized(input: VirtualFile): meta.Tokenized
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()