Class: Parser::Lexer Private

Inherits:
Object show all
Defined in:
sorbet/rbi/parser@3.3.8.0.rbi

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.rl"

=== BEFORE YOU START ===

Read the Ruby Hacking Guide chapter 11, available in English at http://whitequark.org/blog/2013/04/01/ruby-hacking-guide-ch-11-finite-state-lexer/

Remember two things about Ragel scanners:

1) Longest match wins.

2) If two matches have the same length, the first in source code wins.

General rules of making Ragel and Bison happy:

  • p (position) and @te contain the index of the character they're pointing to ("current"), plus one. @ts contains the index of the corresponding character. The code for extracting matched token is:

    @source_buffer.slice(@ts...@te)

  • If your input is foooooooobar and the rule is:

    'f' 'o'+

the result will be:

  foooooooobar
  ^ ts=0   ^ p=te=9
  • A Ragel lexer action should not emit more than one token, unless you know what you are doing.

  • All Ragel commands (fnext, fgoto, ...) end with a semicolon.

  • If an action emits the token and transitions to another state, use these Ragel commands:

    emit($whatever) fnext $next_state; fbreak;

If you perform fgoto in an action which does not emit a token nor rewinds the stream pointer, the parser's side-effectful, context-sensitive lookahead actions will break in a hard to detect and debug way.

  • If an action does not emit a token:

    fgoto $next_state;

  • If an action features lookbehind, i.e. matches characters with the intent of passing them to another action:

    p = @ts - 1 fgoto $next_state;

or, if the lookbehind consists of a single character:

  fhold; fgoto $next_state;
  • Ragel merges actions. So, if you have e_lparen = '(' %act and c_lparen = '(' and a lexer action e_lparen | c_lparen, the result will invoke the action act.

e_something stands for "something with embedded action".

  • EOF is explicit and is matched by c_eof. If you want to introspect the state of the lexer, add this rule to the state:

    c_eof => do_eof;

  • If you proceed past EOF, the lexer will complain:

    NoMethodError: undefined method `ord' for nil:NilClass

source://parser//lib/parser/lexer-F1.rb#82

Defined Under Namespace

Classes: Dedenter, Literal, StackState

Constant Summary collapse

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-F1.rb#14869

T.let(T.unsafe(nil), Hash)
KEYWORDS =

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-F1.rb#14855

T.let(T.unsafe(nil), Hash)
KEYWORDS_BEGIN =

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-F1.rb#14862

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-F1.rb#8371

T.let(T.unsafe(nil), Hash)
PUNCTUATION =

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.

Mapping of strings to parser tokens.

source://parser//lib/parser/lexer-F1.rb#14829

T.let(T.unsafe(nil), Hash)
PUNCTUATION_BEGIN =

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-F1.rb#14849

T.let(T.unsafe(nil), Hash)

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(version) ⇒ Lexer

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-F1.rb#8250



1931
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 1931

def initialize(version); end

Class Method Details

.lex_en_expr_argObject

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_expr_arg.

source://parser//lib/parser/lexer-F1.rb#8186



2180
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2180

def lex_en_expr_arg; end

.lex_en_expr_arg=(_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_expr_arg

source://parser//lib/parser/lexer-F1.rb#8186

Parameters:

  • value

    the value to set the attribute lex_en_expr_arg to.



2187
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2187

def lex_en_expr_arg=(_arg0); end

.lex_en_expr_begObject

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_expr_beg.

source://parser//lib/parser/lexer-F1.rb#8202



2192
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2192

def lex_en_expr_beg; end

.lex_en_expr_beg=(_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_expr_beg

source://parser//lib/parser/lexer-F1.rb#8202

Parameters:

  • value

    the value to set the attribute lex_en_expr_beg to.



2199
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2199

def lex_en_expr_beg=(_arg0); end

.lex_en_expr_cmdargObject

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_expr_cmdarg.

source://parser//lib/parser/lexer-F1.rb#8190



2204
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2204

def lex_en_expr_cmdarg; end

.lex_en_expr_cmdarg=(_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_expr_cmdarg

source://parser//lib/parser/lexer-F1.rb#8190

Parameters:

  • value

    the value to set the attribute lex_en_expr_cmdarg to.



2211
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2211

def lex_en_expr_cmdarg=(_arg0); end

.lex_en_expr_dotObject

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_expr_dot.

source://parser//lib/parser/lexer-F1.rb#8182



2216
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2216

def lex_en_expr_dot; end

.lex_en_expr_dot=(_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_expr_dot

source://parser//lib/parser/lexer-F1.rb#8182

Parameters:

  • value

    the value to set the attribute lex_en_expr_dot to.



2223
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2223

def lex_en_expr_dot=(_arg0); end

.lex_en_expr_endObject

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_expr_end.

source://parser//lib/parser/lexer-F1.rb#8214



2228
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2228

def lex_en_expr_end; end

.lex_en_expr_end=(_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_expr_end

source://parser//lib/parser/lexer-F1.rb#8214

Parameters:

  • value

    the value to set the attribute lex_en_expr_end to.



2235
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2235

def lex_en_expr_end=(_arg0); end

.lex_en_expr_endargObject

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_expr_endarg.

source://parser//lib/parser/lexer-F1.rb#8194



2240
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2240

def lex_en_expr_endarg; end

.lex_en_expr_endarg=(_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_expr_endarg

source://parser//lib/parser/lexer-F1.rb#8194

Parameters:

  • value

    the value to set the attribute lex_en_expr_endarg to.



2247
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2247

def lex_en_expr_endarg=(_arg0); end

.lex_en_expr_endfnObject

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_expr_endfn.

source://parser//lib/parser/lexer-F1.rb#8178



2252
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2252

def lex_en_expr_endfn; end

.lex_en_expr_endfn=(_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_expr_endfn

source://parser//lib/parser/lexer-F1.rb#8178

Parameters:

  • value

    the value to set the attribute lex_en_expr_endfn to.



2259
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2259

def lex_en_expr_endfn=(_arg0); end

.lex_en_expr_fnameObject

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_expr_fname.

source://parser//lib/parser/lexer-F1.rb#8174



2264
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2264

def lex_en_expr_fname; end

.lex_en_expr_fname=(_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_expr_fname

source://parser//lib/parser/lexer-F1.rb#8174

Parameters:

  • value

    the value to set the attribute lex_en_expr_fname to.



2271
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2271

def lex_en_expr_fname=(_arg0); end

.lex_en_expr_labelargObject

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_expr_labelarg.

source://parser//lib/parser/lexer-F1.rb#8206



2276
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2276

def lex_en_expr_labelarg; end

.lex_en_expr_labelarg=(_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_expr_labelarg

source://parser//lib/parser/lexer-F1.rb#8206

Parameters:

  • value

    the value to set the attribute lex_en_expr_labelarg to.



2283
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2283

def lex_en_expr_labelarg=(_arg0); end

.lex_en_expr_midObject

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_expr_mid.

source://parser//lib/parser/lexer-F1.rb#8198



2288
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2288

def lex_en_expr_mid; end

.lex_en_expr_mid=(_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_expr_mid

source://parser//lib/parser/lexer-F1.rb#8198

Parameters:

  • value

    the value to set the attribute lex_en_expr_mid to.



2295
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2295

def lex_en_expr_mid=(_arg0); end

.lex_en_expr_valueObject

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_expr_value.

source://parser//lib/parser/lexer-F1.rb#8210



2300
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2300

def lex_en_expr_value; end

.lex_en_expr_value=(_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_expr_value

source://parser//lib/parser/lexer-F1.rb#8210

Parameters:

  • value

    the value to set the attribute lex_en_expr_value to.



2307
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2307

def lex_en_expr_value=(_arg0); end

.lex_en_expr_variableObject

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_expr_variable.

source://parser//lib/parser/lexer-F1.rb#8170



2312
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2312

def lex_en_expr_variable; end

.lex_en_expr_variable=(_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_expr_variable

source://parser//lib/parser/lexer-F1.rb#8170

Parameters:

  • value

    the value to set the attribute lex_en_expr_variable to.



2319
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2319

def lex_en_expr_variable=(_arg0); end

.lex_en_inside_stringObject

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_inside_string.

source://parser//lib/parser/lexer-F1.rb#8230



2324
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2324

def lex_en_inside_string; end

.lex_en_inside_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_inside_string

source://parser//lib/parser/lexer-F1.rb#8230

Parameters:

  • value

    the value to set the attribute lex_en_inside_string to.



2331
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2331

def lex_en_inside_string=(_arg0); end

.lex_en_leading_dotObject

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_leading_dot.

source://parser//lib/parser/lexer-F1.rb#8218



2336
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2336

def lex_en_leading_dot; end

.lex_en_leading_dot=(_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_leading_dot

source://parser//lib/parser/lexer-F1.rb#8218

Parameters:

  • value

    the value to set the attribute lex_en_leading_dot to.



2343
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2343

def lex_en_leading_dot=(_arg0); end

.lex_en_line_beginObject

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_line_begin.

source://parser//lib/parser/lexer-F1.rb#8226



2348
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2348

def lex_en_line_begin; end

.lex_en_line_begin=(_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_line_begin

source://parser//lib/parser/lexer-F1.rb#8226

Parameters:

  • value

    the value to set the attribute lex_en_line_begin to.



2355
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2355

def lex_en_line_begin=(_arg0); end

.lex_en_line_commentObject

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_line_comment.

source://parser//lib/parser/lexer-F1.rb#8222



2360
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2360

def lex_en_line_comment; end

.lex_en_line_comment=(_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_line_comment

source://parser//lib/parser/lexer-F1.rb#8222

Parameters:

  • value

    the value to set the attribute lex_en_line_comment to.



2367
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2367

def lex_en_line_comment=(_arg0); end

.lex_errorObject

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-F1.rb#8165



2372
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2372

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-F1.rb#8165

Parameters:

  • value

    the value to set the attribute lex_error to.



2379
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2379

def lex_error=(_arg0); end

.lex_startObject

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-F1.rb#8161



2384
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2384

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-F1.rb#8161

Parameters:

  • value

    the value to set the attribute lex_start to.



2391
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2391

def lex_start=(_arg0); end

Instance Method Details

#advanceObject

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.

Return next token: [type, value].

source://parser//lib/parser/lexer-F1.rb#8419



1936
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 1936

def advance; end

#cmdargObject

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 cmdarg.

source://parser//lib/parser/lexer-F1.rb#8244



1941
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 1941

def cmdarg; end

#cmdarg=(_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 cmdarg

source://parser//lib/parser/lexer-F1.rb#8244

Parameters:

  • value

    the value to set the attribute cmdarg to.



1948
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 1948

def cmdarg=(_arg0); end

#cmdarg_stackObject

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 cmdarg_stack.

source://parser//lib/parser/lexer-F1.rb#8248



1953
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 1953

def cmdarg_stack; end

#command_startObject

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 command_start.

source://parser//lib/parser/lexer-F1.rb#8244



1958
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 1958

def command_start; end

#command_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 command_start

source://parser//lib/parser/lexer-F1.rb#8244

Parameters:

  • value

    the value to set the attribute command_start to.



1965
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 1965

def command_start=(_arg0); end

#commentsObject

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 comments.

source://parser//lib/parser/lexer-F1.rb#8246



1970
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 1970

def comments; end

#comments=(_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 comments

source://parser//lib/parser/lexer-F1.rb#8246

Parameters:

  • value

    the value to set the attribute comments to.



1977
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 1977

def comments=(_arg0); end

#condObject

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 cond.

source://parser//lib/parser/lexer-F1.rb#8244



1982
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 1982

def cond; end

#cond=(_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 cond

source://parser//lib/parser/lexer-F1.rb#8244

Parameters:

  • value

    the value to set the attribute cond to.



1989
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 1989

def cond=(_arg0); end

#cond_stackObject

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 cond_stack.

source://parser//lib/parser/lexer-F1.rb#8248



1994
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 1994

def cond_stack; end

#construct_float(chars) ⇒ 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-F1.rb#8281



1997
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 1997

def construct_float(chars); end

#contextObject

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 context.

source://parser//lib/parser/lexer-F1.rb#8244



2002
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2002

def context; end

#context=(_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 context

source://parser//lib/parser/lexer-F1.rb#8244

Parameters:

  • value

    the value to set the attribute context to.



2009
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2009

def context=(_arg0); end

#dedent_levelObject

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-F1.rb#8414



2012
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2012

def dedent_level; end

#diagnosticsObject

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 diagnostics.

source://parser//lib/parser/lexer-F1.rb#8240



2017
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2017

def diagnostics; end

#diagnostics=(_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 diagnostics

source://parser//lib/parser/lexer-F1.rb#8240

Parameters:

  • value

    the value to set the attribute diagnostics to.



2024
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2024

def diagnostics=(_arg0); end

#encodingObject

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-F1.rb#8367



2027
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2027

def encoding; end

#force_utf32Object

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 force_utf32.

source://parser//lib/parser/lexer-F1.rb#8242



2032
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2032

def force_utf32; end

#force_utf32=(_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 force_utf32

source://parser//lib/parser/lexer-F1.rb#8242

Parameters:

  • value

    the value to set the attribute force_utf32 to.



2039
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2039

def force_utf32=(_arg0); end

#lambda_stackObject

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 lambda_stack.

source://parser//lib/parser/lexer-F1.rb#8248



2044
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2044

def lambda_stack; end

#paren_nestObject

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 paren_nest.

source://parser//lib/parser/lexer-F1.rb#8248



2049
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2049

def paren_nest; end

#pop_cmdargObject

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-F1.rb#8401



2052
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2052

def pop_cmdarg; end

#pop_condObject

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-F1.rb#8410



2055
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2055

def pop_cond; end

#push_cmdargObject

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-F1.rb#8396



2058
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2058

def push_cmdarg; end

#push_condObject

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-F1.rb#8405



2061
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2061

def push_cond; end

#reset(reset_state = T.unsafe(nil)) ⇒ 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-F1.rb#8290



2064
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2064

def reset(reset_state = T.unsafe(nil)); end

#source_bufferObject

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-F1.rb#8238



2069
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2069

def source_buffer; end

#source_buffer=(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.

source://parser//lib/parser/lexer-F1.rb#8343



2072
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2072

def source_buffer=(source_buffer); end

#stateObject

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-F1.rb#8388



2075
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2075

def state; end

#state=(state) ⇒ 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-F1.rb#8392



2078
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2078

def state=(state); end

#static_envObject

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 static_env.

source://parser//lib/parser/lexer-F1.rb#8241



2083
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2083

def static_env; end

#static_env=(_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 static_env

source://parser//lib/parser/lexer-F1.rb#8241

Parameters:

  • value

    the value to set the attribute static_env to.



2090
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2090

def static_env=(_arg0); end

#tokensObject

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 tokens.

source://parser//lib/parser/lexer-F1.rb#8246



2095
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2095

def tokens; end

#tokens=(_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 tokens

source://parser//lib/parser/lexer-F1.rb#8246

Parameters:

  • value

    the value to set the attribute tokens to.



2102
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2102

def tokens=(_arg0); end

#versionObject

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 version.

source://parser//lib/parser/lexer-F1.rb#8248



2107
# File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2107

def version; end