Method: Highway::Compiler::Analyze::Tree::Values::Base#select_variable_segments_with_scope

Defined in:
lib/highway/compiler/analyze/tree/values/base.rb

#select_variable_segments_with_scope(scope) ⇒ Array<Highway::Compiler::Analyze::Tree::Segments::Variable>

The flat array of variable segments with the given scope.



57
58
59
# File 'lib/highway/compiler/analyze/tree/values/base.rb', line 57

def select_variable_segments_with_scope(scope)
  select_variable_segments { |s| s.scope == scope }
end