Udostępnij za pośrednictwem


Location.Create Method

Definition

Overloads

Create(SyntaxTree, TextSpan)

Creates an instance of a Location for a span in a SyntaxTree.

Create(String, TextSpan, LinePositionSpan)

Creates an instance of a Location for a span in a file.

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

Creates an instance of a Location for a span in a file with a mapped file and span.

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

Creates an instance of a Location for a span in a SyntaxTree.

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

Parameters

syntaxTree
SyntaxTree
textSpan
TextSpan

Returns

Applies to

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

Creates an instance of a Location for a span in a file.

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

Parameters

filePath
String
textSpan
TextSpan
lineSpan
LinePositionSpan

Returns

Applies to

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

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

Creates an instance of a Location for a span in a file with a mapped file and span.

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

Parameters

filePath
String
textSpan
TextSpan
lineSpan
LinePositionSpan
mappedFilePath
String
mappedLineSpan
LinePositionSpan

Returns

Applies to