class SyntaxTree::Parser
def on_lambda_var(params, locals)
:call-seq:
def on_lambda_var(params, locals) location = params.location location = location.to(locals.last.location) if locals.any? LambdaVar.new(params: params, locals: locals || [], location: location) end
Instance Methods
- # attach_comments
- # char_pos
- # consume_error
- # consume_keyword
- # consume_operator
- # consume_token
- # consume_tstring_end
- # current_column
- # find_colon2_before
- # find_keyword
- # find_keyword_between
- # find_next_statement_start
- # find_operator
- # find_token
- # find_token_between
- # find_token_error
- # initialize
- # lambda_locals
- # nearest_nodes
- # on_BEGIN
- # on_CHAR
- # on_END
- # on___end__
- # on_alias
- # on_aref
- # on_aref_field
- # on_arg_paren
- # on_args_add
- # on_args_add_block
- # on_args_add_star
- # on_args_forward
- # on_args_new
- # on_array
- # on_aryptn
- # on_assign
- # on_assoc_new
- # on_assoc_splat
- # on_backref
- # on_backtick
- # on_bare_assoc_hash
- # on_begin
- # on_binary
- # on_block_var
- # on_blockarg
- # on_bodystmt
- # on_brace_block
- # on_break
- # on_call
- # on_case
- # on_class
- # on_comma
- # on_command
- # on_command_call
- # on_comment
- # on_const
- # on_const_path_field
- # on_const_path_ref
- # on_const_ref
- # on_cvar
- # on_def
- # on_defined
- # on_defs
- # on_do_block
- # on_dot2
- # on_dot3
- # on_dyna_symbol
- # on_else
- # on_elsif
- # on_embdoc
- # on_embdoc_beg
- # on_embdoc_end
- # on_embexpr_beg
- # on_embexpr_end
- # on_embvar
- # on_ensure
- # on_excessed_comma
- # on_fcall
- # on_field
- # on_float
- # on_fndptn
- # on_for
- # on_gvar
- # on_hash
- # on_heredoc_beg
- # on_heredoc_dedent
- # on_heredoc_end
- # on_hshptn
- # on_ident
- # on_if
- # on_if_mod
- # on_ifop
- # on_imaginary
- # on_in
- # on_int
- # on_ivar
- # on_kw
- # on_kwrest_param
- # on_label
- # on_label_end
- # on_lambda
- # on_lambda_var
- # on_lbrace
- # on_lbracket
- # on_lparen
- # on_massign
- # on_method_add_arg
- # on_method_add_block
- # on_mlhs_add
- # on_mlhs_add_post
- # on_mlhs_add_star
- # on_mlhs_new
- # on_mlhs_paren
- # on_module
- # on_mrhs_add
- # on_mrhs_add_star
- # on_mrhs_new
- # on_mrhs_new_from_args
- # on_next
- # on_op
- # on_opassign
- # on_params
- # on_paren
- # on_parse_error
- # on_period
- # on_program
- # on_qsymbols_add
- # on_qsymbols_beg
- # on_qsymbols_new
- # on_qwords_add
- # on_qwords_beg
- # on_qwords_new
- # on_rational
- # on_rbrace
- # on_rbracket
- # on_redo
- # on_regexp_add
- # on_regexp_beg
- # on_regexp_end
- # on_regexp_literal
- # on_regexp_new
- # on_rescue
- # on_rescue_mod
- # on_rest_param
- # on_retry
- # on_return
- # on_return0
- # on_rparen
- # on_sclass
- # on_semicolon
- # on_stmts_add
- # on_stmts_new
- # on_string_add
- # on_string_concat
- # on_string_content
- # on_string_dvar
- # on_string_embexpr
- # on_string_literal
- # on_super
- # on_symbeg
- # on_symbol
- # on_symbol_literal
- # on_symbols_add
- # on_symbols_beg
- # on_symbols_new
- # on_tlambda
- # on_tlambeg
- # on_top_const_field
- # on_top_const_ref
- # on_tstring_beg
- # on_tstring_content
- # on_tstring_end
- # on_unary
- # on_undef
- # on_unless
- # on_unless_mod
- # on_until
- # on_until_mod
- # on_var_alias
- # on_var_field
- # on_var_ref
- # on_vcall
- # on_void_stmt
- # on_when
- # on_while
- # on_while_mod
- # on_word_add
- # on_word_new
- # on_words_add
- # on_words_beg
- # on_words_new
- # on_xstring_add
- # on_xstring_literal
- # on_xstring_new
- # on_yield
- # on_yield0
- # on_zsuper