mirror of
https://github.com/duhanbalci/dexpr.git
synced 2026-07-02 08:29:16 +00:00
16 lines
496 B
TypeScript
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 };
|