Skip to content

BaseASTNode

原文链接

https://microsoft.github.io/monaco-editor/docs.html#interfaces/languages.json.BaseASTNode.html

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

children

length

  • 类型:number

offset

  • 类型:number

parent

type

  • 类型:"string" | "number" | "boolean" | "object" | "array" | "property" | "null";

value

  • 类型:string | number | boolean;