SyntaxTreeToQsharp.TypeTransformation Class

Definition

Class used to generate Q# code for Q# types. Adds an Output string property to ExpressionTypeTransformation, that upon calling Transform on a Q# type is set to the Q# code corresponding to that type.

public class SyntaxTreeToQsharp.TypeTransformation : Microsoft.Quantum.QsCompiler.Transformations.Core.TypeTransformation<Microsoft.Quantum.QsCompiler.Transformations.QsCodeOutput.SyntaxTreeToQsharp.TransformationState>
type SyntaxTreeToQsharp.TypeTransformation = class
    inherit TypeTransformation<SyntaxTreeToQsharp.TransformationState>
Public Class SyntaxTreeToQsharp.TypeTransformation
Inherits TypeTransformation(Of SyntaxTreeToQsharp.TransformationState)
Inheritance

Constructors

SyntaxTreeToQsharp.TypeTransformation()
SyntaxTreeToQsharp.TypeTransformation(SyntaxTreeToQsharp)

Properties

Output
SharedState (Inherited from TypeTransformation<T>)
Transformation (Inherited from TypeTransformation<T>)

Methods

OnArrayType(ResolvedType) System.Object.OnArrayType(Microsoft.Quantum.QsCompiler.SyntaxTree.ResolvedType)
OnBigInt() System.Object.OnBigInt
OnBool() System.Object.OnBool
OnCallableInformation(CallableInformation) (Inherited from TypeTransformationBase)
OnCharacteristicsExpression(ResolvedCharacteristics) System.Object.OnCharacteristicsExpression(Microsoft.Quantum.QsCompiler.SyntaxTree.ResolvedCharacteristics)
OnDouble() System.Object.OnDouble
OnFunction(ResolvedType, ResolvedType) System.Object.OnFunction(Microsoft.Quantum.QsCompiler.SyntaxTree.ResolvedType,Microsoft.Quantum.QsCompiler.SyntaxTree.ResolvedType)
OnInt() System.Object.OnInt
OnInvalidType() System.Object.OnInvalidType
OnMissingType() System.Object.OnMissingType
OnOperation(Tuple<ResolvedType,ResolvedType>, CallableInformation) System.Object.OnOperation(System.Tuple{Microsoft.Quantum.QsCompiler.SyntaxTree.ResolvedType,Microsoft.Quantum.QsCompiler.SyntaxTree.ResolvedType},Microsoft.Quantum.QsCompiler.SyntaxTree.CallableInformation)
OnPauli() System.Object.OnPauli
OnQubit() System.Object.OnQubit
OnRange() System.Object.OnRange
OnRangeInformation(QsNullable<Range>)
Obsolete.
(Inherited from TypeTransformationBase)
OnResult() System.Object.OnResult
OnString() System.Object.OnString
OnTupleType(ImmutableArray<ResolvedType>) System.Object.OnTupleType(System.Collections.Immutable.ImmutableArray{Microsoft.Quantum.QsCompiler.SyntaxTree.ResolvedType})
OnType(ResolvedType) (Inherited from TypeTransformationBase)
OnTypeParameter(QsTypeParameter) System.Object.OnTypeParameter(Microsoft.Quantum.QsCompiler.SyntaxTree.QsTypeParameter)
OnTypeRange(TypeRange)
Obsolete.
(Inherited from TypeTransformationBase)
OnUnitType() System.Object.OnUnitType
OnUserDefinedType(UserDefinedType) System.Object.OnUserDefinedType(Microsoft.Quantum.QsCompiler.SyntaxTree.UserDefinedType)

Applies to