Class Query

Implementation of Query that simplify queries

Implements

Constructors

Properties

Constructors

Properties

children: QueryI[] = []

The children of the node

Default

undefined

Example

// Match a node with the value "foo" and a child with the value "bar"
{ type: DockerKeyword, value: "foo", children: [{ type: DockerKeyword, value: "bar" }] }
type: QueryType

The type of the node

value: string

The value of the node

Default

undefined

Example

// Match a node with the value "foo"
{ type: DockerKeyword, value: "foo" }

Generated using TypeDoc