SyntaxTreeToQsharp.ToCode Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
- type
- QsCustomType
Returns
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
- ns
- QsNamespace
Returns
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
- stm
- QsStatement
Returns
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
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
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