We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa7b7f3 commit e1d9b3dCopy full SHA for e1d9b3d
1 file changed
src/trace/parser.ts
@@ -69,10 +69,11 @@ function loadGrammar(language: string): Parser.Language | null {
69
}
70
71
/** Parse source code and return the tree. Returns null if grammar unavailable. */
72
-export function parseSource(
+// eslint-disable-next-line @typescript-eslint/require-await
73
+export async function parseSource(
74
source: string,
75
language: string,
-): Parser.Tree | null {
76
+): Promise<Parser.Tree | null> {
77
if (!TreeSitter && !isTreeSitterAvailable()) return null;
78
79
const grammar = loadGrammar(language);
0 commit comments