js-slang
Version:
Javascript-based implementations of Source, written in Typescript
13 lines (12 loc) • 521 B
TypeScript
import type { ForStatement } from 'estree';
import type { Rule } from '../../types';
import { RuleError } from '../../errors';
type ForStatementParts = keyof ForStatement;
export declare class ForStatmentMustHaveAllParts extends RuleError<ForStatement> {
private readonly missingParts;
constructor(node: ForStatement, missingParts: ForStatementParts[]);
explain(): string;
elaborate(): string;
}
declare const forStatementMustHaveAllParts: Rule<ForStatement>;
export default forStatementMustHaveAllParts;