Files
dexpr/editor/node_modules/@lezer/generator/dist/test.d.ts
2026-04-05 16:08:59 +03:00

16 lines
496 B
TypeScript

import { Tree, Parser, NodeType } from '@lezer/common';
declare function defaultIgnore(type: NodeType): boolean;
declare function testTree(tree: Tree, expect: string, mayIgnore?: typeof defaultIgnore): void;
declare function fileTests(file: string, fileName: string, mayIgnore?: typeof defaultIgnore): {
name: string;
text: string;
expected: string;
configStr: string;
config: object;
strict: boolean;
run(parser: Parser): void;
}[];
export { fileTests, testTree };