class SyntaxTree::Parser
def on_arg_paren(arguments)
Experimental RBS support (using type sampling data from the type_fusion project).
def on_arg_paren: (SyntaxTree::Args arguments) -> untyped
This signature was generated using 11 samples from 1 application.
(nil | Args | ArgsForward) arguments
on_arg_paren: (
:call-seq:
def on_arg_paren(arguments) lparen = consume_token(LParen) rparen = consume_token(RParen) # If the arguments exceed the ending of the parentheses, then we know we # have a heredoc in the arguments, and we need to use the bounds of the # arguments to determine how large the arg_paren is. ending = if arguments && arguments.location.end_line > rparen.location.end_line arguments else rparen end ArgParen.new( arguments: arguments, location: lparen.location.to(ending.location) ) end