Share via


VBCodeParser Class

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

Represents a Visual Basic code parser.

Inheritance Hierarchy

System.Object
  System.Web.Razor.Parser.ParserBase
    System.Web.Razor.Parser.TokenizerBackedParser<VBTokenizer, VBSymbol, VBSymbolType>
      System.Web.Razor.Parser.VBCodeParser

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

Syntax

'Declaration
Public Class VBCodeParser _
    Inherits TokenizerBackedParser(Of VBTokenizer, VBSymbol, VBSymbolType)
'Usage
Dim instance As VBCodeParser
public class VBCodeParser : TokenizerBackedParser<VBTokenizer, VBSymbol, VBSymbolType>
public ref class VBCodeParser : public TokenizerBackedParser<VBTokenizer^, VBSymbol^, VBSymbolType>
type VBCodeParser =  
    class 
        inherit TokenizerBackedParser<VBTokenizer, VBSymbol, VBSymbolType>
    end
public class VBCodeParser extends TokenizerBackedParser<VBTokenizer, VBSymbol, VBSymbolType>

The VBCodeParser type exposes the following members.

Constructors

  Name Description
Public method VBCodeParser 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 VBCodeParser class.

Top

Properties

  Name Description
Public property Context This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the ParserContext. (Inherited from ParserBase.)
Protected property CurrentLocation This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the current location of the current instance. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected property CurrentSymbol This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the current symbol of this instance. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected property EndOfFile This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets a value indicating whether the tokenizer is in the end of file. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Public property IsMarkupParser 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 parser is a markup parser. (Inherited from ParserBase.)
Protected property Keywords This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the keywords associated with the code.
Protected property Language This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the language for the parser. (Overrides TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.Language.)
Protected property OtherParser This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the other parser. (Overrides ParserBase.OtherParser.)
Protected property PreviousSymbol This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code..Gets the previous symbol of this instance. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected property Span This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the SpanBuilder associated with this instance. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected property SpanConfig This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the span configuration. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected property Tokenizer This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the tokenizer. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)

Top

Methods

  Name Description
Protected method Accept(IEnumerable<TSymbol>) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Accepts the list of symbols (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method Accept(TSymbol) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Accepts the specified symbol. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method AcceptAll This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the parser accepts all types of tokenizer. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method AcceptAndMoveNext This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the parser accepts and moves to the next tokenizer. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method AcceptSingleWhiteSpaceCharacter This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the parser accepts single whitespace character. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method AcceptUntil(TSymbolType) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Accepts token until a token of the given type is found. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method AcceptUntil(TSymbolType, TSymbolType) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Accepts token until a token of the given type is found and it will backup so that the next token is of the given type. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method AcceptUntil(TSymbolType, TSymbolType, TSymbolType) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Accepts the given tokens until a token of the given type is found. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method AcceptVBSpaces This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Accepts spaces in the VB code.
Protected method AcceptWhile(TSymbolType) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Accepts the token while a token of the given type is not found. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method AcceptWhile(TSymbolType, TSymbolType) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Accepts token while the token of the given type has been reached. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method AcceptWhile(TSymbolType, TSymbolType, TSymbolType) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Accepts token while the token of the given type has been reached. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method AcceptWhiteSpaceInLines This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the parser accepts whitespace in lines. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method AddMarkerSymbolIfNecessary() This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Adds a marker symbol if necessary. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method AddMarkerSymbolIfNecessary(SourceLocation) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Adds a marker symbol if necessary. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method Assert This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Checks for a condition and displays a keyword in the code.
Protected method AssertDirective This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Asserts the given directive.
Protected method At(TSymbolType) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the token is at the specified type. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method At(String) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the directive is ‘AT’ directive.
Protected method At(VBKeyword) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the given keyword is ‘AT’.
Protected method AtIdentifier This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the token is at the specified identifier. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method Balance(BalancingModes) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the parsing is balance. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method Balance(BalancingModes, TSymbolType, TSymbolType, SourceLocation) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the parsing is balance. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Public method BuildSpan This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Builds a specified span. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method ConfigureSpan(Action<SpanBuilder>) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Configures the span. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method ConfigureSpan(Action<SpanBuilder, Action<SpanBuilder>>) Configures the span. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method EndTerminatedDirective This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Ends a terminated directive.
Protected method EndTerminatedDirectiveBody This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the termination of directive body is ended.
Protected method EndTerminatedStatement(VBKeyword, Boolean, Boolean) Ends a termination of statement.
Protected method EndTerminatedStatement(VBKeyword, Boolean, Boolean, String) Ends a termination of statement.
Protected method EnsureCurrent This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether to ensure the current parser. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Public method Equals (Inherited from Object.)
Protected method Expected(TSymbolType[]) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Indicates the expected token with the given types. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method Expected(KnownSymbolType) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Indicates the expected token with the given type. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method HandleEmbeddedTransition() This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Handles the embedded transition. (Overrides TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.HandleEmbeddedTransition().)
Protected method HandleEmbeddedTransition(VBSymbol) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Handles the embedded transition.
Protected method HandleExitOrContinue This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Indicates the code that handles the Exit or Continue keyword.
Protected method HandleTransition This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Indicates a code that handles a transition.
Protected method HelperDirective This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Indicates whether the code is a helper directive.
Protected method ImportsStatement This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the code imports a statement.
Protected method InheritsStatement This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the code inherits a statement.
Protected method Initialize This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Initializes a specified span. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method IsAtEmbeddedTransition This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the code is at embedded transition. (Overrides TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.IsAtEmbeddedTransition(Boolean, Boolean).)
Public method IsDirectiveDefined This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the code is directive defined.
Protected method KeywordTerminatedStatement Indicates a keyword that terminates a statement.
Protected method LayoutDirective This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the code is a layout directive.
Protected method MapDirective Maps a given directive.
Protected method MapKeyword Maps a given keyword.
Protected method MemberwiseClone (Inherited from Object.)
Protected method NestedBlock This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Indicates a nested block.
Protected method NextIs(TSymbolType) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the token with the given type would pass. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method NextToken This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the parser advances to the next token. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method Optional(TSymbolType) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether parsing a token with the given type is optional. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method Optional(KnownSymbolType) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether parsing a token with the given type is optional. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method Optional(VBKeyword) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the keyword from the code is optional.
Protected method OptionStatement This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the code is an option statement.
Protected method OtherParserBlock() This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Indicates the parser block.
Protected method OtherParserBlock(String, String) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Indicates the parser block.
Protected method Output(AcceptedCharacters) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Outputs a token with accepted characters. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method Output(SpanKind) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Outputs a token with span kind. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method Output(SpanKind, AcceptedCharacters) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Outputs a token with a given span kind and accepted characters. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method OutputSpanBeforeRazorComment This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Spans the output before Razor comment. (Overrides TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.OutputSpanBeforeRazorComment().)
Public method ParseBlock This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Blocks the parsing. (Overrides ParserBase.ParseBlock().)
Public method ParseDocument This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Creates documentation for the parse. (Inherited from ParserBase.)
Public method ParseSection Parses the section in ordered list of the elements. (Inherited from ParserBase.)
Protected method PushSpanConfig() This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Pushes the span configuration. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method PushSpanConfig(Action<SpanBuilder>) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Pushes the span configuration. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method PushSpanConfig(Action<SpanBuilder, Action<SpanBuilder>>) Pushes the span configuration. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method PutBack(TSymbol) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Puts the transition back. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method PutCurrentBack This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Puts the current transition back. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method RazorComment This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Displays the razor comment. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method ReadVBSpaces This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Reads a list of Visual Basic spaces.
Protected method ReadWhile Reads a token while the condition is not reached. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method Required(VBSymbolType, String) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the expected symbol is required.
Protected method Required(TSymbolType, Boolean, String) This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the expected token is required. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected method ReservedWord This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the code is a reserved word.
Protected method SectionDirective This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the code is a section directive.
Protected method SessionStateDirective This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the code has a session state directive.
Public method ToString (Inherited from Object.)
Protected method Was This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the token with the given type was parsed. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)

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