We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3357f3e commit e1aafdfCopy full SHA for e1aafdf
2 files changed
src/preprocessor/preprocessor-parser.d.ts
@@ -4,12 +4,7 @@ import { SyntaxError } from '../error.ts';
4
5
export function parse(
6
input: string,
7
- options?: PreprocessorOptions & { startRule?: 'program' }
+ options?: PreprocessorOptions
8
): PreprocessorProgram;
9
10
-export function parse(
11
- input: string,
12
- options: { startRule: 'constant_expression'; grammarSource?: string }
13
-): PreprocessorAstNode;
14
-
15
export const SyntaxError: typeof SyntaxError;
src/preprocessor/preprocessor.ts
@@ -487,6 +487,7 @@ export type PreprocessorOptions = {
487
preserveComments?: boolean;
488
stopOnError?: boolean;
489
grammarSource?: string;
490
+ startRule?: 'constant_expression' | 'program';
491
};
492
493
// Evaluate a raw #if / #elif expression string against the current macros.
0 commit comments