IRBlockHandler
@hashml/hashml › Globals › "ir/IRBlockHandler" › IRBlockHandler
Hierarchy
- IRBlockHandler
Implements
Index
Constructors
Properties
Methods
Constructors
constructor
+ new IRBlockHandler(schema
: Schema, log
: ErrorLogger): IRBlockHandler
Defined in ir/IRBlockHandler.ts:28
Parameters:
Name | Type |
---|---|
schema | Schema |
log | ErrorLogger |
Returns: IRBlockHandler
Properties
Private
ignoreFlag
• ignoreFlag: boolean = false
Defined in ir/IRBlockHandler.ts:28
Private
inlineHandler
• inlineHandler: IRInlineHandler
Defined in ir/IRBlockHandler.ts:20
Private
inlineParser
• inlineParser: InlineParser
Defined in ir/IRBlockHandler.ts:21
Private
log
• log: ErrorLogger
Defined in ir/IRBlockHandler.ts:30
Private
root
• root: IRNode
Defined in ir/IRBlockHandler.ts:22
Private
schema
• schema: Schema
Defined in ir/IRBlockHandler.ts:30
Private
stack
• stack: Array‹object› = []
Defined in ir/IRBlockHandler.ts:23
Methods
Private
blockError
▸ blockError(error
: HMError): false
Defined in ir/IRBlockHandler.ts:105
Parameters:
Name | Type |
---|---|
error | HMError |
Returns: false
closeBlock
▸ closeBlock(): void
Defined in ir/IRBlockHandler.ts:89
Returns: void
getResult
▸ getResult(): IRNode
Defined in ir/IRBlockHandler.ts:42
Returns: IRNode
head
▸ head(content
: string, pos
: InputPosition): void
Implementation of BlockHandler
Defined in ir/IRBlockHandler.ts:111
Parameters:
Name | Type |
---|---|
content | string |
pos | InputPosition |
Returns: void
openBlock
▸ openBlock(tagString
: string | undefined, pos
: InputPosition): boolean
Implementation of BlockHandler
Defined in ir/IRBlockHandler.ts:57
Parameters:
Name | Type |
---|---|
tagString | string | undefined |
pos | InputPosition |
Returns: boolean
Private
pushBlock
▸ pushBlock(tag
: string, schema
: BlockSchema): IRNode
Defined in ir/IRBlockHandler.ts:46
Parameters:
Name | Type |
---|---|
tag | string |
schema | BlockSchema |
Returns: IRNode
rawLine
▸ rawLine(content
: string, pos
: InputPosition): void
Implementation of BlockHandler
Defined in ir/IRBlockHandler.ts:130
Parameters:
Name | Type |
---|---|
content | string |
pos | InputPosition |
Returns: void
reset
▸ reset(): void
Defined in ir/IRBlockHandler.ts:36
Returns: void