Class LuaSyntaxVisitor<TResult>
Represents a LuaSyntaxNode visitor that visits only the single
LuaSyntaxNode passed into its Visit method and produces a value
of the type specified by the TResult
parameter.
Inheritance
System.Object
LuaSyntaxVisitor<TResult>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Loretta.CodeAnalysis.Lua.dll
Syntax
public abstract class LuaSyntaxVisitor<TResult>
Type Parameters
Name |
Description |
TResult |
The type of the return value this visitor's Visit method.
|
Methods
|
Improve this Doc
View Source
DefaultVisit(SyntaxNode)
Declaration
public virtual TResult DefaultVisit(SyntaxNode node)
Parameters
Returns
|
Improve this Doc
View Source
Visit(SyntaxNode)
Declaration
public virtual TResult Visit(SyntaxNode node)
Parameters
Returns
|
Improve this Doc
View Source
VisitAnonymousFunctionExpression(AnonymousFunctionExpressionSyntax)
Called when the visitor visits a AnonymousFunctionExpressionSyntax node.
Declaration
public virtual TResult VisitAnonymousFunctionExpression(AnonymousFunctionExpressionSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitArrayType(ArrayTypeSyntax)
Called when the visitor visits a ArrayTypeSyntax node.
Declaration
public virtual TResult VisitArrayType(ArrayTypeSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitAssignmentStatement(AssignmentStatementSyntax)
Called when the visitor visits a AssignmentStatementSyntax node.
Declaration
public virtual TResult VisitAssignmentStatement(AssignmentStatementSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitBinaryExpression(BinaryExpressionSyntax)
Called when the visitor visits a BinaryExpressionSyntax node.
Declaration
public virtual TResult VisitBinaryExpression(BinaryExpressionSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitBreakStatement(BreakStatementSyntax)
Called when the visitor visits a BreakStatementSyntax node.
Declaration
public virtual TResult VisitBreakStatement(BreakStatementSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitCompilationUnit(CompilationUnitSyntax)
Called when the visitor visits a CompilationUnitSyntax node.
Declaration
public virtual TResult VisitCompilationUnit(CompilationUnitSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitCompositeTypeName(CompositeTypeNameSyntax)
Called when the visitor visits a CompositeTypeNameSyntax node.
Declaration
public virtual TResult VisitCompositeTypeName(CompositeTypeNameSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitCompoundAssignmentStatement(CompoundAssignmentStatementSyntax)
Called when the visitor visits a CompoundAssignmentStatementSyntax node.
Declaration
public virtual TResult VisitCompoundAssignmentStatement(CompoundAssignmentStatementSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitContinueStatement(ContinueStatementSyntax)
Called when the visitor visits a ContinueStatementSyntax node.
Declaration
public virtual TResult VisitContinueStatement(ContinueStatementSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitDoStatement(DoStatementSyntax)
Called when the visitor visits a DoStatementSyntax node.
Declaration
public virtual TResult VisitDoStatement(DoStatementSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitElementAccessExpression(ElementAccessExpressionSyntax)
Called when the visitor visits a ElementAccessExpressionSyntax node.
Declaration
public virtual TResult VisitElementAccessExpression(ElementAccessExpressionSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitElseClause(ElseClauseSyntax)
Called when the visitor visits a ElseClauseSyntax node.
Declaration
public virtual TResult VisitElseClause(ElseClauseSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitElseIfClause(ElseIfClauseSyntax)
Called when the visitor visits a ElseIfClauseSyntax node.
Declaration
public virtual TResult VisitElseIfClause(ElseIfClauseSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitElseIfExpressionClause(ElseIfExpressionClauseSyntax)
Called when the visitor visits a ElseIfExpressionClauseSyntax node.
Declaration
public virtual TResult VisitElseIfExpressionClause(ElseIfExpressionClauseSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitEmptyStatement(EmptyStatementSyntax)
Called when the visitor visits a EmptyStatementSyntax node.
Declaration
public virtual TResult VisitEmptyStatement(EmptyStatementSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitEqualsType(EqualsTypeSyntax)
Called when the visitor visits a EqualsTypeSyntax node.
Declaration
public virtual TResult VisitEqualsType(EqualsTypeSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitEqualsValuesClause(EqualsValuesClauseSyntax)
Called when the visitor visits a EqualsValuesClauseSyntax node.
Declaration
public virtual TResult VisitEqualsValuesClause(EqualsValuesClauseSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitExpressionKeyedTableField(ExpressionKeyedTableFieldSyntax)
Called when the visitor visits a ExpressionKeyedTableFieldSyntax node.
Declaration
public virtual TResult VisitExpressionKeyedTableField(ExpressionKeyedTableFieldSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitExpressionListFunctionArgument(ExpressionListFunctionArgumentSyntax)
Called when the visitor visits a ExpressionListFunctionArgumentSyntax node.
Declaration
public virtual TResult VisitExpressionListFunctionArgument(ExpressionListFunctionArgumentSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitExpressionStatement(ExpressionStatementSyntax)
Called when the visitor visits a ExpressionStatementSyntax node.
Declaration
public virtual TResult VisitExpressionStatement(ExpressionStatementSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitFunctionCallExpression(FunctionCallExpressionSyntax)
Called when the visitor visits a FunctionCallExpressionSyntax node.
Declaration
public virtual TResult VisitFunctionCallExpression(FunctionCallExpressionSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitFunctionDeclarationStatement(FunctionDeclarationStatementSyntax)
Called when the visitor visits a FunctionDeclarationStatementSyntax node.
Declaration
public virtual TResult VisitFunctionDeclarationStatement(FunctionDeclarationStatementSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitFunctionType(FunctionTypeSyntax)
Called when the visitor visits a FunctionTypeSyntax node.
Declaration
public virtual TResult VisitFunctionType(FunctionTypeSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitGenericForStatement(GenericForStatementSyntax)
Called when the visitor visits a GenericForStatementSyntax node.
Declaration
public virtual TResult VisitGenericForStatement(GenericForStatementSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitGenericTypePack(GenericTypePackSyntax)
Called when the visitor visits a GenericTypePackSyntax node.
Declaration
public virtual TResult VisitGenericTypePack(GenericTypePackSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitGotoLabelStatement(GotoLabelStatementSyntax)
Called when the visitor visits a GotoLabelStatementSyntax node.
Declaration
public virtual TResult VisitGotoLabelStatement(GotoLabelStatementSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitGotoStatement(GotoStatementSyntax)
Called when the visitor visits a GotoStatementSyntax node.
Declaration
public virtual TResult VisitGotoStatement(GotoStatementSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitIdentifierKeyedTableField(IdentifierKeyedTableFieldSyntax)
Called when the visitor visits a IdentifierKeyedTableFieldSyntax node.
Declaration
public virtual TResult VisitIdentifierKeyedTableField(IdentifierKeyedTableFieldSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitIdentifierName(IdentifierNameSyntax)
Called when the visitor visits a IdentifierNameSyntax node.
Declaration
public virtual TResult VisitIdentifierName(IdentifierNameSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitIfExpression(IfExpressionSyntax)
Called when the visitor visits a IfExpressionSyntax node.
Declaration
public virtual TResult VisitIfExpression(IfExpressionSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitIfStatement(IfStatementSyntax)
Called when the visitor visits a IfStatementSyntax node.
Declaration
public virtual TResult VisitIfStatement(IfStatementSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitIntersectionType(IntersectionTypeSyntax)
Called when the visitor visits a IntersectionTypeSyntax node.
Declaration
public virtual TResult VisitIntersectionType(IntersectionTypeSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitLiteralExpression(LiteralExpressionSyntax)
Called when the visitor visits a LiteralExpressionSyntax node.
Declaration
public virtual TResult VisitLiteralExpression(LiteralExpressionSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitLiteralType(LiteralTypeSyntax)
Called when the visitor visits a LiteralTypeSyntax node.
Declaration
public virtual TResult VisitLiteralType(LiteralTypeSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitLocalDeclarationName(LocalDeclarationNameSyntax)
Called when the visitor visits a LocalDeclarationNameSyntax node.
Declaration
public virtual TResult VisitLocalDeclarationName(LocalDeclarationNameSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitLocalFunctionDeclarationStatement(LocalFunctionDeclarationStatementSyntax)
Called when the visitor visits a LocalFunctionDeclarationStatementSyntax node.
Declaration
public virtual TResult VisitLocalFunctionDeclarationStatement(LocalFunctionDeclarationStatementSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitLocalVariableDeclarationStatement(LocalVariableDeclarationStatementSyntax)
Called when the visitor visits a LocalVariableDeclarationStatementSyntax node.
Declaration
public virtual TResult VisitLocalVariableDeclarationStatement(LocalVariableDeclarationStatementSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitMemberAccessExpression(MemberAccessExpressionSyntax)
Called when the visitor visits a MemberAccessExpressionSyntax node.
Declaration
public virtual TResult VisitMemberAccessExpression(MemberAccessExpressionSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitMemberFunctionName(MemberFunctionNameSyntax)
Called when the visitor visits a MemberFunctionNameSyntax node.
Declaration
public virtual TResult VisitMemberFunctionName(MemberFunctionNameSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitMethodCallExpression(MethodCallExpressionSyntax)
Called when the visitor visits a MethodCallExpressionSyntax node.
Declaration
public virtual TResult VisitMethodCallExpression(MethodCallExpressionSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitMethodFunctionName(MethodFunctionNameSyntax)
Called when the visitor visits a MethodFunctionNameSyntax node.
Declaration
public virtual TResult VisitMethodFunctionName(MethodFunctionNameSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitNamedParameter(NamedParameterSyntax)
Called when the visitor visits a NamedParameterSyntax node.
Declaration
public virtual TResult VisitNamedParameter(NamedParameterSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitNilableType(NilableTypeSyntax)
Called when the visitor visits a NilableTypeSyntax node.
Declaration
public virtual TResult VisitNilableType(NilableTypeSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitNumericForStatement(NumericForStatementSyntax)
Called when the visitor visits a NumericForStatementSyntax node.
Declaration
public virtual TResult VisitNumericForStatement(NumericForStatementSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitParameterList(ParameterListSyntax)
Called when the visitor visits a ParameterListSyntax node.
Declaration
public virtual TResult VisitParameterList(ParameterListSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitParenthesizedExpression(ParenthesizedExpressionSyntax)
Called when the visitor visits a ParenthesizedExpressionSyntax node.
Declaration
public virtual TResult VisitParenthesizedExpression(ParenthesizedExpressionSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitParenthesizedType(ParenthesizedTypeSyntax)
Called when the visitor visits a ParenthesizedTypeSyntax node.
Declaration
public virtual TResult VisitParenthesizedType(ParenthesizedTypeSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitRepeatUntilStatement(RepeatUntilStatementSyntax)
Called when the visitor visits a RepeatUntilStatementSyntax node.
Declaration
public virtual TResult VisitRepeatUntilStatement(RepeatUntilStatementSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitReturnStatement(ReturnStatementSyntax)
Called when the visitor visits a ReturnStatementSyntax node.
Declaration
public virtual TResult VisitReturnStatement(ReturnStatementSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitSimpleFunctionName(SimpleFunctionNameSyntax)
Called when the visitor visits a SimpleFunctionNameSyntax node.
Declaration
public virtual TResult VisitSimpleFunctionName(SimpleFunctionNameSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitSimpleTypeName(SimpleTypeNameSyntax)
Called when the visitor visits a SimpleTypeNameSyntax node.
Declaration
public virtual TResult VisitSimpleTypeName(SimpleTypeNameSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitSkippedTokensTrivia(SkippedTokensTriviaSyntax)
Called when the visitor visits a SkippedTokensTriviaSyntax node.
Declaration
public virtual TResult VisitSkippedTokensTrivia(SkippedTokensTriviaSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitStatementList(StatementListSyntax)
Called when the visitor visits a StatementListSyntax node.
Declaration
public virtual TResult VisitStatementList(StatementListSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitStringFunctionArgument(StringFunctionArgumentSyntax)
Called when the visitor visits a StringFunctionArgumentSyntax node.
Declaration
public virtual TResult VisitStringFunctionArgument(StringFunctionArgumentSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitTableConstructorExpression(TableConstructorExpressionSyntax)
Called when the visitor visits a TableConstructorExpressionSyntax node.
Declaration
public virtual TResult VisitTableConstructorExpression(TableConstructorExpressionSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitTableConstructorFunctionArgument(TableConstructorFunctionArgumentSyntax)
Called when the visitor visits a TableConstructorFunctionArgumentSyntax node.
Declaration
public virtual TResult VisitTableConstructorFunctionArgument(TableConstructorFunctionArgumentSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitTableType(TableTypeSyntax)
Called when the visitor visits a TableTypeSyntax node.
Declaration
public virtual TResult VisitTableType(TableTypeSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitTableTypeIndexer(TableTypeIndexerSyntax)
Called when the visitor visits a TableTypeIndexerSyntax node.
Declaration
public virtual TResult VisitTableTypeIndexer(TableTypeIndexerSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitTableTypeProperty(TableTypePropertySyntax)
Called when the visitor visits a TableTypePropertySyntax node.
Declaration
public virtual TResult VisitTableTypeProperty(TableTypePropertySyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitTypeArgumentList(TypeArgumentListSyntax)
Called when the visitor visits a TypeArgumentListSyntax node.
Declaration
public virtual TResult VisitTypeArgumentList(TypeArgumentListSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitTypeBinding(TypeBindingSyntax)
Called when the visitor visits a TypeBindingSyntax node.
Declaration
public virtual TResult VisitTypeBinding(TypeBindingSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitTypeCastExpression(TypeCastExpressionSyntax)
Called when the visitor visits a TypeCastExpressionSyntax node.
Declaration
public virtual TResult VisitTypeCastExpression(TypeCastExpressionSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitTypeDeclarationStatement(TypeDeclarationStatementSyntax)
Called when the visitor visits a TypeDeclarationStatementSyntax node.
Declaration
public virtual TResult VisitTypeDeclarationStatement(TypeDeclarationStatementSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitTypedIdentifierName(TypedIdentifierNameSyntax)
Called when the visitor visits a TypedIdentifierNameSyntax node.
Declaration
public virtual TResult VisitTypedIdentifierName(TypedIdentifierNameSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitTypeofType(TypeofTypeSyntax)
Called when the visitor visits a TypeofTypeSyntax node.
Declaration
public virtual TResult VisitTypeofType(TypeofTypeSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitTypePack(TypePackSyntax)
Called when the visitor visits a TypePackSyntax node.
Declaration
public virtual TResult VisitTypePack(TypePackSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitTypeParameter(TypeParameterSyntax)
Called when the visitor visits a TypeParameterSyntax node.
Declaration
public virtual TResult VisitTypeParameter(TypeParameterSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitTypeParameterList(TypeParameterListSyntax)
Called when the visitor visits a TypeParameterListSyntax node.
Declaration
public virtual TResult VisitTypeParameterList(TypeParameterListSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitUnaryExpression(UnaryExpressionSyntax)
Called when the visitor visits a UnaryExpressionSyntax node.
Declaration
public virtual TResult VisitUnaryExpression(UnaryExpressionSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitUnionType(UnionTypeSyntax)
Called when the visitor visits a UnionTypeSyntax node.
Declaration
public virtual TResult VisitUnionType(UnionTypeSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitUnkeyedTableField(UnkeyedTableFieldSyntax)
Called when the visitor visits a UnkeyedTableFieldSyntax node.
Declaration
public virtual TResult VisitUnkeyedTableField(UnkeyedTableFieldSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitVarArgExpression(VarArgExpressionSyntax)
Called when the visitor visits a VarArgExpressionSyntax node.
Declaration
public virtual TResult VisitVarArgExpression(VarArgExpressionSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitVarArgParameter(VarArgParameterSyntax)
Called when the visitor visits a VarArgParameterSyntax node.
Declaration
public virtual TResult VisitVarArgParameter(VarArgParameterSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitVariableAttribute(VariableAttributeSyntax)
Called when the visitor visits a VariableAttributeSyntax node.
Declaration
public virtual TResult VisitVariableAttribute(VariableAttributeSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitVariadicTypePack(VariadicTypePackSyntax)
Called when the visitor visits a VariadicTypePackSyntax node.
Declaration
public virtual TResult VisitVariadicTypePack(VariadicTypePackSyntax node)
Parameters
Returns
|
Improve this Doc
View Source
VisitWhileStatement(WhileStatementSyntax)
Called when the visitor visits a WhileStatementSyntax node.
Declaration
public virtual TResult VisitWhileStatement(WhileStatementSyntax node)
Parameters
Returns