SyntaxTreeToQsharp.ToCode Method

Definition

Overloads

ToCode(QsExpressionKind<TypedExpression,Identifier,ResolvedType>)
ToCode(QsCustomType)
ToCode(QsNamespace)
ToCode(QsStatement)
ToCode(QsStatementKind)
ToCode(ResolvedType)
ToCode(TypedExpression)

ToCode(QsExpressionKind<TypedExpression,Identifier,ResolvedType>)

public string? ToCode (Microsoft.Quantum.QsCompiler.SyntaxTokens.QsExpressionKind<Microsoft.Quantum.QsCompiler.SyntaxTree.TypedExpression,Microsoft.Quantum.QsCompiler.SyntaxTree.Identifier,Microsoft.Quantum.QsCompiler.SyntaxTree.ResolvedType> k);
member this.ToCode : Microsoft.Quantum.QsCompiler.SyntaxTokens.QsExpressionKind<Microsoft.Quantum.QsCompiler.SyntaxTree.TypedExpression, Microsoft.Quantum.QsCompiler.SyntaxTree.Identifier, Microsoft.Quantum.QsCompiler.SyntaxTree.ResolvedType> -> string
Public Function ToCode (k As QsExpressionKind(Of TypedExpression, Identifier, ResolvedType)) As String

Parameters

Returns

String

Applies to

ToCode(QsCustomType)

public string ToCode (Microsoft.Quantum.QsCompiler.SyntaxTree.QsCustomType type);
member this.ToCode : Microsoft.Quantum.QsCompiler.SyntaxTree.QsCustomType -> string
Public Function ToCode (type As QsCustomType) As String

Parameters

Returns

String

Applies to

ToCode(QsNamespace)

public string ToCode (Microsoft.Quantum.QsCompiler.SyntaxTree.QsNamespace ns);
member this.ToCode : Microsoft.Quantum.QsCompiler.SyntaxTree.QsNamespace -> string
Public Function ToCode (ns As QsNamespace) As String

Parameters

Returns

String

Applies to

ToCode(QsStatement)

public string ToCode (Microsoft.Quantum.QsCompiler.SyntaxTree.QsStatement stm);
member this.ToCode : Microsoft.Quantum.QsCompiler.SyntaxTree.QsStatement -> string
Public Function ToCode (stm As QsStatement) As String

Parameters

Returns

String

Applies to

ToCode(QsStatementKind)

public string ToCode (Microsoft.Quantum.QsCompiler.SyntaxTree.QsStatementKind stmKind);
member this.ToCode : Microsoft.Quantum.QsCompiler.SyntaxTree.QsStatementKind -> string
Public Function ToCode (stmKind As QsStatementKind) As String

Parameters

stmKind
QsStatementKind

Returns

String

Applies to

ToCode(ResolvedType)

public string? ToCode (Microsoft.Quantum.QsCompiler.SyntaxTree.ResolvedType t);
member this.ToCode : Microsoft.Quantum.QsCompiler.SyntaxTree.ResolvedType -> string
Public Function ToCode (t As ResolvedType) As String

Parameters

Returns

String

Applies to

ToCode(TypedExpression)

public string? ToCode (Microsoft.Quantum.QsCompiler.SyntaxTree.TypedExpression ex);
member this.ToCode : Microsoft.Quantum.QsCompiler.SyntaxTree.TypedExpression -> string
Public Function ToCode (ex As TypedExpression) As String

Parameters

Returns

String

Applies to