class Leftovers::AST::Builder
Public Instance Methods
n(type, children, source_map)
click to toggle source
Generates {Node} from the given information.
@return [Node] the generated node
# File lib/leftovers/ast/builder.rb, line 12 def n(type, children, source_map) # leftovers:keep ::Leftovers::AST::Node.new(type, children, location: source_map) end
string_value(token)
click to toggle source
Don't complain about invalid strings
# File lib/leftovers/ast/builder.rb, line 17 def string_value(token) # leftovers:keep value(token) end