queryableTree

io.eleven19.krueger.cst.CstQueryableTree.queryableTree

Attributes

Source
CstQueryableTree.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def children(t: CstNode): Seq[CstNode]

Every child of t in a stable traversal order.

Every child of t in a stable traversal order.

Attributes

Source
CstQueryableTree.scala
def fields(t: CstNode): Map[FieldName, Seq[CstNode]]

Named sub-trees keyed by field name. Values must be a (possibly empty) subset of children(t).

Named sub-trees keyed by field name. Values must be a (possibly empty) subset of children(t).

Attributes

Source
CstQueryableTree.scala

Human- and query-readable name of the node's kind.

Human- and query-readable name of the node's kind.

Attributes

Source
CstQueryableTree.scala
def text(t: CstNode): Option[String]

Raw text for leaf nodes; None for compound nodes.

Raw text for leaf nodes; None for compound nodes.

Attributes

Source
CstQueryableTree.scala