CompilationUnitManager.GetSyntaxTree Method

Definition

Returns the syntax tree for the current state of the compilation.

public System.Collections.Generic.IEnumerable<Microsoft.Quantum.QsCompiler.SyntaxTree.QsNamespace>? GetSyntaxTree ();
member this.GetSyntaxTree : unit -> seq<Microsoft.Quantum.QsCompiler.SyntaxTree.QsNamespace>
Public Function GetSyntaxTree () As IEnumerable(Of QsNamespace)

Returns

IEnumerable<QsNamespace>

Remarks

Waits for all currently running or queued tasks to finish before constructing the syntax tree by calling FlushAndExecute<T>(Func<T>).

Applies to