Method: Fast::Builder#n

Defined in:
lib/fast.rb

#n(type, children, source_map) ⇒ Node

Generates Node from the given information.

Returns:

  • (Node)

    the generated node



127
128
129
# File 'lib/fast.rb', line 127

def n(type, children, source_map)
  Node.new(type, children, location: source_map, buffer_name: @buffer_name)
end