Class: Parser::Lexer::Literal

Inherits:
Object
  • Object
show all
Defined in:
opal/lib/opal/parser/patch.rb

Instance Method Summary collapse

Instance Method Details

#extend_string(string, ts, te) ⇒ Object



7
8
9
10
11
12
13
14
# File 'opal/lib/opal/parser/patch.rb', line 7

def extend_string(string, ts, te)
  @buffer_s ||= ts
  @buffer_e = te

  # Patch for opal-parser, original:
  # @buffer << string
  @buffer += string
end