CompilationUnit.Build Method

Definition

Returns the built Q# compilation reflecting the current internal state.

public Microsoft.Quantum.QsCompiler.SyntaxTree.QsCompilation Build ();
member this.Build : unit -> Microsoft.Quantum.QsCompiler.SyntaxTree.QsCompilation
Public Function Build () As QsCompilation

Returns

QsCompilation

Exceptions

A callable definition is listed in Microsoft.Quantum.QsCompiler.CompilationBuilder.CompilationUnit.GlobalSymbols for which no compilation exists.

Remarks

Functor generation directives are *not* evaluated in the the returned compilation, and the returned compilation may contain invalid parts.

Applies to