Class: Parser::Lexer Private

Inherits:
Object show all
Defined in:
sorbet/rbi/parser@3.3.7.4.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



1925
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1925

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



2174
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2174

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.



2181
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2181

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



2186
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2186

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.



2193
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2193

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



2198
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2198

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.



2205
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2205

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



2210
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2210

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.



2217
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2217

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



2222
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2222

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.



2229
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2229

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



2234
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2234

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.



2241
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2241

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



2246
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2246

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.



2253
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2253

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



2258
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2258

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.



2265
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2265

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



2270
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2270

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.



2277
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2277

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



2282
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2282

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.



2289
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2289

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



2294
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2294

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.



2301
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2301

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



2306
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2306

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.



2313
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2313

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



2318
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2318

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.



2325
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2325

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



2330
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2330

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.



2337
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2337

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



2342
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2342

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.



2349
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2349

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



2354
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2354

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.



2361
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2361

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



2366
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2366

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.



2373
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2373

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



2378
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2378

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.



2385
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2385

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



1930
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1930

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



1935
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1935

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.



1942
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1942

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



1947
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1947

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



1952
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1952

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.



1959
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1959

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



1964
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1964

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.



1971
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1971

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



1976
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1976

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.



1983
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1983

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



1988
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1988

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



1991
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1991

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



1996
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 1996

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.



2003
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2003

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



2006
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2006

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



2011
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2011

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.



2018
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2018

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



2021
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2021

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



2026
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2026

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.



2033
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2033

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



2038
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2038

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



2043
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2043

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



2046
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2046

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



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

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



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

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



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

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



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

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



2063
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2063

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



2066
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2066

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



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

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



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

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



2077
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2077

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.



2084
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2084

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



2089
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2089

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.



2096
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2096

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



2101
# File 'sorbet/rbi/parser@3.3.7.4.rbi', line 2101

def version; end