Protected ReadonlylanguageProtected ReadonlylistenersProtected ReadonlyruleProtected ReadonlyservicesRegisters an inference rule. If an inference rule might be registered a second time, only those options are applied, which are not applied yet Listeners will be informed only about these "difference" options.
a new inference rule
OptionalgivenOptions: Partial<TypeInferenceRuleOptions>additional options
ProtectedcacheProtectedcacheProtectedcacheProtectedcheckProtectedexecuteInfers a type for the given language node.
the language node whose type shall be inferred
the found Type or some inference problems (might be empty), when none of the inference rules were able to infer a type
ProtectedinferProtectedinferProtectedpendingProtectedpendingProtectedpendingDeregisters an inference rule.
the rule to remove
OptionaloptionsToRemove: Partial<TypeInferenceRuleOptions>The inference rule will be deregistered only regarding the given options, the inference rule might still be registered for the not-specified options. Listeners will be informed only about those removed options which were existing before.
Collects an arbitrary number of inference rules and allows to infer a type for a given language node. In case of multiple inference rules, later rules are not evaluated anymore, if an earlier rule already returned a type. Listeners could be registered in order to get informed about added and removed inference rules.