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
2675 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2675 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
2847 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2847 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
2854 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2854 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
2859 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2859 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
2866 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2866 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
2871 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2871 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
2878 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2878 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
2883 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2883 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
2890 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2890 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
2895 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2895 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
2902 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2902 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
2907 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2907 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
2914 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2914 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
2919 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2919 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
2926 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2926 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
2931 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2931 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
2938 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2938 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
2943 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2943 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
2950 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2950 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
2955 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2955 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
2962 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2962 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
2967 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2967 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
2974 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2974 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
2979 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2979 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
2986 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2986 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
2991 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2991 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
2998 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2998 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
2678 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2678 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
2681 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2681 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
2684 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2684 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
2687 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2687 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
2692 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2692 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
2699 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2699 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
2702 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2702 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
2705 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2705 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
2710 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2710 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
2713 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2713 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
2718 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2718 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
2721 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2721 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
2724 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2724 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
2729 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2729 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
2734 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2734 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
2739 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2739 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
2744 |
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2744 def source_pts=(_arg0); end |