File: ReferenceElementNode.md | Updated: 11/15/2025
This class is only relevant if the referenced property is array-like. In this case, ReferenceElementNode allows to refer to a specific element inside the data structure via an index.
Constructs a new reference element node.
referenceNode | The reference node.
---|---
indexNode | The index node that defines the element access.
This flag can be used for type testing.
Default is true.
This flag can be used for type testing.
Default is true.
Similar to ReferenceBaseNode#reference, an additional property references to the current node.
Default is null.
Similar to ReferenceNode#reference, an additional property references to the current node.
Default is null.
This method is overwritten since the node type is inferred from the uniform type of the reference node.
Overrides: ArrayElementNode#getNodeType
Returns: The node type.
This method is overwritten since the node type is inferred from the uniform type of the reference node.
Overrides: ArrayElementNode#getNodeType
Returns: The node type.
src/nodes/accessors/ReferenceBaseNode.js
This class is only relevant if the referenced property is array-like. In this case, ReferenceElementNode allows to refer to a specific element inside the data structure via an index.
Constructs a new reference element node.
referenceNode | The reference node.
---|---
indexNode | The index node that defines the element access.
This flag can be used for type testing.
Default is true.
This flag can be used for type testing.
Default is true.
Similar to ReferenceBaseNode#reference, an additional property references to the current node.
Default is null.
Similar to ReferenceNode#reference, an additional property references to the current node.
Default is null.
This method is overwritten since the node type is inferred from the uniform type of the reference node.
Overrides: ArrayElementNode#getNodeType
Returns: The node type.
This method is overwritten since the node type is inferred from the uniform type of the reference node.
Overrides: ArrayElementNode#getNodeType
Returns: The node type.