AccumulateIdentifiers Class

Definition

Generates a look-up for all used local variables and their location (if available) in any of the transformed scopes, as well as one for all local variables reassigned in any of the transformed scopes and their locations (if available).

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

Remarks

The location information is relative to the root node, i.e. the start position of the containing specialization declaration.

Constructors

AccumulateIdentifiers()

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

OnAbsoluteLocation(QsNullable<QsLocation>) (Inherited from SyntaxTreeTransformation<T>)
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>) (Inherited from SyntaxTreeTransformation<T>)
OnSymbolLocation(QsNullable<Position>, Range) (Inherited from SyntaxTreeTransformation<T>)
OnTypeRange(TypeRange) (Inherited from SyntaxTreeTransformation<T>)

Applies to