blob: 96d888a687cb30edb06aef74f838a74f9ef57cf2 [file] [log] [blame]
import {Checker} from './checker';
/**
* Tsetse rules should extend AbstractRule and provide a `register` function.
* Rules are instantiated once per compilation operation and used across many
* files.
*/
export abstract class AbstractRule {
abstract readonly ruleName: string;
abstract readonly code: number;
/**
* Registers handler functions on nodes in Checker.
*/
abstract register(checker: Checker): void;
}