Class: Parser::LexerStrings Private
Overview
This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.
line 3 "lib/parser/lexer-strings.rl"
source://parser//lib/parser/lexer-strings.rb#6
Constant Summary collapse
- ESCAPES =
This constant is part of a private API. This constant may only be used in the Homebrew/brew repository. Third parties should avoid using this constant if possible, as it may be removed or changed without warning.
%
source://parser//lib/parser/lexer-strings.rb#3287
T.let(T.unsafe(nil), Hash)
- ESCAPE_WHITESPACE =
This constant is part of a private API. This constant may only be used in the Homebrew/brew repository. Third parties should avoid using this constant if possible, as it may be removed or changed without warning.
source://parser//lib/parser/lexer-strings.rb#5423
T.let(T.unsafe(nil), Hash)
- LEX_STATES =
This constant is part of a private API. This constant may only be used in the Homebrew/brew repository. Third parties should avoid using this constant if possible, as it may be removed or changed without warning.
source://parser//lib/parser/lexer-strings.rb#3332
T.let(T.unsafe(nil), Hash)
- REGEXP_META_CHARACTERS =
This constant is part of a private API. This constant may only be used in the Homebrew/brew repository. Third parties should avoid using this constant if possible, as it may be removed or changed without warning.
source://parser//lib/parser/lexer-strings.rb#3293
T.let(T.unsafe(nil), Regexp)
Class Method Summary collapse
-
.lex_en_character ⇒ Object
private
Returns the value of attribute lex_en_character.
-
.lex_en_character=(_arg0) ⇒ Object
private
Sets the attribute lex_en_character.
-
.lex_en_interp_backslash_delimited ⇒ Object
private
Returns the value of attribute lex_en_interp_backslash_delimited.
-
.lex_en_interp_backslash_delimited=(_arg0) ⇒ Object
private
Sets the attribute lex_en_interp_backslash_delimited.
-
.lex_en_interp_backslash_delimited_words ⇒ Object
private
Returns the value of attribute lex_en_interp_backslash_delimited_words.
-
.lex_en_interp_backslash_delimited_words=(_arg0) ⇒ Object
private
Sets the attribute lex_en_interp_backslash_delimited_words.
-
.lex_en_interp_string ⇒ Object
private
Returns the value of attribute lex_en_interp_string.
-
.lex_en_interp_string=(_arg0) ⇒ Object
private
Sets the attribute lex_en_interp_string.
-
.lex_en_interp_words ⇒ Object
private
Returns the value of attribute lex_en_interp_words.
-
.lex_en_interp_words=(_arg0) ⇒ Object
private
Sets the attribute lex_en_interp_words.
-
.lex_en_plain_backslash_delimited ⇒ Object
private
Returns the value of attribute lex_en_plain_backslash_delimited.
-
.lex_en_plain_backslash_delimited=(_arg0) ⇒ Object
private
Sets the attribute lex_en_plain_backslash_delimited.
-
.lex_en_plain_backslash_delimited_words ⇒ Object
private
Returns the value of attribute lex_en_plain_backslash_delimited_words.
-
.lex_en_plain_backslash_delimited_words=(_arg0) ⇒ Object
private
Sets the attribute lex_en_plain_backslash_delimited_words.
-
.lex_en_plain_string ⇒ Object
private
Returns the value of attribute lex_en_plain_string.
-
.lex_en_plain_string=(_arg0) ⇒ Object
private
Sets the attribute lex_en_plain_string.
-
.lex_en_plain_words ⇒ Object
private
Returns the value of attribute lex_en_plain_words.
-
.lex_en_plain_words=(_arg0) ⇒ Object
private
Sets the attribute lex_en_plain_words.
-
.lex_en_regexp_modifiers ⇒ Object
private
Returns the value of attribute lex_en_regexp_modifiers.
-
.lex_en_regexp_modifiers=(_arg0) ⇒ Object
private
Sets the attribute lex_en_regexp_modifiers.
-
.lex_en_unknown ⇒ Object
private
Returns the value of attribute lex_en_unknown.
-
.lex_en_unknown=(_arg0) ⇒ Object
private
Sets the attribute lex_en_unknown.
-
.lex_error ⇒ Object
private
Returns the value of attribute lex_error.
-
.lex_error=(_arg0) ⇒ Object
private
Sets the attribute lex_error.
-
.lex_start ⇒ Object
private
Returns the value of attribute lex_start.
-
.lex_start=(_arg0) ⇒ Object
private
Sets the attribute lex_start.
Instance Method Summary collapse
-
#advance(p) ⇒ Object
private
source://parser//lib/parser/lexer-strings.rb#3339.
-
#close_interp_on_current_literal(p) ⇒ Object
private
source://parser//lib/parser/lexer-strings.rb#5069.
-
#continue_lexing(current_literal) ⇒ Object
private
source://parser//lib/parser/lexer-strings.rb#5043.
-
#dedent_level ⇒ Object
private
source://parser//lib/parser/lexer-strings.rb#5092.
-
#herebody_s ⇒ Object
private
Returns the value of attribute herebody_s.
-
#herebody_s=(_arg0) ⇒ Object
private
Sets the attribute herebody_s.
-
#initialize(lexer, version) ⇒ LexerStrings
constructor
private
source://parser//lib/parser/lexer-strings.rb#3300.
-
#literal ⇒ Object
private
source://parser//lib/parser/lexer-strings.rb#5047.
-
#next_state_for_literal(literal) ⇒ Object
private
source://parser//lib/parser/lexer-strings.rb#5015.
-
#on_newline(p) ⇒ Object
private
This hook is triggered by "main" lexer on every newline character.
-
#pop_literal ⇒ Object
private
source://parser//lib/parser/lexer-strings.rb#5051.
-
#push_literal(*args) ⇒ Object
private
=== LITERAL STACK ===.
-
#read_character_constant(p) ⇒ Object
private
source://parser//lib/parser/lexer-strings.rb#4999.
-
#reset ⇒ Object
private
source://parser//lib/parser/lexer-strings.rb#3314.
-
#source_buffer ⇒ Object
private
Set by "main" lexer.
-
#source_buffer=(_arg0) ⇒ Object
private
Set by "main" lexer.
-
#source_pts ⇒ Object
private
Set by "main" lexer.
-
#source_pts=(_arg0) ⇒ Object
private
Set by "main" lexer.
Constructor Details
#initialize(lexer, version) ⇒ LexerStrings
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
source://parser//lib/parser/lexer-strings.rb#3300
2681 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2681 def initialize(lexer, version); end |
Class Method Details
.lex_en_character ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute lex_en_character.
source://parser//lib/parser/lexer-strings.rb#3275
2853 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2853 def lex_en_character; end |
.lex_en_character=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute lex_en_character
source://parser//lib/parser/lexer-strings.rb#3275
2860 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2860 def lex_en_character=(_arg0); end |
.lex_en_interp_backslash_delimited ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute lex_en_interp_backslash_delimited.
source://parser//lib/parser/lexer-strings.rb#3255
2865 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2865 def lex_en_interp_backslash_delimited; end |
.lex_en_interp_backslash_delimited=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute lex_en_interp_backslash_delimited
source://parser//lib/parser/lexer-strings.rb#3255
2872 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2872 def lex_en_interp_backslash_delimited=(_arg0); end |
.lex_en_interp_backslash_delimited_words ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute lex_en_interp_backslash_delimited_words.
source://parser//lib/parser/lexer-strings.rb#3263
2877 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2877 def lex_en_interp_backslash_delimited_words; end |
.lex_en_interp_backslash_delimited_words=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute lex_en_interp_backslash_delimited_words
source://parser//lib/parser/lexer-strings.rb#3263
2884 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2884 def lex_en_interp_backslash_delimited_words=(_arg0); end |
.lex_en_interp_string ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute lex_en_interp_string.
source://parser//lib/parser/lexer-strings.rb#3243
2889 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2889 def lex_en_interp_string; end |
.lex_en_interp_string=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute lex_en_interp_string
source://parser//lib/parser/lexer-strings.rb#3243
2896 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2896 def lex_en_interp_string=(_arg0); end |
.lex_en_interp_words ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute lex_en_interp_words.
source://parser//lib/parser/lexer-strings.rb#3239
2901 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2901 def lex_en_interp_words; end |
.lex_en_interp_words=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute lex_en_interp_words
source://parser//lib/parser/lexer-strings.rb#3239
2908 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2908 def lex_en_interp_words=(_arg0); end |
.lex_en_plain_backslash_delimited ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute lex_en_plain_backslash_delimited.
source://parser//lib/parser/lexer-strings.rb#3259
2913 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2913 def lex_en_plain_backslash_delimited; end |
.lex_en_plain_backslash_delimited=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute lex_en_plain_backslash_delimited
source://parser//lib/parser/lexer-strings.rb#3259
2920 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2920 def lex_en_plain_backslash_delimited=(_arg0); end |
.lex_en_plain_backslash_delimited_words ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute lex_en_plain_backslash_delimited_words.
source://parser//lib/parser/lexer-strings.rb#3267
2925 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2925 def lex_en_plain_backslash_delimited_words; end |
.lex_en_plain_backslash_delimited_words=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute lex_en_plain_backslash_delimited_words
source://parser//lib/parser/lexer-strings.rb#3267
2932 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2932 def lex_en_plain_backslash_delimited_words=(_arg0); end |
.lex_en_plain_string ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute lex_en_plain_string.
source://parser//lib/parser/lexer-strings.rb#3251
2937 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2937 def lex_en_plain_string; end |
.lex_en_plain_string=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute lex_en_plain_string
source://parser//lib/parser/lexer-strings.rb#3251
2944 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2944 def lex_en_plain_string=(_arg0); end |
.lex_en_plain_words ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute lex_en_plain_words.
source://parser//lib/parser/lexer-strings.rb#3247
2949 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2949 def lex_en_plain_words; end |
.lex_en_plain_words=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute lex_en_plain_words
source://parser//lib/parser/lexer-strings.rb#3247
2956 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2956 def lex_en_plain_words=(_arg0); end |
.lex_en_regexp_modifiers ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute lex_en_regexp_modifiers.
source://parser//lib/parser/lexer-strings.rb#3271
2961 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2961 def lex_en_regexp_modifiers; end |
.lex_en_regexp_modifiers=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute lex_en_regexp_modifiers
source://parser//lib/parser/lexer-strings.rb#3271
2968 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2968 def lex_en_regexp_modifiers=(_arg0); end |
.lex_en_unknown ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute lex_en_unknown.
source://parser//lib/parser/lexer-strings.rb#3279
2973 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2973 def lex_en_unknown; end |
.lex_en_unknown=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute lex_en_unknown
source://parser//lib/parser/lexer-strings.rb#3279
2980 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2980 def lex_en_unknown=(_arg0); end |
.lex_error ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute lex_error.
source://parser//lib/parser/lexer-strings.rb#3234
2985 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2985 def lex_error; end |
.lex_error=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute lex_error
source://parser//lib/parser/lexer-strings.rb#3234
2992 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2992 def lex_error=(_arg0); end |
.lex_start ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute lex_start.
source://parser//lib/parser/lexer-strings.rb#3230
2997 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2997 def lex_start; end |
.lex_start=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute lex_start
source://parser//lib/parser/lexer-strings.rb#3230
3004 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 3004 def lex_start=(_arg0); end |
Instance Method Details
#advance(p) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
source://parser//lib/parser/lexer-strings.rb#3339
2684 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2684 def advance(p); end |
#close_interp_on_current_literal(p) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
source://parser//lib/parser/lexer-strings.rb#5069
2687 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2687 def close_interp_on_current_literal(p); end |
#continue_lexing(current_literal) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
source://parser//lib/parser/lexer-strings.rb#5043
2690 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2690 def continue_lexing(current_literal); end |
#dedent_level ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
source://parser//lib/parser/lexer-strings.rb#5092
2693 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2693 def dedent_level; end |
#herebody_s ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Returns the value of attribute herebody_s.
source://parser//lib/parser/lexer-strings.rb#3295
2698 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2698 def herebody_s; end |
#herebody_s=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Sets the attribute herebody_s
source://parser//lib/parser/lexer-strings.rb#3295
2705 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2705 def herebody_s=(_arg0); end |
#literal ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
source://parser//lib/parser/lexer-strings.rb#5047
2708 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2708 def literal; end |
#next_state_for_literal(literal) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
source://parser//lib/parser/lexer-strings.rb#5015
2711 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2711 def next_state_for_literal(literal); end |
#on_newline(p) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
This hook is triggered by "main" lexer on every newline character
source://parser//lib/parser/lexer-strings.rb#5100
2716 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2716 def on_newline(p); end |
#pop_literal ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
source://parser//lib/parser/lexer-strings.rb#5051
2719 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2719 def pop_literal; end |
#push_literal(*args) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
=== LITERAL STACK ===
source://parser//lib/parser/lexer-strings.rb#5009
2724 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2724 def push_literal(*args); end |
#read_character_constant(p) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
source://parser//lib/parser/lexer-strings.rb#4999
2727 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2727 def read_character_constant(p); end |
#reset ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
source://parser//lib/parser/lexer-strings.rb#3314
2730 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2730 def reset; end |
#source_buffer ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Set by "main" lexer
source://parser//lib/parser/lexer-strings.rb#3298
2735 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2735 def source_buffer; end |
#source_buffer=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Set by "main" lexer
source://parser//lib/parser/lexer-strings.rb#3298
2740 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2740 def source_buffer=(_arg0); end |
#source_pts ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Set by "main" lexer
source://parser//lib/parser/lexer-strings.rb#3298
2745 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2745 def source_pts; end |
#source_pts=(_arg0) ⇒ Object
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Set by "main" lexer
source://parser//lib/parser/lexer-strings.rb#3298
2750 |
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2750 def source_pts=(_arg0); end |