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

返回

适用于