Class: RubyLint::AST::Builder

Inherits:
Parser::Builders::Default
  • Object
show all
Defined in:
lib/ruby-lint/ast/builder.rb

Overview

Custom AST builder class used to provide some extra additions/changes to the AST such as the use of a custom node class.

Instance Method Summary collapse

Instance Method Details

#n(type, children, location) ⇒ RubyLint::AST::Node

Returns:

See Also:

  • Parser::Builders::Default#n


12
13
14
# File 'lib/ruby-lint/ast/builder.rb', line 12

def n(type, children, location)
  return Node.new(type, children, :location => location)
end