Documentation

BlockStart
in package

FinalYes

Result object for starting parsing of a block; see static methods for constructors

Table of Contents

Properties

$blockParsers  : array<string|int, BlockContinueParserInterface>
$cursorState  : CursorState|null
$isAborting  : bool
$replaceActiveBlockParser  : bool

Methods

at()  : $this
Signal that we want to parse at the given cursor position
getBlockParsers()  : array<string|int, BlockContinueParserInterface>
getCursorState()  : CursorState|null
isReplaceActiveBlockParser()  : bool
none()  : null
Signal that we cannot parse whatever is here
of()  : self
Signal that we'd like to register the given parser(s) so they can parse the current block
replaceActiveBlockParser()  : $this
Signal that we want to replace the active block parser with this one
__construct()  : mixed

Properties

$cursorState

private CursorState|null $cursorState = null
Tags
psalm-readonly-allow-private-mutation

$replaceActiveBlockParser

private bool $replaceActiveBlockParser = false
Tags
psalm-readonly-allow-private-mutation

Methods

at()

Signal that we want to parse at the given cursor position

public at(Cursor $cursor) : $this
Parameters
$cursor : Cursor
Return values
$this

getCursorState()

public getCursorState() : CursorState|null
Return values
CursorState|null

isReplaceActiveBlockParser()

public isReplaceActiveBlockParser() : bool
Return values
bool

none()

Signal that we cannot parse whatever is here

public static none() : null
Return values
null

replaceActiveBlockParser()

Signal that we want to replace the active block parser with this one

public replaceActiveBlockParser() : $this
Return values
$this

        
On this page

Search results