RenameReferences Class

Definition

A transformation that renames all references to each given qualified name.

public class RenameReferences : Microsoft.Quantum.QsCompiler.Transformations.Core.SyntaxTreeTransformation
type RenameReferences = class
    inherit SyntaxTreeTransformation
Public Class RenameReferences
Inherits SyntaxTreeTransformation
Inheritance
RenameReferences

Constructors

RenameReferences(IImmutableDictionary<QsQualifiedName,QsQualifiedName>)

Creates a new rename references transformation.

Properties

ExpressionKinds (Inherited from SyntaxTreeTransformation)
Expressions (Inherited from SyntaxTreeTransformation)
Namespaces (Inherited from SyntaxTreeTransformation)
StatementKinds (Inherited from SyntaxTreeTransformation)
Statements (Inherited from SyntaxTreeTransformation)
Types (Inherited from SyntaxTreeTransformation)

Methods

OnAbsoluteLocation(QsNullable<QsLocation>) (Inherited from SyntaxTreeTransformation)
OnArgumentTuple(QsTuple<LocalVariableDeclaration<QsLocalSymbol,ResolvedType>>) (Inherited from SyntaxTreeTransformation)
OnCallableDeclarationHeader(CallableDeclarationHeader)

Renames references in the callable declaration header, including the name of the callable itself.

OnCompilation(QsCompilation) (Inherited from SyntaxTreeTransformation)
OnExpressionRange(QsNullable<Range>) (Inherited from SyntaxTreeTransformation)
OnItemName(UserDefinedType, String) (Inherited from SyntaxTreeTransformation)
OnItemNameDeclaration(String) (Inherited from SyntaxTreeTransformation)
OnLocalName(String) (Inherited from SyntaxTreeTransformation)
OnLocalNameDeclaration(String) (Inherited from SyntaxTreeTransformation)
OnRelativeLocation(QsNullable<QsLocation>) (Inherited from SyntaxTreeTransformation)
OnSpecializationDeclarationHeader(SpecializationDeclarationHeader)

Renames references in the specialization declaration header, including the name of the specialization itself.

OnSymbolLocation(QsNullable<Position>, Range) (Inherited from SyntaxTreeTransformation)
OnTypeDeclarationHeader(TypeDeclarationHeader)

Renames references in the type declaration header, including the name of the type itself.

OnTypeRange(TypeRange) (Inherited from SyntaxTreeTransformation)

Applies to