IdentifierReferences.Find Method

Definition

Overloads

Find(String, QsScope, String, Position)
Obsolete.
Find(QsQualifiedName, QsNamespace, QsLocation, Tuple<String,QsLocation>, IImmutableSet<String>)
Obsolete.

Find(String, QsScope, String, Position)

Caution

Use IdentifierReferences.FindInScope.

[System.Obsolete("Use IdentifierReferences.FindInScope.")]
public static System.Collections.Immutable.ImmutableHashSet<Microsoft.Quantum.QsCompiler.Transformations.SearchAndReplace.IdentifierReferences.Location> Find (string idName, Microsoft.Quantum.QsCompiler.SyntaxTree.QsScope scope, string sourceFile, Microsoft.Quantum.QsCompiler.DataTypes.Position rootLoc);
[<System.Obsolete("Use IdentifierReferences.FindInScope.")>]
static member Find : string * Microsoft.Quantum.QsCompiler.SyntaxTree.QsScope * string * Microsoft.Quantum.QsCompiler.DataTypes.Position -> System.Collections.Immutable.ImmutableHashSet<Microsoft.Quantum.QsCompiler.Transformations.SearchAndReplace.IdentifierReferences.Location>
Public Shared Function Find (idName As String, scope As QsScope, sourceFile As String, rootLoc As Position) As ImmutableHashSet(Of IdentifierReferences.Location)

Parameters

idName
String
scope
QsScope
sourceFile
String
rootLoc
Position

Returns

ImmutableHashSet<Location>
Attributes

Applies to

Find(QsQualifiedName, QsNamespace, QsLocation, Tuple<String,QsLocation>, IImmutableSet<String>)

Caution

This API is now deprecated.

[System.Obsolete]
public static System.Collections.Immutable.ImmutableHashSet<Microsoft.Quantum.QsCompiler.Transformations.SearchAndReplace.IdentifierReferences.Location> Find (Microsoft.Quantum.QsCompiler.SyntaxTree.QsQualifiedName idName, Microsoft.Quantum.QsCompiler.SyntaxTree.QsNamespace ns, Microsoft.Quantum.QsCompiler.SyntaxTree.QsLocation defaultOffset, out Tuple<string,Microsoft.Quantum.QsCompiler.SyntaxTree.QsLocation>? declarationLocation, System.Collections.Immutable.IImmutableSet<string>? limitToSourceFiles = default);
[<System.Obsolete>]
static member Find : Microsoft.Quantum.QsCompiler.SyntaxTree.QsQualifiedName * Microsoft.Quantum.QsCompiler.SyntaxTree.QsNamespace * Microsoft.Quantum.QsCompiler.SyntaxTree.QsLocation * Tuple * System.Collections.Immutable.IImmutableSet<string> -> System.Collections.Immutable.ImmutableHashSet<Microsoft.Quantum.QsCompiler.Transformations.SearchAndReplace.IdentifierReferences.Location>
Public Shared Function Find (idName As QsQualifiedName, ns As QsNamespace, defaultOffset As QsLocation, ByRef declarationLocation As Tuple(Of String, QsLocation), Optional limitToSourceFiles As IImmutableSet(Of String) = Nothing) As ImmutableHashSet(Of IdentifierReferences.Location)

Parameters

defaultOffset
QsLocation
declarationLocation
Tuple<String,QsLocation>
limitToSourceFiles
IImmutableSet<String>

Returns

ImmutableHashSet<Location>
Attributes

Applies to