Table of Contents

Enum NodeType

Namespace
Rego
Assembly
Rego.dll

Node types for Rego AST nodes

public enum NodeType

Fields

Array = 1004

, An array of terms

Binding = 1000

A binding of a variable to a term

Bindings = 1016

A list of bindings

Error = 1800

An error node, containing an error message, an error AST, and an error code

ErrorAst = 1802

An error AST showing where in the code tree the error occurred

ErrorCode = 1803

An error code

ErrorMessage = 1801

An error message

ErrorSeq = 1804

An error sequence

False = 1012

A boolean value representing false

Float = 1009

A floating point value

Int = 1008

An integer value

Internal = 1999

An internal node type, not exposed to users

Null = 1013

A null value

Object = 1006

An object, which is a collection of ObjectItem nodes

ObjectItem = 1007

An item in an object, which is a key-value pair. The first child is the key, the second child is the value.

Result = 1018

A result, consiting of a list of bindings and a list of terms

Results = 1017

A list of results

Scalar = 1003

A scalar value (int, float, string, true, false, null)

Set = 1005

A set of terms. Will not contain duplicates.

String = 1010

A string value

Term = 1002

A term, which can be a scalar, array, set, or object

Terms = 1015

A list of terms

True = 1011

A boolean value representing true

Undefined = 1014

An undefined value

Var = 1001

A variable