Class CompositeTypeInferenceRule<Specifics>

This inference rule uses multiple internal inference rules for doing the type inference. If one of the child rules returns a type, this type is the result of the composite rule. Otherwise, all problems of all child rules are returned.

This composite rule ensures itself, that it is associated to the set of language keys of the inner rules.

Type Parameters

Hierarchy (View Summary)

Implements

Constructors

Properties

collectorToRegisterThisRule: TypeInferenceCollector<Specifics>

The collector for inference rules, at which this composite rule should be registered.

languageNodeInference: LanguageNodeInferenceCaching
ruleRegistry: RuleRegistry<
    TypeInferenceRule<Specifics, Specifics["LanguageType"]>,
    Specifics,
>

Methods