Share via


ParserContext Class

Definition

public ref class ParserContext
public class ParserContext
type ParserContext = class
Public Class ParserContext
Inheritance
ParserContext

Constructors

ParserContext(ITextDocument, ParserBase, ParserBase, ParserBase, ErrorSink)

Properties

ActiveParser
CodeParser
CurrentBlock
CurrentCharacter
DesignTimeMode
EndOfFile
Errors
LastAcceptedCharacters
LastSpan
MarkupParser
NullGenerateWhitespaceAndNewLine
Source
WhiteSpaceIsSignificantToAncestorBlock

Methods

AddSpan(Span)
CompleteParse()
EndBlock()

Ends the current block

IsWithin(BlockType)

Gets a boolean indicating if any of the ancestors of the current block is of the specified type

OnError(RazorError)
OnError(SourceLocation, String, Int32, Object[])
OnError(SourceLocation, String, Int32)
StartBlock()

Starts a block

StartBlock(BlockType)

Starts a block of the specified type

SwitchActiveParser()

Applies to