CompilationLoader Constructors
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
| CompilationLoader(CompilationLoader+SourceLoader, CompilationLoader+ReferenceLoader, CompilationLoader+Configuration, ILogger) |
Builds the compilation for the source files and references loaded by the given loaders, executing the compilation steps specified by the given options. Uses the specified logger to log all diagnostic events. |
| CompilationLoader(CompilationLoader+SourceLoader, IEnumerable<String>, CompilationLoader+Configuration, ILogger) |
Builds the compilation of the content returned by the given loader and the specified references, executing the compilation steps specified by the given options. Uses the specified logger to log all diagnostic events. |
| CompilationLoader(IEnumerable<String>, CompilationLoader+ReferenceLoader, CompilationLoader+Configuration, ILogger) |
Builds the compilation of the specified source files and the loaded references returned by the given loader, executing the compilation steps specified by the given options. Uses the specified logger to log all diagnostic events. |
| CompilationLoader(IEnumerable<String>, IEnumerable<String>, CompilationLoader+Configuration, ILogger) |
Builds the compilation of the specified source files and references, executing the compilation steps specified by the given options. Uses the specified logger to log all diagnostic events. |
CompilationLoader(CompilationLoader+SourceLoader, CompilationLoader+ReferenceLoader, CompilationLoader+Configuration, ILogger)
Builds the compilation for the source files and references loaded by the given loaders, executing the compilation steps specified by the given options. Uses the specified logger to log all diagnostic events.
public CompilationLoader (Microsoft.Quantum.QsCompiler.CompilationLoader.SourceLoader loadSources, Microsoft.Quantum.QsCompiler.CompilationLoader.ReferenceLoader loadReferences, Microsoft.Quantum.QsCompiler.CompilationLoader.Configuration? options = default, Microsoft.Quantum.QsCompiler.Diagnostics.ILogger? logger = default);
new Microsoft.Quantum.QsCompiler.CompilationLoader : Microsoft.Quantum.QsCompiler.CompilationLoader.SourceLoader * Microsoft.Quantum.QsCompiler.CompilationLoader.ReferenceLoader * Microsoft.Quantum.QsCompiler.CompilationLoader.Configuration * Microsoft.Quantum.QsCompiler.Diagnostics.ILogger -> Microsoft.Quantum.QsCompiler.CompilationLoader
Public Sub New (loadSources As CompilationLoader.SourceLoader, loadReferences As CompilationLoader.ReferenceLoader, Optional options As CompilationLoader.Configuration = Nothing, Optional logger As ILogger = Nothing)
Parameters
- loadSources
- CompilationLoader.SourceLoader
- loadReferences
- CompilationLoader.ReferenceLoader
- options
- CompilationLoader.Configuration
- logger
- ILogger
Remarks
This method waits for Tasks to complete and may deadlock if invoked through a Task.
Applies to
CompilationLoader(CompilationLoader+SourceLoader, IEnumerable<String>, CompilationLoader+Configuration, ILogger)
Builds the compilation of the content returned by the given loader and the specified references, executing the compilation steps specified by the given options. Uses the specified logger to log all diagnostic events.
public CompilationLoader (Microsoft.Quantum.QsCompiler.CompilationLoader.SourceLoader loadSources, System.Collections.Generic.IEnumerable<string> references, Microsoft.Quantum.QsCompiler.CompilationLoader.Configuration? options = default, Microsoft.Quantum.QsCompiler.Diagnostics.ILogger? logger = default);
new Microsoft.Quantum.QsCompiler.CompilationLoader : Microsoft.Quantum.QsCompiler.CompilationLoader.SourceLoader * seq<string> * Microsoft.Quantum.QsCompiler.CompilationLoader.Configuration * Microsoft.Quantum.QsCompiler.Diagnostics.ILogger -> Microsoft.Quantum.QsCompiler.CompilationLoader
Public Sub New (loadSources As CompilationLoader.SourceLoader, references As IEnumerable(Of String), Optional options As CompilationLoader.Configuration = Nothing, Optional logger As ILogger = Nothing)
Parameters
- loadSources
- CompilationLoader.SourceLoader
- references
- IEnumerable<String>
- options
- CompilationLoader.Configuration
- logger
- ILogger
Applies to
CompilationLoader(IEnumerable<String>, CompilationLoader+ReferenceLoader, CompilationLoader+Configuration, ILogger)
Builds the compilation of the specified source files and the loaded references returned by the given loader, executing the compilation steps specified by the given options. Uses the specified logger to log all diagnostic events.
public CompilationLoader (System.Collections.Generic.IEnumerable<string> sources, Microsoft.Quantum.QsCompiler.CompilationLoader.ReferenceLoader loadReferences, Microsoft.Quantum.QsCompiler.CompilationLoader.Configuration? options = default, Microsoft.Quantum.QsCompiler.Diagnostics.ILogger? logger = default);
new Microsoft.Quantum.QsCompiler.CompilationLoader : seq<string> * Microsoft.Quantum.QsCompiler.CompilationLoader.ReferenceLoader * Microsoft.Quantum.QsCompiler.CompilationLoader.Configuration * Microsoft.Quantum.QsCompiler.Diagnostics.ILogger -> Microsoft.Quantum.QsCompiler.CompilationLoader
Public Sub New (sources As IEnumerable(Of String), loadReferences As CompilationLoader.ReferenceLoader, Optional options As CompilationLoader.Configuration = Nothing, Optional logger As ILogger = Nothing)
Parameters
- sources
- IEnumerable<String>
- loadReferences
- CompilationLoader.ReferenceLoader
- options
- CompilationLoader.Configuration
- logger
- ILogger
Applies to
CompilationLoader(IEnumerable<String>, IEnumerable<String>, CompilationLoader+Configuration, ILogger)
Builds the compilation of the specified source files and references, executing the compilation steps specified by the given options. Uses the specified logger to log all diagnostic events.
public CompilationLoader (System.Collections.Generic.IEnumerable<string> sources, System.Collections.Generic.IEnumerable<string> references, Microsoft.Quantum.QsCompiler.CompilationLoader.Configuration? options = default, Microsoft.Quantum.QsCompiler.Diagnostics.ILogger? logger = default);
new Microsoft.Quantum.QsCompiler.CompilationLoader : seq<string> * seq<string> * Microsoft.Quantum.QsCompiler.CompilationLoader.Configuration * Microsoft.Quantum.QsCompiler.Diagnostics.ILogger -> Microsoft.Quantum.QsCompiler.CompilationLoader
Public Sub New (sources As IEnumerable(Of String), references As IEnumerable(Of String), Optional options As CompilationLoader.Configuration = Nothing, Optional logger As ILogger = Nothing)
Parameters
- sources
- IEnumerable<String>
- references
- IEnumerable<String>
- options
- CompilationLoader.Configuration
- logger
- ILogger