Enum NodeType
- Namespace
- Rego
- Assembly
- Rego.dll
Node types for Rego AST nodes
public enum NodeType
Fields
Array = 1004, An array of terms
Binding = 1000A binding of a variable to a term
Bindings = 1016A list of bindings
Error = 1800An error node, containing an error message, an error AST, and an error code
ErrorAst = 1802An error AST showing where in the code tree the error occurred
ErrorCode = 1803An error code
ErrorMessage = 1801An error message
ErrorSeq = 1804An error sequence
False = 1012A boolean value representing false
Float = 1009A floating point value
Int = 1008An integer value
Internal = 1999An internal node type, not exposed to users
Null = 1013A null value
Object = 1006An object, which is a collection of ObjectItem nodes
ObjectItem = 1007An item in an object, which is a key-value pair. The first child is the key, the second child is the value.
Result = 1018A result, consiting of a list of bindings and a list of terms
Results = 1017A list of results
Scalar = 1003A scalar value (int, float, string, true, false, null)
Set = 1005A set of terms. Will not contain duplicates.
String = 1010A string value
Term = 1002A term, which can be a scalar, array, set, or object
Terms = 1015A list of terms
True = 1011A boolean value representing true
Undefined = 1014An undefined value
Var = 1001A variable