共用方式為


CSharpSyntaxVisitor<TResult>.VisitCompilationUnit 方法

定義

訪客造訪 CompilationUnitSyntax 節點時呼叫。

public:
 virtual TResult VisitCompilationUnit(Microsoft::CodeAnalysis::CSharp::Syntax::CompilationUnitSyntax ^ node);
public virtual TResult VisitCompilationUnit (Microsoft.CodeAnalysis.CSharp.Syntax.CompilationUnitSyntax node);
public virtual TResult? VisitCompilationUnit (Microsoft.CodeAnalysis.CSharp.Syntax.CompilationUnitSyntax node);
abstract member VisitCompilationUnit : Microsoft.CodeAnalysis.CSharp.Syntax.CompilationUnitSyntax -> 'Result
override this.VisitCompilationUnit : Microsoft.CodeAnalysis.CSharp.Syntax.CompilationUnitSyntax -> 'Result
Public Overridable Function VisitCompilationUnit (node As CompilationUnitSyntax) As TResult

參數

傳回

TResult

適用於