IdentifierReferences Class

Definition

Class that allows to walk the syntax tree and find all locations where a certain identifier occurs. If a set of source file names is given on initialization, the search is limited to callables and specializations in those files.

public class IdentifierReferences : Microsoft.Quantum.QsCompiler.Transformations.Core.SyntaxTreeTransformation<Microsoft.Quantum.QsCompiler.Transformations.SearchAndReplace.IdentifierReferences.TransformationState>
type IdentifierReferences = class
    inherit SyntaxTreeTransformation<IdentifierReferences.TransformationState>
Public Class IdentifierReferences
Inherits SyntaxTreeTransformation(Of IdentifierReferences.TransformationState)
Inheritance

Constructors

IdentifierReferences(IdentifierReferences+TransformationState)
IdentifierReferences(QsQualifiedName, QsLocation, IImmutableSet<String>)
IdentifierReferences(String, QsLocation, IImmutableSet<String>)

Properties

ExpressionKinds (Inherited from SyntaxTreeTransformation<T>)
Expressions (Inherited from SyntaxTreeTransformation<T>)
Namespaces (Inherited from SyntaxTreeTransformation<T>)
SharedState (Inherited from SyntaxTreeTransformation<T>)
StatementKinds (Inherited from SyntaxTreeTransformation<T>)
Statements (Inherited from SyntaxTreeTransformation<T>)
Types (Inherited from SyntaxTreeTransformation<T>)

Methods

Find(QsQualifiedName, QsNamespace, QsLocation, Tuple<String,QsLocation>, IImmutableSet<String>)
Find(String, QsScope, String, Position)
FindInExpression(String, Position, QsLocation, TypedExpression, String)

Finds references to an identifier in an expression.

FindInScope(String, Position, QsScope, String)

Finds references to an identifier in a scope.

OnAbsoluteLocation(QsNullable<QsLocation>)
OnArgumentTuple(QsTuple<LocalVariableDeclaration<QsLocalSymbol,ResolvedType>>) (Inherited from SyntaxTreeTransformation<T>)
OnCompilation(QsCompilation) (Inherited from SyntaxTreeTransformation<T>)
OnExpressionRange(QsNullable<Range>) (Inherited from SyntaxTreeTransformation<T>)
OnItemName(UserDefinedType, String) (Inherited from SyntaxTreeTransformation<T>)
OnItemNameDeclaration(String) (Inherited from SyntaxTreeTransformation<T>)
OnLocalName(String) (Inherited from SyntaxTreeTransformation<T>)
OnLocalNameDeclaration(String) (Inherited from SyntaxTreeTransformation<T>)
OnRelativeLocation(QsNullable<QsLocation>)
OnSymbolLocation(QsNullable<Position>, Range) (Inherited from SyntaxTreeTransformation<T>)
OnTypeRange(TypeRange) (Inherited from SyntaxTreeTransformation<T>)

Applies to