Expand description
Checker implementation for Ruby.
Functions§
- is_
stabby_ lambda_ body - Whether
node— aBlock/DoBlock— is the body of a stabby lambda (->(z) { … }/->(z) do … end), which parses as aLambdanode that CONTAINS the block. TheLambdawrapper already counts as the closure (#465) and opens the function space (#1257), so classifying the body again would double-count one lambda as two closures, or open a phantom nested Function space. The keyword formslambda { }/proc { }and iterator blocks ([1].each { |x| x }) parse as aCallcarrying the block argument — the parent is not aLambda— so they still classify exactly once.