This commit is contained in:
Chris Wanstrath 2025-11-25 16:57:43 -08:00 committed by Chris Wanstrath
parent f160093c4d
commit 5ad6125527

View File

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