Skip to content
On this page

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

class · Ruby 3.4

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.