HighlightFoldableBlockParser class

A parser for foldable blocks from highlight's Result.

Properties

blocks List<FoldableBlock>
Valid blocks by the end of the parsing.
finalinherited
foundImport bool
no setterinherited
foundMultilineComment bool
no setterinherited
foundNonWhitespace bool
no setterinherited
foundSingleLineComment bool
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
invalidBlocks List<InvalidFoldableBlock>
Invalid blocks by the end of the parsing. These can be used for error highlighting.
finalinherited
lineIndex int
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addToLineIndex(int n) → void
inherited
clearLineFlags() → void
inherited
endBlock(int line, FoldableBlockType type) → void
Checks if the block has started and it is its turn to terminate at line. Creates a FoldableBlock if alright and InvalidFoldableBlock otherwise.
inherited
endCommentSequenceIfAny(int lineIndex) → void
Terminates a single-line comment sequence if one was started above.
inherited
endImportSequenceIfAny(int lineIndex) → void
Terminates a sequence of import lines if one was started above.
inherited
finalize() → void
Terminates all open blocks. Called when the parsing is otherwise finished.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse({required Result highlighted, required Set<Object?> serviceCommentsSources, CodeLines lines = CodeLines.empty}) → void
setFoundImport() → void
inherited
setFoundImportTerminator() → void
inherited
setFoundMultilineComment() → void
inherited
setFoundNonWhitespace() → void
inherited
setFoundPossibleImport() → void
inherited
setFoundSingleLineComment() → void
inherited
startBlock(int line, FoldableBlockType type) → void
Records that a block has started at line.
inherited
submitCurrentLine() → void
inherited
submitLine(int index, LineSemantics semantics) → void
Records the semantic for the given line. Must be called in ascending order for lines.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited