Skip to content

Commit e1aafdf

Browse files
committed
seriously fuck you claude
1 parent 3357f3e commit e1aafdf

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

src/preprocessor/preprocessor-parser.d.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@ import { SyntaxError } from '../error.ts';
44

55
export function parse(
66
input: string,
7-
options?: PreprocessorOptions & { startRule?: 'program' }
7+
options?: PreprocessorOptions
88
): PreprocessorProgram;
99

10-
export function parse(
11-
input: string,
12-
options: { startRule: 'constant_expression'; grammarSource?: string }
13-
): PreprocessorAstNode;
14-
1510
export const SyntaxError: typeof SyntaxError;

src/preprocessor/preprocessor.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,7 @@ export type PreprocessorOptions = {
487487
preserveComments?: boolean;
488488
stopOnError?: boolean;
489489
grammarSource?: string;
490+
startRule?: 'constant_expression' | 'program';
490491
};
491492

492493
// Evaluate a raw #if / #elif expression string against the current macros.

0 commit comments

Comments
 (0)