| 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; | |
| } |