Update value.ts
This commit is contained in:
parent
4a5618e900
commit
79f449bc6c
16
src/value.ts
16
src/value.ts
|
|
@ -1,4 +1,4 @@
|
|||
import { Scope } from './scope'
|
||||
import { Scope } from "./scope"
|
||||
|
||||
export type Value =
|
||||
| { type: 'null'; value: null }
|
||||
|
|
@ -9,13 +9,13 @@ export type Value =
|
|||
| { type: 'dict'; value: Dict }
|
||||
| { type: 'regex'; value: RegExp }
|
||||
| {
|
||||
type: 'function'
|
||||
params: string[]
|
||||
defaults: Record<string, number> // indices into constants
|
||||
body: number
|
||||
parentScope: Scope
|
||||
variadic: boolean
|
||||
named: boolean
|
||||
type: 'function',
|
||||
params: string[],
|
||||
defaults: Record<string, number>, // indices into constants
|
||||
body: number,
|
||||
parentScope: Scope,
|
||||
variadic: boolean,
|
||||
named: boolean,
|
||||
value: '<function>'
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user