Class: Kumi::Core::Analyzer::Passes::DeclarationValidator
- Inherits:
-
VisitorPass
- Object
- PassBase
- VisitorPass
- Kumi::Core::Analyzer::Passes::DeclarationValidator
- Defined in:
- lib/kumi/core/analyzer/passes/declaration_validator.rb
Overview
RESPONSIBILITY: Perform local structural validation on each declaration DEPENDENCIES: :definitions PRODUCES: None (validation only) INTERFACE: new(schema, state).run(errors)
Instance Method Summary collapse
Methods inherited from VisitorPass
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
12 13 14 15 16 17 |
# File 'lib/kumi/core/analyzer/passes/declaration_validator.rb', line 12 def run(errors) each_decl do |decl| visit(decl) { |node| validate_node(node, errors) } end state end |