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.

System.Object
  System.Web.Razor.Parser.ParserContext

Namespace:  System.Web.Razor.Parser
Assembly:  System.Web.Razor (in System.Web.Razor.dll)

public class ParserContext

The ParserContext type exposes the following members.

  NameDescription
Public methodParserContextThis 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

  NameDescription
Public propertyActiveParserThis 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.
Public propertyCodeParserThis 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.
Public propertyCurrentBlockThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets the current block builder.
Public propertyCurrentCharacterThis 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.
Public propertyDesignTimeModeThis 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.
Public propertyEndOfFileThis 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.
Public propertyErrorsThis 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.
Public propertyLastAcceptedCharactersThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets the last accepted characters.
Public propertyLastSpanThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets or sets the last span.
Public propertyMarkupParserThis 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.
Public propertySourceThis 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.
Public propertyWhiteSpaceIsSignificantToAncestorBlockThis 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

  NameDescription
Public methodAddSpanThis 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.
Public methodCompleteParseThis 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.
Public methodEndBlockThis 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.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodIsWithinThis 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.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodOnError(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.
Public methodOnError(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.
Public methodStartBlock()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.
Public methodStartBlock(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.
Public methodSwitchActiveParserThis 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.
Public methodToString (Inherited from Object.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: