ParserContext Class
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.
Inheritance Hierarchy
System.Object
System.Web.Razor.Parser.ParserContext
Namespace: System.Web.Razor.Parser
Assembly: System.Web.Razor (in System.Web.Razor.dll)
Syntax
'Declaration
Public Class ParserContext
'Usage
Dim instance As ParserContext
public class ParserContext
public ref class ParserContext
type ParserContext = class end
public class ParserContext
The ParserContext type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ParserContext | 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. |
Top
Properties
Name | Description | |
---|---|---|
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. |
Top
Methods
Name | Description | |
---|---|---|
AddSpan | 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. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
IsWithin | 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. | |
MemberwiseClone | (Inherited from Object.) | |
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. | |
ToString | (Inherited from Object.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.