References.Headers(String, IEnumerable<QsNamespace>) Constructor

Definition

Initializes a set of reference headers based on the syntaxTree loaded from source.

public Headers (string source, System.Collections.Generic.IEnumerable<Microsoft.Quantum.QsCompiler.SyntaxTree.QsNamespace> syntaxTree);
new Microsoft.Quantum.QsCompiler.CompilationBuilder.References.Headers : string * seq<Microsoft.Quantum.QsCompiler.SyntaxTree.QsNamespace> -> Microsoft.Quantum.QsCompiler.CompilationBuilder.References.Headers
Public Sub New (source As String, syntaxTree As IEnumerable(Of QsNamespace))

Parameters

source
String
syntaxTree
IEnumerable<QsNamespace>

Remarks

source is expected to be the path to the dll from which syntaxTree has been loaded.

Returns an empty set of headers if syntaxTree is null.

Applies to