Table of Contents

Class CsParser

Namespace
Alternet.Syntax.Parsers.Advanced
Assembly
Alternet.Syntax.Parsers.Advanced.v9.dll

Represents a class that performs syntax and lexical analysis of the specified C# code.

public class CsParser : NetSyntaxParser, IComponent, IDisposable, ISyntaxParser, IParser, ILexer, INotify, IUpdate, IImport
Inheritance
CsParser
Implements
Derived

Constructors

CsParser()

Initializes a new instance of the CsParser class with default settings.

Fields

lexCommentEndProc
lexCommentProc
lexDefineIdentifierProc
lexDefineProc
lexDefineStringProc
lexIdentifierProc
lexNumberProc
lexStringEndProc
lexStringInterpolationEndProc
lexStringInterpolationIdentProc
lexStringInterpolationIdentifierProc
lexStringInterpolationProc
lexStringInterpolationStringProc
lexStringInterpolationSymbolProc
lexStringProc
lexSymbolProc
lexWhitespaceProc
lexXmlCommentProc
lexXmlCommentTagProc
reswords

Methods

AddImplicitTupleType(ISyntaxNode)
CreateListMembers()
CreateParameterInfo()
CreateRepository()

Creates ICodeCompletionRepository to perform code completion functionality for this parser.

Expected(CsLexerToken)
Expected(CsLexerToken[])
Expected(int)
FormatComment(string)
GenerateAnonymousTupleField(ref int)
GenerateAnonymousTupleName()
GenerateImplicitClass(ISyntaxNode, out ISyntaxNode)
GenerateImplicitClassName()
GenerateTupleClass(ISyntaxNode, out ISyntaxNode)
GetCompletionType(char)

Obtains type of code completion window from specifies char parameter.

GetExpressionType(ISyntaxNode, int, out Point)
GetImplicitNode(ISyntaxNode)
GetLexerStyle(int)
GetSingleLineComment()

Gets the string that represents start symbol of single line comment.

GetXmlComment()

Gets the string that represents start symbols of xml comment.

HasNamedArgument(ISyntaxNode)
IdentifierExpected()
InitLanguage()
InitLexer()
InitReswords()
InternalCreateRepository()
IsAccessor(NetNodeType)
IsAccessorModifier(int)
IsBaseList(int)
IsBuiltInType(int)
IsCastExpressionNext()
IsCodeCompletionChar(char, byte, ref int)

Returns boolean value indicating that given character initializes a code completion procedure when typing.

IsComment(int)
IsFromLetWhereClause()
IsIdentifierToken(int)
IsImplicitVariableDeclaration(int)
IsKeywordToken(int)
IsLambdaExpressionNext()
IsLiteralToken(int)
IsModifier(int)
IsNull(int)
IsNullableType(int)
IsOrderingDirection()
IsPointerType(int)
IsTypeArgumentList(int)
IsTypeParameterConstraintsClause(int)
IsTypeParameterList(int)
IsValidToken(int)
IsXmlComment(int)
LexBinNumber()
LexComment()
LexCommentEnd()
LexDefine()
LexDefineIdentifier()
LexDefineString()
LexDefineStringEnd()
LexHexNumber()
LexIdentifier()
LexNum()
LexNumber()
LexString()
LexString(char)
LexStringEnd()
LexStringEnd(int)
LexStringInterpolation()
LexStringInterpolationEnd()
LexStringInterpolationIdentifier()
LexStringInterpolationString()
LexStringInterpolationSymbol()
LexSymbol()
LexWhitespace()
LexXmlComment()
LexXmlCommentTag()
ParseAccessorBody(ISyntaxNode)
ParseAccessorModifiers(ref ISyntaxAttributes)
ParseAccessors(ISyntaxAttributes, NetNodeType)
ParseAdditiveExpression(ref ISyntaxNode)
ParseAliasDeclaration(ISyntaxAttributes)
ParseAliasList(ISyntaxAttributes)
ParseAndExpression(ref ISyntaxNode)
ParseAnonymousMethodExpression(ref ISyntaxNode)
ParseArgument(ref ISyntaxNode, bool)
ParseArgumentExpression(ref ISyntaxNode)
ParseArgumentExpressionList(ref ISyntaxNode)
ParseArgumentList(ref ISyntaxNode)
ParseArgumentList(ref ISyntaxNode, bool)
ParseArrayDeclaration(ref ISyntaxNode)
ParseArrayInitializerExpression(ref ISyntaxNode)
ParseAsIsType(ISyntaxNode)
ParseAttributeDeclaration()
ParseAttributeListDeclaration()
ParseBaseAccess(ref ISyntaxNode)
ParseBaseList()
ParseBaseSpecifier()
ParseBaseSpecifierList()
ParseBlock()
ParseBlockStatement()
ParseBlockStatement(ISyntaxAttributes, SyntaxNodeOptions, out ISyntaxNode)
ParseBreakStatement()
ParseCastTargetExpression(ref ISyntaxNode)
ParseCatchStatement()
ParseCatchStatements()
ParseCheckedExpression(NetNodeType, ref ISyntaxNode)
ParseCheckedExpression(ref ISyntaxNode)
ParseCheckedStatement()
ParseCheckedStatement(NetNodeType)
ParseClassBody()
ParseComment()
ParseConditionalAndExpression(ref ISyntaxNode)
ParseConditionalExpression(ref ISyntaxNode)
ParseConditionalOrExpression(ref ISyntaxNode)
ParseConstantExpression(ref ISyntaxNode)
ParseConstructorDeclaration(ISyntaxAttributes, Point, string, ISyntaxNode)
ParseConstructorInitializer()
ParseContinueStatement()
ParseDeclaration(ISyntaxAttributes, ISyntaxNode, int)
ParseDeclaration(ISyntaxAttributes, int)
ParseDeclaration(ISyntaxNode)
ParseDeclarationBody(ISyntaxNode, int)
ParseDeclarationBodyEnd(ISyntaxNode)
ParseDefaultExpression(ref ISyntaxNode)
ParseDefineDirective()
ParseDefineExpression(ref ISyntaxNode)
ParseDelegateDeclaration(ISyntaxAttributes)
ParseDestructorDeclaration(ISyntaxAttributes)
ParseDirective(ref bool)
ParseDirectives()
ParseDoStatement()
ParseDoWhileStatement()
ParseElementAccess(ref ISyntaxNode)
ParseElseStatement()
ParseEmbeddedStatement()
ParseEmbeddedStatement(bool)
ParseEnumBody()
ParseEnumMember()
ParseEqualityExpression(ref ISyntaxNode)
ParseEventDeclaration(ISyntaxAttributes)
ParseExclusiveOrExpression(ref ISyntaxNode)
ParseExpression(ref ISyntaxNode)
ParseExpressionStatement()
ParseFieldDeclaration(ISyntaxAttributes, Point, string, ISyntaxNode, Point, string, ISyntaxNode)
ParseFinallyStatement()
ParseFixedStatement()
ParseForCondition()
ParseForInitializer()
ParseForIterator()
ParseForStatement()
ParseForeachInitializer()
ParseForeachStatement()
ParseFromClause()
ParseFromLetWhereClauses()
ParseGotoStatement()
ParseGroupClause()
ParseIdentifier(out string)
ParseIdentifierOrResword(out string)
ParseIfStatement()
ParseImplicitVariableDeclaration()
ParseInclusiveOrExpression(ref ISyntaxNode)
ParseIndexerDeclaration(ISyntaxAttributes, Point, string, ISyntaxNode)
ParseInvocationExpression(ref ISyntaxNode)
ParseJoinClause()
ParseJoinClauses()
ParseKnownMemberDeclaration(ISyntaxAttributes)
ParseLambdaExpression(ref ISyntaxNode)
ParseLambdaParameterDeclaration()
ParseLetClause()
ParseLocalConstantDeclarationStatement()
ParseLockStatement()
ParseMemberAccess(ref ISyntaxNode)
ParseMemberAccess(ref ISyntaxNode, int)
ParseMemberInitializer(ref ISyntaxNode)
ParseMemberInitializerList(ref ISyntaxNode, int, SyntaxNodeOptions)
ParseMethodBody()
ParseMethodDeclaration(ISyntaxAttributes, Point, string, ISyntaxNode, Point, string, ISyntaxNode)
ParseMethodDeclaration(ISyntaxNode)
ParseModifiers(ref ISyntaxAttributes)
ParseMultiplicativeExpression(ref ISyntaxNode)
ParseNameofExpression(ref ISyntaxNode)
ParseNamespaceAlias(ref ISyntaxNode)
ParseNamespaceOrTypeName(out string, out ISyntaxNode)
ParseNewExpression(ref ISyntaxNode)
ParseNullCoalescingExpression(ref ISyntaxNode)
ParseNullableType(out string, ISyntaxNode)
ParseOperatorDeclaration(ISyntaxAttributes)
ParseOperatorDeclaration(ISyntaxAttributes, Point, string, ISyntaxNode, bool)
ParseOperatorType(ISyntaxAttribute)
ParseOperatorTypes()
ParseOptionalExressionInBracket()
ParseOptionalTypeAndIdentifier(ISyntaxNode)
ParseOrderByClause()
ParseOutArgument(Point, NetNodeType, ref ISyntaxNode)
ParseParameterDeclaration()
ParseParameterListDeclaration()
ParseParameterListDeclaration(int, int)
ParseParenthesizedExpression(ref ISyntaxNode, bool)
ParseParenthesizedStatementExpression(ref ISyntaxNode)
ParsePointerMemberAccess(ref ISyntaxNode)
ParsePointerType(out string, ISyntaxNode)
ParsePositionalOrNamedParam()
ParsePostDecrementExpression(ref ISyntaxNode)
ParsePostIncrementExpression(ref ISyntaxNode)
ParsePrefixedUnaryExpression(ref ISyntaxNode)
ParsePreprocessor(out string)
ParsePrimaryExpression(ref ISyntaxNode)
ParsePropertyDeclaration(ISyntaxAttributes, Point, string, ISyntaxNode, Point, string, ISyntaxNode)
ParsePropertyDeclaration(ISyntaxNode)
ParseQualifiedIdentifier(out string, out ISyntaxNode)
ParseQueryBody()
ParseQueryContinuation()
ParseQueryExpression(ref ISyntaxNode)
ParseRankSpecifier(out string, ISyntaxNode)
ParseRelationalExpression(ref ISyntaxNode)
ParseReturnStatement()
ParseReturnStatement(NetNodeType)
ParseSelectClause()
ParseSelectOrGroupClause()
ParseShiftExpression(ref ISyntaxNode)
ParseSimpleExpression(ref ISyntaxNode)
ParseSizeofExpression(ref ISyntaxNode)
ParseStackallocExpression(ref ISyntaxNode)
ParseStatement()
ParseStatementExpression()
ParseStatementExpressionList()
ParseStatementList()
ParseStringExpression(out string)
ParseSwitchBlock()
ParseSwitchLabel()
ParseSwitchLabels()
ParseSwitchSection()
ParseSwitchStatement()
ParseText(int, int, string, ref StringItemInfo[])

Performs lexical analysis of given text.

ParseText(int, int, string, ref int, ref int, ref int)

Performs lexical analysis of given text.

ParseThisAccess(ref ISyntaxNode)
ParseThrowStatement()
ParseTryStatement()
ParseTupleFieldDeclaration(Point, NetNodeType, bool, bool, ref int)
ParseType(out string, out ISyntaxNode)
ParseType(out string, out ISyntaxNode, bool)
ParseTypeArgument(ISyntaxNode, ref string, out string)
ParseTypeArgumentList(out string, ISyntaxNode)
ParseTypeIdentifier(out string, bool, out ISyntaxNode)
ParseTypeName(out string, out ISyntaxNode)
ParseTypeParameter()
ParseTypeParameterConstraint()
ParseTypeParameterConstraints()
ParseTypeParameterConstraintsClause()
ParseTypeParameterConstraintsClauses()
ParseTypeParameterList()
ParseTypeofExpression(NetNodeType, ref ISyntaxNode)
ParseTypeofExpression(ref ISyntaxNode)
ParseUnaryExpression(ref ISyntaxNode)
ParseUncheckedExpression(ref ISyntaxNode)
ParseUncheckedStatement()
ParseUndefineDirective()
ParseUnitBody()
ParseUnknownMemberDeclaration(ISyntaxAttributes)
ParseUnsafeStatement()
ParseUsingDeclaration(ISyntaxAttributes)
ParseUsingDeclaration(ISyntaxNode)
ParseUsingList()
ParseUsingList(ISyntaxNode)
ParseUsingStatement()
ParseVariableDeclaration(Point, NetNodeType)
ParseVariableDeclaration(Point, NetNodeType, ref ISyntaxNode)
ParseVariableDeclaration(Point, NetNodeType, bool, bool, ref ISyntaxNode)
ParseVariableDeclarator(NetNodeType, bool)
ParseVariableDeclarators(NetNodeType, bool)
ParseVariableInitializer(ref ISyntaxNode)
ParseVariableReference(ref ISyntaxNode)
ParseWhereClause()
ParseWhileStatement()
ParseYieldStatement()
ReparseText()

Reparses entire text.

Reset()

Resets NetSyntaxParser to the start position.

ResetAutoIndentChars()

Resets the AutoIndentChars to the default value.

ResetCodeCompletionChars()

Resets the CodeCompletionChars to the default value.

ResetCodeCompletionStopChars()

Resets the CodeCompletionStopChars to the default value.

ResetSmartFormatChars()

Resets the SmartFormatChars to the default value.

ShouldSerializeAutoIndentChars()

Indicates whether the AutoIndentChars property should be persisted.

ShouldSerializeCodeCompletionChars()

Indicates whether the CodeCompletionChars property should be persisted.

ShouldSerializeCodeCompletionStopChars()

Indicates whether the CodeCompletionStopChars property should be persisted.

ShouldSerializeSmartFormatChars()

Indicates whether the SmartFormatChars property should be persisted.

SkipComment()
SkipTo(int)
SkipTo(int, int)
SkipTo(int[])
SkipToDeclarationStart(int)
SkipToEndIf(bool, bool)
SyntaxError(int)
TryParseAssignmentExpression(ref ISyntaxNode)
TryParseAttributeSpecifier()
TryParseCastExpression(ref ISyntaxNode)
TryParseGenericExpression(ref ISyntaxNode, out bool)
TryParseLabeledStatement(out bool)
TryParseLambdaParameterOrExpression(ref ISyntaxNode, bool)
TryParseLocalFunctionDeclaration(out bool)
TryParseNamedArgument(ref ISyntaxNode, string, Point)
TryParseNullConditionalExpression(ref ISyntaxNode, ref bool)
TryParsePostPrimaryExpression(ref ISyntaxNode)
TryParseRankSpecifiers(out string, ISyntaxNode)
TryParseTupleInitializerExpression(ref ISyntaxNode)
TryParseTupleType(out string, out ISyntaxNode, bool)
TryParseTupleVariableDeclaration(out bool)
TryParseVariableDeclarationStatement(out bool)