class ANTLR3::Rewrite::InsertBefore
Represents rewrite operation:
add string op.text
to the rewrite output immediately before adding the text content of the token at index op.index
Public Instance Methods
execute( buffer )
click to toggle source
# File lib/antlr3/streams/rewrite.rb, line 101 def execute( buffer ) buffer << text.to_s token = stream[ location ] buffer << token.text.to_s if token return location + 1 end