Class: Parser::Lexer::Literal 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.
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
- 
  
    
      #backslash_delimited?  ⇒ Boolean 
    
    
  
  
  
  
  
  
  
  private
  
    
source://parser//lib/parser/lexer/literal.rb#116.
 - 
  
    
      #dedent_level  ⇒ Object 
    
    
  
  
  
  
  
  
  
  private
  
    
source://parser//lib/parser/lexer/literal.rb#39.
 - 
  
    
      #end_interp_brace_and_try_closing  ⇒ Object 
    
    
  
  
  
  
  
  
  
  private
  
    
source://parser//lib/parser/lexer/literal.rb#191.
 - 
  
    
      #extend_content  ⇒ Object 
    
    
  
  
  
  
  
  
  
  private
  
    
source://parser//lib/parser/lexer/literal.rb#218.
 - 
  
    
      #extend_space(ts, te)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  private
  
    
source://parser//lib/parser/lexer/literal.rb#222.
 - 
  
    
      #extend_string(string, ts, te)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  private
  
    
source://parser//lib/parser/lexer/literal.rb#197.
 - 
  
    
      #flush_string  ⇒ Object 
    
    
  
  
  
  
  
  
  
  private
  
    
source://parser//lib/parser/lexer/literal.rb#204.
 - 
  
    
      #heredoc?  ⇒ Boolean 
    
    
  
  
  
  
  
  
  
  private
  
    
source://parser//lib/parser/lexer/literal.rb#104.
 - 
  
    
      #heredoc_e  ⇒ Object 
    
    
  
  
  
  
  
  
  
  private
  
    
source://parser//lib/parser/lexer/literal.rb#39.
 - 
  
    
      #infer_indent_level(line)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  private
  
    
source://parser//lib/parser/lexer/literal.rb#168.
 - 
  
    
      #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 
    
    
  
  
  
    constructor
  
  
  
  
  
  private
  
    
source://parser//lib/parser/lexer/literal.rb#42.
 - 
  
    
      #interpolate?  ⇒ Boolean 
    
    
  
  
  
  
  
  
  
  private
  
    
source://parser//lib/parser/lexer/literal.rb#91.
 - 
  
    
      #munge_escape?(character)  ⇒ Boolean 
    
    
  
  
  
  
  
  
  
  private
  
    
source://parser//lib/parser/lexer/literal.rb#124.
 - 
  
    
      #nest_and_try_closing(delimiter, ts, te, lookahead = T.unsafe(nil))  ⇒ Object 
    
    
  
  
  
  
  
  
  
  private
  
    
source://parser//lib/parser/lexer/literal.rb#134.
 - 
  
    
      #plain_heredoc?  ⇒ Boolean 
    
    
  
  
  
  
  
  
  
  private
  
    
source://parser//lib/parser/lexer/literal.rb#108.
 - 
  
    
      #regexp?  ⇒ Boolean 
    
    
  
  
  
  
  
  
  
  private
  
    
source://parser//lib/parser/lexer/literal.rb#100.
 - 
  
    
      #saved_herebody_s  ⇒ Object 
    
    
  
  
  
  
  
  
  
  private
  
    
source://parser//lib/parser/lexer/literal.rb#40.
 - 
  
    
      #saved_herebody_s=(_arg0)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  private
  
    
source://parser//lib/parser/lexer/literal.rb#40.
 - 
  
    
      #squiggly_heredoc?  ⇒ Boolean 
    
    
  
  
  
  
  
  
  
  private
  
    
source://parser//lib/parser/lexer/literal.rb#112.
 - 
  
    
      #start_interp_brace  ⇒ Object 
    
    
  
  
  
  
  
  
  
  private
  
    
source://parser//lib/parser/lexer/literal.rb#187.
 - 
  
    
      #str_s  ⇒ Object 
    
    
  
  
  
  
  
  
  
  private
  
    
source://parser//lib/parser/lexer/literal.rb#39.
 - 
  
    
      #supports_line_continuation_via_slash?  ⇒ Boolean 
    
    
  
  
  
  
  
  
  
  private
  
    
source://parser//lib/parser/lexer/literal.rb#232.
 - 
  
    
      #type  ⇒ Object 
    
    
  
  
  
  
  
  
  
  private
  
    
source://parser//lib/parser/lexer/literal.rb#120.
 - 
  
    
      #words?  ⇒ Boolean 
    
    
  
  
  
  
  
  
  
  private
  
    
source://parser//lib/parser/lexer/literal.rb#95.
 
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
      2538  | 
    
      # File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2538 def backslash_delimited?; 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/literal.rb#39
      2541  | 
    
      # File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2541 def dedent_level; end  | 
  
#end_interp_brace_and_try_closing ⇒ 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#191
      2544  | 
    
      # File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2544 def end_interp_brace_and_try_closing; end  | 
  
#extend_content ⇒ 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#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_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.
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
      2559  | 
    
      # File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2559 def heredoc?; end  | 
  
#heredoc_e ⇒ 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#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
      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
      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
      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
      2580  | 
    
      # File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2580 def regexp?; end  | 
  
#saved_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.
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
      2589  | 
    
      # File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2589 def squiggly_heredoc?; end  | 
  
#start_interp_brace ⇒ 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#187
      2592  | 
    
      # File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2592 def start_interp_brace; end  | 
  
#str_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.
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
      2598  | 
    
      # File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2598 def supports_line_continuation_via_slash?; end  | 
  
#type ⇒ 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#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
      2604  | 
    
      # File 'sorbet/rbi/parser@3.3.8.0.rbi', line 2604 def words?; end  |