ParserContext Class

Definition

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Represents a parser whose context can be switched to either a code or a markup.

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

Constructors

ParserContext(ITextDocument, ParserBase, ParserBase, ParserBase)

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Initializes a new instance of the ParserContext class.

Properties

ActiveParser

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets or sets the active parser for the context.

CodeParser

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets or sets the code parser for the context.

CurrentBlock

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets the current block builder.

CurrentCharacter

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets the current character available from the source.

DesignTimeMode

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets or sets a value that indicates whether the parser is in design mode.

EndOfFile

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets a value that indicates whether the source status is end of file.

Errors

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets or sets the list of errors during parsing.

LastAcceptedCharacters

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets the last accepted characters.

LastSpan

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets or sets the last span.

MarkupParser

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets or sets the markup parser for the context.

Source

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets or sets the text reader for the source document.

WhiteSpaceIsSignificantToAncestorBlock

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets or sets a value that indicates whether white space is significant to ancestor block.

Methods

AddSpan(Span)

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Adds the specified span at the end of the block builder stack.

CompleteParse()

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Parses the last span and returns the parse results that contain the newly built block.

EndBlock()

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Creates an end block from the last item of the block builder stack.

IsWithin(BlockType)

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Determines whether the specified block type exists in the block builder list.

OnError(SourceLocation, String)

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Occurs when parse encountered error.

OnError(SourceLocation, String, Object[])

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Occurs when parse encountered an error.

StartBlock()

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Adds a new block builder at the end of the block builder stack and returns a disposable action that returns an end block.

StartBlock(BlockType)

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Adds a new block builder at the end of the block builder stack and returns a disposable action that returns an end block.

SwitchActiveParser()

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Alternately switches the code parser or markup parser as the active parser.

Applies to