Location.Create 方法

定义

重载

Create(SyntaxTree, TextSpan)

为 中的范围创建 的SyntaxTree实例Location

Create(String, TextSpan, LinePositionSpan)

为文件中的 Location 跨度创建 的实例。

Create(String, TextSpan, LinePositionSpan, String, LinePositionSpan)

为具有映射文件和 Location 范围的文件范围创建 一个 实例。

Create(SyntaxTree, TextSpan)

Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs

为 中的范围创建 的SyntaxTree实例Location

public:
 static Microsoft::CodeAnalysis::Location ^ Create(Microsoft::CodeAnalysis::SyntaxTree ^ syntaxTree, Microsoft::CodeAnalysis::Text::TextSpan textSpan);
public static Microsoft.CodeAnalysis.Location Create (Microsoft.CodeAnalysis.SyntaxTree syntaxTree, Microsoft.CodeAnalysis.Text.TextSpan textSpan);
static member Create : Microsoft.CodeAnalysis.SyntaxTree * Microsoft.CodeAnalysis.Text.TextSpan -> Microsoft.CodeAnalysis.Location
Public Shared Function Create (syntaxTree As SyntaxTree, textSpan As TextSpan) As Location

参数

syntaxTree
SyntaxTree
textSpan
TextSpan

返回

适用于

Create(String, TextSpan, LinePositionSpan)

Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs

为文件中的 Location 跨度创建 的实例。

public:
 static Microsoft::CodeAnalysis::Location ^ Create(System::String ^ filePath, Microsoft::CodeAnalysis::Text::TextSpan textSpan, Microsoft::CodeAnalysis::Text::LinePositionSpan lineSpan);
public static Microsoft.CodeAnalysis.Location Create (string filePath, Microsoft.CodeAnalysis.Text.TextSpan textSpan, Microsoft.CodeAnalysis.Text.LinePositionSpan lineSpan);
static member Create : string * Microsoft.CodeAnalysis.Text.TextSpan * Microsoft.CodeAnalysis.Text.LinePositionSpan -> Microsoft.CodeAnalysis.Location
Public Shared Function Create (filePath As String, textSpan As TextSpan, lineSpan As LinePositionSpan) As Location

参数

filePath
String
textSpan
TextSpan
lineSpan
LinePositionSpan

返回

适用于

Create(String, TextSpan, LinePositionSpan, String, LinePositionSpan)

Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs
Source:
Location.cs

为具有映射文件和 Location 范围的文件范围创建 一个 实例。

public static Microsoft.CodeAnalysis.Location Create (string filePath, Microsoft.CodeAnalysis.Text.TextSpan textSpan, Microsoft.CodeAnalysis.Text.LinePositionSpan lineSpan, string mappedFilePath, Microsoft.CodeAnalysis.Text.LinePositionSpan mappedLineSpan);
static member Create : string * Microsoft.CodeAnalysis.Text.TextSpan * Microsoft.CodeAnalysis.Text.LinePositionSpan * string * Microsoft.CodeAnalysis.Text.LinePositionSpan -> Microsoft.CodeAnalysis.Location
Public Shared Function Create (filePath As String, textSpan As TextSpan, lineSpan As LinePositionSpan, mappedFilePath As String, mappedLineSpan As LinePositionSpan) As Location

参数

filePath
String
textSpan
TextSpan
lineSpan
LinePositionSpan
mappedFilePath
String
mappedLineSpan
LinePositionSpan

返回

适用于