| Class | Sexp |
| In: |
lib/ruby_parser/bm_sexp.rb
|
| Parent: | Object |
| ASSIGNMENT_BOOL | = | [:gasgn, :iasgn, :lasgn, :cvdecl, :cvasgn, :cdecl, :or, :and, :colon2, :op_asgn_or] |
| CALLS | = | [:call, :attrasgn, :safe_call, :safe_attrasgn] |
| sexp_type | -> | node_type |
| sexp_body | -> | values |
| << | -> | old_push |
| compact | -> | old_compact |
| find_and_replace_all | -> | old_fara |
| find_node | -> | old_find_node |
| or_depth | [RW] | |
| original_line | [RW] |
Returns parameters for a block
s(:iter,
s(:call, nil, :x, s(:arglist)),
s(:lasgn, :y), <- block_args
s(:call, nil, :p, s(:arglist, s(:lvar, :y))))
Join self and exp into an :or Sexp. Sets or_depth. Used for combining "branched" values in AliasProcessor.
Returns condition of an if expression:
s(:if,
s(:lvar, :condition), <-- condition
s(:lvar, :then_val),
s(:lvar, :else_val)))
Returns ‘else’ clause of an if expression:
s(:if,
s(:lvar, :condition),
s(:lvar, :then_val),
s(:lvar, :else_val)))
^---else caluse---^