GetSourceFiles.Apply 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
| 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
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
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>