Module: Jade::Frontend::SemanticAnalysis::VariantDeclaration
- Extended by:
- Helper, VariantDeclaration
- Included in:
- VariantDeclaration
- Defined in:
- lib/jade/frontend/semantic_analysis/variant_declaration.rb
Instance Method Summary collapse
Methods included from Helper
analyze_duplicate_fields, analyze_in_parallel, analyze_in_sequence, analyze_node, bind, collect_vars, lookup, validate_type_symbol
Instance Method Details
#analyze(node, _registry, scope, entry) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/jade/frontend/semantic_analysis/variant_declaration.rb', line 8 def analyze(node, _registry, scope, entry) node => AST::VariantDeclaration(name:) node .with(symbol: entry.lookup_value(name).to_ref) .then { Result.init(it, scope) } end |