vendor/bundle/ruby/3.0.0/gems/rubocop-ast-1.16.0/lib/rubocop/ast/node.rb
def updated(type = nil, children = nil, properties = {})
        properties[:location] ||= @location
        klass = RuboCop::AST::Builder::NODE_MAP[type || @type] || Node
        klass.new(type || @type, children || @children, properties)
      end
# Override `AST::Node#updated` so that `AST::Processor` does not try to
# mutate our ASTs. Since we keep references from children to parents and
# not just the other way around, we cannot update an AST and share
# identical subtrees. Rather, the entire AST must be copied any time any
# part of it is changed.
Override `AST::Node#updated` so that `AST::Processor` does not try to
mutate our ASTs. Since we keep references from children to parents and
not just the other way around, we cannot update an AST and share
identical subtrees. Rather, the entire AST must be copied any time any
part of it is changed.
Override ` AST :: Node#updated ` so that ` AST :: Processor ` does not try to mutate our ASTs . Since we keep references from children to parents and not just the other way around we cannot update an AST and share identical subtrees . Rather the entire AST must be copied any time any part of it is changed .
def updated(type = nil, children = nil, properties = {})
        properties[:location] ||= @location
        klass = RuboCop::AST::Builder::NODE_MAP[type || @type] || Node
        klass.new(type || @type, children || @children, properties)
      end
def updated ( type = nil , children = nil , properties = { } ) properties [ :location ] ||= @location klass = RuboCop :: AST :: Builder :: NODE_MAP [ type || @type ] || Node klass . new ( type || @type , children || @children , properties ) end
Override `AST::Node#updated` so that `AST::Processor` does not try to
mutate our ASTs.
Override ` AST :: Node#updated ` so that ` AST :: Processor ` does not try to mutate our ASTs .
type
children
properties