blob: 5dbbddc18e5024983c4224a9860cfb0c1d86cc32 [file] [log] [blame]
import {Checker} from '../../checker';
import {Fixer} from '../../util/fixer';
import {Config, MatchedNodeTypes, PatternKind} from '../../util/pattern_config';
/**
* A patternEngine is the logic that handles a specific PatternKind.
*/
export abstract class PatternEngine<P extends PatternKind> {
constructor(
protected readonly config: Config<P>,
protected readonly fixer?: Fixer<MatchedNodeTypes[P]>) {}
abstract register(checker: Checker): void;
}