Class: Kumi::Core::Analyzer::Passes::PrecomputeAccessPathsPass
- Defined in:
- lib/kumi/core/analyzer/passes/precompute_access_paths_pass.rb
Instance Method Summary collapse
Methods inherited from PassBase
#debug, #debug_enabled?, #initialize
Methods included from ErrorReporting
#inferred_location, #raise_localized_error, #raise_syntax_error, #raise_type_error, #report_enhanced_error, #report_error, #report_semantic_error, #report_syntax_error, #report_type_error
Constructor Details
This class inherits a constructor from Kumi::Core::Analyzer::Passes::PassBase
Instance Method Details
#run(_errors) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/kumi/core/analyzer/passes/precompute_access_paths_pass.rb', line 8 def run(_errors) plans = get_state(:input_table, required: true) out = {} plans.each { |p| out[p.path_fqn.to_s] = build_for_plan(p).freeze } state.with(:precomputed_plan_by_fqn, out.freeze) end |