wrong return type

This commit is contained in:
Chris Wanstrath 2025-12-02 15:58:57 -08:00
parent b2d298ec6f
commit 04e14cd83e

View File

@ -2,7 +2,7 @@ import { readFileSync } from 'fs'
import { VM, fromValue, toValue, isValue, type Bytecode } from 'reefvm'
import { Compiler } from '#compiler/compiler'
import { parse } from '#parser/parser2'
import { type SyntaxNode, Tree } from '#parser/node'
import { Tree } from '#parser/node'
import { globals as parserGlobals, setGlobals as setParserGlobals } from '#parser/tokenizer'
import { globals as prelude } from '#prelude'
@ -41,7 +41,7 @@ export class Shrimp {
return isValue(result) ? fromValue(result, this.vm) : result
}
parse(code: string): SyntaxNode {
parse(code: string): Tree {
return parseCode(code, this.globals)
}