module Prism::Serialize
A module responsible for deserializing parse results.
Constants
- FastStringIO
- MAJOR_VERSION
-
The major version of prism that we are expecting to find in the serialized strings.
- MINOR_VERSION
-
The minor version of prism that we are expecting to find in the serialized strings.
- PATCH_VERSION
-
The patch version of prism that we are expecting to find in the serialized strings.
- TOKEN_TYPES
-
The token types that can be indexed by their enum values.
Public Class Methods
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 32
def self.load_lex: (String input, String serialized, bool freeze) -> LexResult
(String input, String serialized, bool freeze) → ParseResult
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 24
def self.load_parse: (String input, String serialized, bool freeze) -> ParseResult
Deserialize the dumped output from a request to parse or parse_file.
The formatting of the source of this method is purposeful to illustrate the structure of the serialized data.
: (String input, String serialized, bool freeze) -> ParseResult
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 41
def self.load_parse_comments: (String input, String serialized, bool freeze) -> Array[Comment]
(String input, String serialized, bool freeze) → ParseLexResult
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/serialize.rbs, line 50
def self.load_parse_lex: (String input, String serialized, bool freeze) -> ParseLexResult
Deserialize the dumped output from a request to parse_lex or parse_lex_file.
The formatting of the source of this method is purposeful to illustrate the structure of the serialized data.
: (String input, String serialized, bool freeze) -> ParseLexResult