Skip to content
On this page
class · Ruby 4.0

Prism::Node

< Object 37 instance methods 2 class methods

This represents a node in the tree. It is the parent class of all of the various node types.

Class methods 2

Instance methods 37

Attributes
Read

An bitset of flags for this node. There are certain flags that are common for all nodes, and then some nodes have specific flags.

Read

A unique identifier for this node. This is used in a very specific use case where you want to keep around a reference to a node without having to keep around the syntax tree in memory. This unique identifier will be consistent across multiple parses of the same source code.

Read

A pointer to the source that this node was created from.