class Prism::Serialize::Loader
Constants
- DIAGNOSTIC_TYPES
Attributes
Source
Public Class Methods
Public Instance Methods
() → void
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 194
def define_load_node_lambdas: () -> void
() → bool
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 83
def eof?: () -> bool
: () -> bool
() → bool
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 147
def load_bool: () -> bool
: () -> bool
(Source source, bool freeze) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 103
def load_comment_attachments: (Source source, bool freeze) -> void
Load the comments attached to each node into the comment attachments and comment ranges of the given source. For each node that owns comments, the index at which its comments begin is stored at its node id and the index at which they end at the following node id.
: (Source source, bool freeze) -> void
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 109
def load_comments: (Array[Comment] comments, bool freeze) -> Array[Comment]
(ConstantPool constant_pool, Encoding encoding) → Symbol
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 179
def load_constant: (ConstantPool constant_pool, Encoding encoding) -> Symbol
: (ConstantPool constant_pool, Encoding encoding) -> Symbol
(ConstantPool constant_pool) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 86
def load_constant_pool: (ConstantPool constant_pool) -> void
: (ConstantPool constant_pool) -> void
() → Float
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 144
def load_double: () -> Float
: () -> Float
() → Encoding
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 92
def load_encoding: () -> Encoding
: () -> Encoding
() → Symbol
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 117
def load_error_level: () -> Symbol
: () -> Symbol
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 120
def load_errors: (Encoding encoding, bool freeze) -> Array[ParseError]
() → void
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 89
def load_header: () -> void
: () -> void
() → Integer
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 141
def load_integer: () -> Integer
: () -> Integer
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 95
def load_line_offsets: (bool freeze) -> Array[Integer]
: (bool freeze) -> Array
(bool freeze) → Location
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 166
def load_location: (bool freeze) -> Location
Load a location object from the serialized data. Note that we are lying about the signature a bit here, because we sometimes load it as a packed integer instead of an object.
: (bool freeze) -> Location
(bool freeze) → Location
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 159
def load_location_object: (bool freeze) -> Location
: (bool freeze) -> Location
(bool freeze) → Array[MagicComment]
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 112
def load_magic_comments: (bool freeze) -> Array[MagicComment]
: (bool freeze) -> Array
(ConstantPool constant_pool, Encoding encoding, bool freeze, Integer finish) → node
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 190
def load_nodes: (ConstantPool constant_pool, Encoding encoding, bool freeze, Integer finish) -> node
Load the nodes that are serialized before the given offset and return the root. Nodes are serialized in post-order, so the children of each node are the topmost values on the stack, in field order, by the time its record is read.
: (ConstantPool constant_pool, Encoding encoding, bool freeze, Integer finish) -> node
(ConstantPool constant_pool, Encoding encoding) → Symbol?
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 182
def load_optional_constant: (ConstantPool constant_pool, Encoding encoding) -> Symbol?
: (ConstantPool constant_pool, Encoding encoding) -> Symbol?
(bool freeze) → Location?
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 173
def load_optional_location: (bool freeze) -> Location?
Load an optional location object from the serialized data if it is present. Note that we are lying about the signature a bit here, because we sometimes load it as a packed integer instead of an object.
: (bool freeze) -> Location?
(bool freeze) → Location?
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 176
def load_optional_location_object: (bool freeze) -> Location?
: (bool freeze) -> Location?
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 156
def load_string: (Encoding encoding) -> String
() → Array[Token]
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 129
def load_tokens: () -> Array[Token]
: () -> Array
() → Integer
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 150
def load_uint32: () -> Integer
: () -> Integer
() → Integer
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 153
def load_uint64: () -> Integer
: () -> Integer
() → Integer
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 138
def load_varsint: () -> Integer
: () -> Integer
() → Integer
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 135
def load_varuint: () -> Integer
variable-length integer using en.wikipedia.org/wiki/LEB128 This is also what protobuf uses: protobuf.dev/programming-guides/encoding/#varints
: () -> Integer
() → Symbol
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 123
def load_warning_level: () -> Symbol
: () -> Symbol
(Encoding encoding, bool freeze) → Array[ParseWarning]
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 126
def load_warnings: (Encoding encoding, bool freeze) -> Array[ParseWarning]