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
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Trees
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Trees(buffers: Buffers, scalaVersionSelector: ScalaVersionSelector)(implicit reports: ReportContext)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. def didChange(path: io.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

  7. def didClose(fileUri: io.AbsolutePath): Unit
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def findLastEnclosingAt[T <: Tree](source: io.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

  11. def get(path: io.AbsolutePath): Option[Tree]
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  18. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. def tokenized(input: VirtualFile): meta.Tokenized
  21. def tokenized(path: io.AbsolutePath): Option[tokens.Tokens]
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped