BaseASTNode
ts
interface BaseASTNode {
children?: ASTNode[];
length: number;
offset: number;
parent?: ASTNode;
type: "string" | "number" | "boolean" | "object" | "array" | "property" | "null";
value?: string | number | boolean;
}
children
- 类型:ASTNode[]
length
- 类型:
number
offset
- 类型:
number
parent
- 类型:ASTNode
type
- 类型:
"string"
|"number"
|"boolean"
|"object"
|"array"
|"property"
|"null"
;
value
- 类型:
string
|number
|boolean
;