Class: Kumi::Core::Analyzer::Passes::InputAccessPlannerPass
- Defined in:
- lib/kumi/core/analyzer/passes/input_access_planner_pass.rb
Constant Summary
Constants inherited from PassBase
Instance Method Summary collapse
Methods inherited from PassBase
contract_declared?, #debug, #debug_enabled?, declared_optional_reads, declared_reads, declared_writes, #initialize, optional_reads, reads, writes
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
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/kumi/core/analyzer/passes/input_access_planner_pass.rb', line 11 def run(_errors) = get_state(:input_metadata) = { on_missing: :error, key_policy: :indifferent } planner = Kumi::Core::Compiler::AccessPlannerV2.plan(, , debug_on: debug_enabled?) state.with(:input_table, planner.plans.freeze).with(:index_table, planner.index_table.freeze) end |