We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 643439e commit 6f112bcCopy full SHA for 6f112bc
1 file changed
src/slangSolidityParser.ts
@@ -7,15 +7,14 @@ import { createParser } from './slang-utils/create-parser.js';
7
import { printWarning } from './slang-utils/print-warning.js';
8
import { SourceUnit } from './slang-nodes/SourceUnit.js';
9
10
-import type { Parser as PrettierParser, ParserOptions } from 'prettier';
+import type { ParserOptions } from 'prettier';
11
import type { AstNode } from './slang-nodes/types.d.ts';
12
13
const supportedVersions = Parser.supportedVersions();
14
15
export default function parse(
16
text: string,
17
- _parsers: PrettierParser[] | ParserOptions<AstNode>,
18
- options = _parsers as ParserOptions<AstNode>
+ options: ParserOptions<AstNode>
19
): AstNode {
20
const compiler = maxSatisfying(supportedVersions, options.compiler);
21
0 commit comments