Ameba::AST::Argument
Represents the argument of some node. Holds the reference to the variable, thus to scope.
For example, all these vars are arguments:
def method(a, b, c = 10, &block)
3.times do |i|
end
->(x : Int32) { }
end
Constructors
Creates a new argument.
Argument.new(node, variable)
Instance methods
end_location(*args, **options)
Sourceend_location(*args, **options, &)
Sourcelocation(*args, **options)
Sourcelocation(*args, **options, &)
Sourceto_s(*args, **options)
Sourceto_s(*args, **options, &)
Source