Share via


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
Public method 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
Public property 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.
Public property 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.
Public property 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.
Public property 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.
Public property 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.
Public property 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.
Public property 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.
Public property 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.
Public property 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.
Public property 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.
Public property 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.
Public property 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
Public method 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.
Public method 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.
Public method 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.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method 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.
Protected method MemberwiseClone (Inherited from Object.)
Public method 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.
Public method 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.
Public method 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.
Public method 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.
Public method 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.
Public method 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.

See Also

Reference

System.Web.Razor.Parser Namespace