This commit is contained in:
Chris Wanstrath 2025-11-25 16:57:43 -08:00
parent ccf8f41544
commit b0ad0a0768

View File

@ -95,7 +95,7 @@ export function compileCode(code: string, globals?: Record<string, any>): Byteco
return compiler.bytecode
}
export function parseFile(path: string, globals?: Record<string, any>): SyntaxNode {
export function parseFile(path: string, globals?: Record<string, any>): Tree {
const code = readFileSync(path, 'utf-8')
return parseCode(code, globals)
}