Interface QueryI

interface QueryI {
    children?: QueryI[];
    type: string | (new (t) => AbstractNode<any>) | QueryOperator;
    value?: string;
}

Implemented by

Properties

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: string | (new (t) => AbstractNode<any>) | QueryOperator

The type of the node

Type declaration

value?: string

The value of the node

Default

undefined

Example

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

Generated using TypeDoc