Syntactic

esmeta.es.Syntactic
case class Syntactic(name: String, args: List[Boolean], rhsIdx: Int, children: Vector[Option[Ast]]) extends Ast

ASTs constructed by syntactic productions

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Ast
trait Locational
trait ESElem
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def apply(field: Value)(using cfg: CFG): Ast

getter

getter

Attributes

Inherited from:
Ast
def clearLoc: Ast

clear location

clear location

Attributes

Inherited from:
Ast
def exists(field: Value)(using cfg: CFG): Boolean

existence check

existence check

Attributes

Inherited from:
Ast
def flattenStmt: Vector[Ast]

flatten statements

flatten statements

Attributes

Inherited from:
Ast
def get(field: Value)(using cfg: CFG): Option[Ast]

safe getter

safe getter

Attributes

Inherited from:
Ast
def getArgs: List[Boolean]

get arguments

get arguments

Attributes

Inherited from:
Ast
def getSdo(name: String)(using cfg: CFG): Option[(Ast, Func)]

get syntax-directed operation (SDO)

get syntax-directed operation (SDO)

Attributes

Inherited from:
Ast
override def hashCode: Int

not use case class' hash code

not use case class' hash code

Attributes

Definition Classes
Ast -> Any
Inherited from:
Ast
def idx: Int

idx of production

idx of production

Attributes

Inherited from:
Ast
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def setChildLoc(locOpt: Option[Loc]): Ast

set location including children

set location including children

Attributes

Inherited from:
Ast
def setLoc(locOpt: Option[Loc]): Locational.this.type

set source location

set source location

Attributes

Inherited from:
Locational
def setLoc(start: Pos, end: Pos, steps: List[Int]): Locational.this.type

set source location with start and end positions and steps

set source location with start and end positions and steps

Attributes

Inherited from:
Locational
def subIdx(using cfg: CFG): Int

get sub index of parsed Ast

get sub index of parsed Ast

Attributes

Inherited from:
Ast
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
ESElem -> Any
Inherited from:
ESElem
def toString(detail: Boolean, location: Boolean, grammar: Option[Grammar]): String

stringify with options

stringify with options

Attributes

Inherited from:
ESElem
def valid(grammar: Grammar): Boolean

validity check

validity check

Attributes

Inherited from:
Ast

Inherited fields

lazy val chains: List[Ast]

production chains

production chains

Attributes

Inherited from:
Ast
var loc: Option[Loc]

source location

source location

Attributes

Inherited from:
Locational
var parent: Option[Ast]

parent

parent

Attributes

Inherited from:
Ast
lazy val types: Set[String]

types

types

Attributes

Inherited from:
Ast