Skip to content

PropertyASTNode

原文链接

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

ts
interface PropertyASTNode {
    children: ASTNode[];
    colonOffset?: number;
    keyNode: StringASTNode;
    length: number;
    offset: number;
    parent?: ASTNode;
    type: "property";
    value?: string | number | boolean;
    valueNode?: ASTNode;
}

children

colonOffset

  • 类型:number

keyNode

length

  • 类型:number

offset

  • 类型:number

parent

type

  • 类型:'property'

value

  • 类型:string | number | boolean

valueNode