Skip to main content

ICodeBlockParseTreeNode

tw5-typed


tw5-typed / modules/parsers / ICodeBlockParseTreeNode

Interface: ICodeBlockParseTreeNode

Defined in: src/modules/parsers/index.d.ts:117

Extends

Properties

attributes

attributes: object & Record<string, IParseTreeAttribute>

Defined in: src/modules/parsers/index.d.ts:118

Type Declaration

code?

optional code: object

code.type

type: "string"

code.value

value: string

language?

optional language: object

language.type

type: "string"

language.value

value: string

Overrides

IWikiASTNode.attributes


children?

optional children: IParseTreeNode[]

Defined in: src/modules/parsers/index.d.ts:75

Inherited from

IWikiASTNode.children


end?

optional end: number

Defined in: src/modules/parsers/index.d.ts:76

Inherited from

IWikiASTNode.end


isBlock?

optional isBlock: boolean

Defined in: src/modules/parsers/index.d.ts:77

Inherited from

IWikiASTNode.isBlock


isMacroDefinition?

optional isMacroDefinition: boolean

Defined in: src/modules/parsers/index.d.ts:78

Inherited from

IWikiASTNode.isMacroDefinition


isSelfClosing?

optional isSelfClosing: boolean

Defined in: src/modules/parsers/index.d.ts:79

Inherited from

IWikiASTNode.isSelfClosing


orderedAttributes?

optional orderedAttributes: IParseTreeAttribute[]

Defined in: src/modules/parsers/index.d.ts:80

Inherited from

IWikiASTNode.orderedAttributes


rule?

optional rule: string

Defined in: src/modules/parsers/index.d.ts:82

If rule produce a multi-level tree, only top level node from a parse rule will have this.

Inherited from

IWikiASTNode.rule


start?

optional start: number

Defined in: src/modules/parsers/index.d.ts:83

Inherited from

IWikiASTNode.start


type

type: "codeblock"

Defined in: src/modules/parsers/index.d.ts:128

Overrides

IWikiASTNode.type