GetSourceFiles.Apply Method

Definition

Overloads

Apply(QsCompilation)

Returns a hash set containing all sources in the given namespace(s).

Apply(QsNamespace[])

Returns a hash set containing all source files in the given namespace(s).

Apply(IEnumerable<QsNamespace>)

Returns a hash set containing all source files in the given namespaces.

Apply(QsCompilation)

Returns a hash set containing all sources in the given namespace(s).

public static System.Collections.Immutable.ImmutableHashSet<Microsoft.Quantum.QsCompiler.SyntaxTree.Source> Apply (Microsoft.Quantum.QsCompiler.SyntaxTree.QsCompilation compilation);
static member Apply : Microsoft.Quantum.QsCompiler.SyntaxTree.QsCompilation -> System.Collections.Immutable.ImmutableHashSet<Microsoft.Quantum.QsCompiler.SyntaxTree.Source>
Public Shared Function Apply (compilation As QsCompilation) As ImmutableHashSet(Of Source)

Parameters

compilation
QsCompilation

Returns

ImmutableHashSet<Source>

Applies to

Apply(QsNamespace[])

Returns a hash set containing all source files in the given namespace(s).

public static System.Collections.Immutable.ImmutableHashSet<string> Apply (params Microsoft.Quantum.QsCompiler.SyntaxTree.QsNamespace[] namespaces);
static member Apply : Microsoft.Quantum.QsCompiler.SyntaxTree.QsNamespace[] -> System.Collections.Immutable.ImmutableHashSet<string>
Public Shared Function Apply (ParamArray namespaces As QsNamespace()) As ImmutableHashSet(Of String)

Parameters

namespaces
QsNamespace[]

Returns

ImmutableHashSet<String>

Applies to

Apply(IEnumerable<QsNamespace>)

Returns a hash set containing all source files in the given namespaces.

public static System.Collections.Immutable.ImmutableHashSet<string> Apply (System.Collections.Generic.IEnumerable<Microsoft.Quantum.QsCompiler.SyntaxTree.QsNamespace> namespaces);
static member Apply : seq<Microsoft.Quantum.QsCompiler.SyntaxTree.QsNamespace> -> System.Collections.Immutable.ImmutableHashSet<string>
Public Shared Function Apply (namespaces As IEnumerable(Of QsNamespace)) As ImmutableHashSet(Of String)

Parameters

namespaces
IEnumerable<QsNamespace>

Returns

ImmutableHashSet<String>

Applies to