Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CSharpCodeParser Class

CSharpCodeParser Class

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

Represents a C sharp code parser.

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

public class CSharpCodeParser : TokenizerBackedParser<CSharpTokenizer, CSharpSymbol, CSharpSymbolType>

The CSharpCodeParser type exposes the following members.

  NameDescription
Public methodCSharpCodeParserThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Initializes a new instance of the CSharpCodeParser class.
Top

  NameDescription
Public propertyContextThis 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 propertyCurrentLocationThis 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 propertyCurrentSymbolThis 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 propertyEndOfFileThis 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 propertyIsMarkupParserThis 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.)
Public propertyIsNestedThis 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 code is nested.
Protected propertyKeywordsThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the C sharp language keywords.
Protected propertyLanguageThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the specific language for parsing. (Overrides TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.Language.)
Protected propertyOtherParserThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the other parser used for the code. (Overrides ParserBase.OtherParser.)
Protected propertyPreviousSymbolThis 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 propertySpanThis 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 propertySpanConfigThis 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 propertyTokenizerThis 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

  NameDescription
Protected methodAccept(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 methodAccept(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 methodAcceptAllThis 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 methodAcceptAndMoveNextThis 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 methodAcceptIfThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the parser accepts the ‘IF’ keyword.
Protected methodAcceptSingleWhiteSpaceCharacterThis 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 methodAcceptUntil(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 methodAcceptUntil(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 methodAcceptUntil(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 methodAcceptWhile(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 methodAcceptWhile(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 methodAcceptWhile(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 methodAcceptWhiteSpaceInLinesThis 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 methodAddMarkerSymbolIfNecessary()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 methodAddMarkerSymbolIfNecessary(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 methodAssertDirectiveThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Asserts a directive code.
Protected methodAt(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 methodAt(CSharpKeyword)This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the code contains ‘AT’ keyword.
Protected methodAtIdentifierThis 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 methodBalance(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 methodBalance(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>.)
Protected methodBaseTypeDirectiveIndicates the base type directive.
Public methodBuildSpanThis 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 methodConfigureSpan(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 methodConfigureSpan(Action<SpanBuilder, Action<SpanBuilder>>)Configures the span. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected methodEnsureCurrentThis 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 methodEquals (Inherited from Object.)
Protected methodExpected(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 methodExpected(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 methodFinalize (Inherited from Object.)
Protected methodFunctionsDirectiveThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Indicates the functions directive.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodHandleEmbeddedTransitionThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Indicates the code that handles embedded transition. (Overrides TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.HandleEmbeddedTransition().)
Protected methodHelperDirectiveThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Indicates a helper directive.
Protected methodInheritsDirectiveThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Indicates which class the application will derive the view from, and can therefore ensure proper type checking.
Protected methodInheritsDirectiveCoreThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Inherits a directive core.
Protected methodInitializeThis 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 methodIsAtEmbeddedTransitionThis 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).)
Protected methodStatic memberIsSpacingTokenIndicates whether the lines and comments is spacing token.
Protected methodLayoutDirectiveThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Indicates the layout directive.
Protected methodMapDirectivesThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Maps the given directives.
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodNextIs(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 methodNextTokenThis 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 methodOptional(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 methodOptional(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 methodOutput(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 methodOutput(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 methodOutput(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 methodOutputSpanBeforeRazorCommentThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Spans the output of the parsing before the comment. (Overrides TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.OutputSpanBeforeRazorComment().)
Public methodParseBlockThis 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 methodParseDocumentThis 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 methodParseSectionParses the section in ordered list of the elements. (Inherited from ParserBase.)
Protected methodPushSpanConfig()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 methodPushSpanConfig(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 methodPushSpanConfig(Action<SpanBuilder, Action<SpanBuilder>>)Pushes the span configuration. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected methodPutBack(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 methodPutCurrentBackThis 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 methodRazorCommentThis 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 methodReadWhileReads a token while the condition is not reached. (Inherited from TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.)
Protected methodRequiredThis 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 methodReservedDirectiveThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Indicates the reserved directive.
Protected methodSectionDirectiveThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Indicates a section directive.
Protected methodSessionStateDirectiveThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Indicates a session state directive.
Protected methodSessionStateDirectiveCoreThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Indicates the session state directive core.
Protected methodSessionStateTypeDirectiveIndicates the directive for session state type.
Public methodToString (Inherited from Object.)
Protected methodTryGetDirectiveHandlerThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets a directive handler.
Protected methodValidSessionStateValueThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Determines whether the value of the session state is valid.
Protected methodWasThis 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

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:
© 2015 Microsoft