CSharpCodeParser CSharpCodeParser CSharpCodeParser Class

Definition

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.

public class CSharpCodeParser : System.Web.Razor.Parser.TokenizerBackedParser<System.Web.Razor.Tokenizer.CSharpTokenizer,System.Web.Razor.Tokenizer.Symbols.CSharpSymbol,System.Web.Razor.Tokenizer.Symbols.CSharpSymbolType>
type CSharpCodeParser = class
    inherit TokenizerBackedParser<CSharpTokenizer, CSharpSymbol, CSharpSymbolType>
Public Class CSharpCodeParser
Inherits TokenizerBackedParser(Of CSharpTokenizer, CSharpSymbol, CSharpSymbolType)
Inheritance
Derived

Constructors

CSharpCodeParser() CSharpCodeParser() CSharpCodeParser()

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 CSharpCodeParser class.

Properties

Context Context 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)
CurrentLocation CurrentLocation 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>)
CurrentSymbol CurrentSymbol 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>)
EndOfFile EndOfFile 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>)
IsMarkupParser IsMarkupParser 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)
IsNested IsNested IsNested

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 code is nested.

Keywords Keywords Keywords

This 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.

Language Language Language

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

OtherParser OtherParser OtherParser

This 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.

PreviousSymbol PreviousSymbol 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>)
Span Span 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>)
SpanConfig SpanConfig 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>)
Tokenizer Tokenizer 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>)

Methods

Accept(IEnumerable<TSymbol>) Accept(IEnumerable<TSymbol>) 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>)
Accept(TSymbol) Accept(TSymbol) 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>)
AcceptAll(TSymbolType[]) AcceptAll(TSymbolType[]) AcceptAll(TSymbolType[])

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>)
AcceptAndMoveNext() AcceptAndMoveNext() 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>)
AcceptIf(CSharpKeyword) AcceptIf(CSharpKeyword) AcceptIf(CSharpKeyword)

This 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.

AcceptSingleWhiteSpaceCharacter() AcceptSingleWhiteSpaceCharacter() 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>)
AcceptUntil(TSymbolType) AcceptUntil(TSymbolType) 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>)
AcceptUntil(TSymbolType, TSymbolType) AcceptUntil(TSymbolType, TSymbolType) 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>)
AcceptUntil(TSymbolType, TSymbolType, TSymbolType) AcceptUntil(TSymbolType, TSymbolType, TSymbolType) 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>)
AcceptUntil(TSymbolType[]) AcceptUntil(TSymbolType[]) 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 types is found.

(Inherited from TokenizerBackedParser<TTokenizer,TSymbol,TSymbolType>)
AcceptWhile(Func<TSymbol,Boolean>) AcceptWhile(Func<TSymbol,Boolean>) AcceptWhile(Func<TSymbol,Boolean>)

Accepts token while the condition has been reached.

(Inherited from TokenizerBackedParser<TTokenizer,TSymbol,TSymbolType>)
AcceptWhile(TSymbolType) AcceptWhile(TSymbolType) 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>)
AcceptWhile(TSymbolType, TSymbolType) AcceptWhile(TSymbolType, TSymbolType) 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>)
AcceptWhile(TSymbolType, TSymbolType, TSymbolType) AcceptWhile(TSymbolType, TSymbolType, TSymbolType) 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>)
AcceptWhile(TSymbolType[]) AcceptWhile(TSymbolType[]) AcceptWhile(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 types has been reached.

(Inherited from TokenizerBackedParser<TTokenizer,TSymbol,TSymbolType>)
AcceptWhiteSpaceInLines() AcceptWhiteSpaceInLines() 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>)
AddMarkerSymbolIfNecessary() AddMarkerSymbolIfNecessary() 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>)
AddMarkerSymbolIfNecessary(SourceLocation) AddMarkerSymbolIfNecessary(SourceLocation) 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>)
AssertDirective(String) AssertDirective(String) AssertDirective(String)

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

At(CSharpKeyword) At(CSharpKeyword) At(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.

At(TSymbolType) At(TSymbolType) 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>)
AtIdentifier(Boolean) AtIdentifier(Boolean) AtIdentifier(Boolean)

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>)
Balance(BalancingModes) Balance(BalancingModes) 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>)
Balance(BalancingModes, TSymbolType, TSymbolType, SourceLocation) Balance(BalancingModes, TSymbolType, TSymbolType, SourceLocation) 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>)
BaseTypeDirective(String, Func<String,SpanCodeGenerator>) BaseTypeDirective(String, Func<String,SpanCodeGenerator>) BaseTypeDirective(String, Func<String,SpanCodeGenerator>)

Indicates the base type directive.

BuildSpan(SpanBuilder, SourceLocation, String) BuildSpan(SpanBuilder, SourceLocation, String) BuildSpan(SpanBuilder, SourceLocation, String)

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>)
ConfigureSpan(Action<SpanBuilder,Action<SpanBuilder>>) ConfigureSpan(Action<SpanBuilder,Action<SpanBuilder>>) ConfigureSpan(Action<SpanBuilder,Action<SpanBuilder>>)

Configures the span.

(Inherited from TokenizerBackedParser<TTokenizer,TSymbol,TSymbolType>)
ConfigureSpan(Action<SpanBuilder>) ConfigureSpan(Action<SpanBuilder>) 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>)
EnsureCurrent() EnsureCurrent() 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>)
Expected(KnownSymbolType) Expected(KnownSymbolType) 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>)
Expected(TSymbolType[]) Expected(TSymbolType[]) 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>)
FunctionsDirective() FunctionsDirective() FunctionsDirective()

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

HandleEmbeddedTransition() HandleEmbeddedTransition() HandleEmbeddedTransition()

This 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.

HelperDirective() HelperDirective() HelperDirective()

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

InheritsDirective() InheritsDirective() InheritsDirective()

This 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.

InheritsDirectiveCore() InheritsDirectiveCore() InheritsDirectiveCore()

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

Initialize(SpanBuilder) Initialize(SpanBuilder) Initialize(SpanBuilder)

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>)
IsAtEmbeddedTransition(Boolean, Boolean) IsAtEmbeddedTransition(Boolean, Boolean) IsAtEmbeddedTransition(Boolean, Boolean)

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.

IsSpacingToken(Boolean, Boolean) IsSpacingToken(Boolean, Boolean) IsSpacingToken(Boolean, Boolean)

Indicates whether the lines and comments is spacing token.

LayoutDirective() LayoutDirective() LayoutDirective()

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

MapDirectives(Action, String[]) MapDirectives(Action, String[]) MapDirectives(Action, String[])

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

NextIs(Func<TSymbol,Boolean>) NextIs(Func<TSymbol,Boolean>) NextIs(Func<TSymbol,Boolean>)

Determines whether the token with the given condition would pass.

(Inherited from TokenizerBackedParser<TTokenizer,TSymbol,TSymbolType>)
NextIs(TSymbolType) NextIs(TSymbolType) 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>)
NextIs(TSymbolType[]) NextIs(TSymbolType[]) 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 types would pass.

(Inherited from TokenizerBackedParser<TTokenizer,TSymbol,TSymbolType>)
NextToken() NextToken() 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>)
Optional(KnownSymbolType) Optional(KnownSymbolType) 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>)
Optional(TSymbolType) Optional(TSymbolType) 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>)
Output(AcceptedCharacters) Output(AcceptedCharacters) 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>)
Output(SpanKind) Output(SpanKind) 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>)
Output(SpanKind, AcceptedCharacters) Output(SpanKind, AcceptedCharacters) 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>)
OutputSpanBeforeRazorComment() OutputSpanBeforeRazorComment() OutputSpanBeforeRazorComment()

This 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.

ParseBlock() ParseBlock() ParseBlock()

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

ParseDocument() ParseDocument() 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)
ParseSection(Tuple<String,String>, Boolean) ParseSection(Tuple<String,String>, Boolean) ParseSection(Tuple<String,String>, Boolean)

Parses the section in ordered list of the elements.

(Inherited from ParserBase)
PushSpanConfig() PushSpanConfig() 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>)
PushSpanConfig(Action<SpanBuilder,Action<SpanBuilder>>) PushSpanConfig(Action<SpanBuilder,Action<SpanBuilder>>) PushSpanConfig(Action<SpanBuilder,Action<SpanBuilder>>)

Pushes the span configuration.

(Inherited from TokenizerBackedParser<TTokenizer,TSymbol,TSymbolType>)
PushSpanConfig(Action<SpanBuilder>) PushSpanConfig(Action<SpanBuilder>) 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>)
PutBack(IEnumerable<TSymbol>) PutBack(IEnumerable<TSymbol>) PutBack(IEnumerable<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>)
PutBack(TSymbol) PutBack(TSymbol) 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>)
PutCurrentBack() PutCurrentBack() 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>)
RazorComment() RazorComment() 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>)
ReadWhile(Func<TSymbol,Boolean>) ReadWhile(Func<TSymbol,Boolean>) ReadWhile(Func<TSymbol,Boolean>)

Reads a token while the condition is not reached.

(Inherited from TokenizerBackedParser<TTokenizer,TSymbol,TSymbolType>)
Required(TSymbolType, Boolean, String) Required(TSymbolType, Boolean, String) 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>)
ReservedDirective(Boolean) ReservedDirective(Boolean) ReservedDirective(Boolean)

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

SectionDirective() SectionDirective() SectionDirective()

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

SessionStateDirective() SessionStateDirective() SessionStateDirective()

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

SessionStateDirectiveCore() SessionStateDirectiveCore() SessionStateDirectiveCore()

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

SessionStateTypeDirective(String, Func<String,String,SpanCodeGenerator>) SessionStateTypeDirective(String, Func<String,String,SpanCodeGenerator>) SessionStateTypeDirective(String, Func<String,String,SpanCodeGenerator>)

Indicates the directive for session state type.

TryGetDirectiveHandler(String, Action) TryGetDirectiveHandler(String, Action) TryGetDirectiveHandler(String, Action)

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

ValidSessionStateValue() ValidSessionStateValue() ValidSessionStateValue()

This 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.

Was(TSymbolType) Was(TSymbolType) Was(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 was parsed.

(Inherited from TokenizerBackedParser<TTokenizer,TSymbol,TSymbolType>)

Applies to