Class: Parser::Lexer::Literal Private

Inherits:
Object
  • 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.

source://parser//lib/parser/lexer/literal.rb#6

Constant Summary collapse

DELIMITERS =

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/literal.rb#7

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

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/literal.rb#8

T.let(T.unsafe(nil), Integer)
TAB =

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/literal.rb#9

T.let(T.unsafe(nil), Integer)
TYPES =

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/literal.rb#11

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

Instance Method Summary collapse

Constructor Details

#initialize(lexer, str_type, delimiter, str_s, heredoc_e = T.unsafe(nil), indent = T.unsafe(nil), dedent_body = T.unsafe(nil), label_allowed = T.unsafe(nil)) ⇒ Literal

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/literal.rb#42



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

def initialize(lexer, str_type, delimiter, str_s, heredoc_e = T.unsafe(nil), indent = T.unsafe(nil), dedent_body = T.unsafe(nil), label_allowed = T.unsafe(nil)); end

Instance Method Details

#backslash_delimited?Boolean

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/literal.rb#116

Returns:

  • (Boolean)


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

def backslash_delimited?; 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/literal.rb#39



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

def dedent_level; end

#end_interp_brace_and_try_closingObject

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/literal.rb#191



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

def end_interp_brace_and_try_closing; end

#extend_contentObject

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/literal.rb#218



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

def extend_content; end

#extend_space(ts, te) ⇒ 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/literal.rb#222



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

def extend_space(ts, te); end

#extend_string(string, ts, te) ⇒ 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/literal.rb#197



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

def extend_string(string, ts, te); end

#flush_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.

source://parser//lib/parser/lexer/literal.rb#204



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

def flush_string; end

#heredoc?Boolean

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/literal.rb#104

Returns:

  • (Boolean)


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

def heredoc?; end

#heredoc_eObject

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/literal.rb#39



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

def heredoc_e; end

#infer_indent_level(line) ⇒ 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/literal.rb#168



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

def infer_indent_level(line); end

#interpolate?Boolean

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/literal.rb#91

Returns:

  • (Boolean)


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

def interpolate?; end

#munge_escape?(character) ⇒ Boolean

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/literal.rb#124

Returns:

  • (Boolean)


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

def munge_escape?(character); end

#nest_and_try_closing(delimiter, ts, te, lookahead = 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/literal.rb#134



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

def nest_and_try_closing(delimiter, ts, te, lookahead = T.unsafe(nil)); end

#plain_heredoc?Boolean

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/literal.rb#108

Returns:

  • (Boolean)


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

def plain_heredoc?; end

#regexp?Boolean

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/literal.rb#100

Returns:

  • (Boolean)


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

def regexp?; end

#saved_herebody_sObject

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/literal.rb#40



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

def saved_herebody_s; end

#saved_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.

source://parser//lib/parser/lexer/literal.rb#40



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

def saved_herebody_s=(_arg0); end

#squiggly_heredoc?Boolean

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/literal.rb#112

Returns:

  • (Boolean)


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

def squiggly_heredoc?; end

#start_interp_braceObject

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/literal.rb#187



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

def start_interp_brace; end

#str_sObject

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/literal.rb#39



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

def str_s; end

#supports_line_continuation_via_slash?Boolean

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/literal.rb#232

Returns:

  • (Boolean)


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

def supports_line_continuation_via_slash?; end

#typeObject

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/literal.rb#120



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

def type; end

#words?Boolean

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/literal.rb#95

Returns:

  • (Boolean)


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

def words?; end