共用方式為


SyntaxTree.GetLocation(TextSpan) 方法

定義

取得指定之文字範圍的位置。

public:
 abstract Microsoft::CodeAnalysis::Location ^ GetLocation(Microsoft::CodeAnalysis::Text::TextSpan span);
public abstract Microsoft.CodeAnalysis.Location GetLocation (Microsoft.CodeAnalysis.Text.TextSpan span);
abstract member GetLocation : Microsoft.CodeAnalysis.Text.TextSpan -> Microsoft.CodeAnalysis.Location
Public MustOverride Function GetLocation (span As TextSpan) As Location

參數

span
TextSpan

傳回

適用於