Class RuleRegistry<RuleType, Specifics>

Type Parameters

Implements

Constructors

Properties

languageTypeToRules: Map<undefined | string, RuleType[]> = ...

language node type --> rules Improves the look-up of related rules, when doing type for a concrete language node. All rules are registered at least once in this map, since rules without dedicated language key are registered to 'undefined'.

listeners: RuleCollectorListener<RuleType>[] = []
ruleToOptions: Map<RuleType, InternalRuleOptions> = ...

rule --> its collected options Contains the current set of all options for an rule.

typirTypeToRules: Map<string, RuleType[]> = ...

type identifier --> -> rules Improves the look-up for rules which are bound to types, when these types are removed. Only rules which are bound to at least one type in this map, types bound to no types are missing in this map.

uniqueRules: Set<RuleType> = ...

Collects all unique rules, lazily managed.

Methods