Class: RuboCop::Node::Builder
- Inherits:
-
Parser::Builders::Default
- Object
- Parser::Builders::Default
- RuboCop::Node::Builder
- Defined in:
- lib/rubocop/ast_node/builder.rb
Overview
‘RuboCop::Builder` is an AST builder that is utilized to let `Parser` generate ASTs with RuboCop::Node.
Instance Method Summary collapse
-
#n(type, children, source_map) ⇒ Node
Generates RuboCop::Node from the given information.
Instance Method Details
#n(type, children, source_map) ⇒ Node
Generates RuboCop::Node from the given information.
20 21 22 |
# File 'lib/rubocop/ast_node/builder.rb', line 20 def n(type, children, source_map) Node.new(type, children, location: source_map) end |