CompilationUnitManager.AddOrUpdateSourceFilesAsync 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.
Adds files to this compilation unit, adapting the diagnostics for all remaining files as needed.
public System.Threading.Tasks.Task AddOrUpdateSourceFilesAsync (System.Collections.Immutable.ImmutableHashSet<Microsoft.Quantum.QsCompiler.CompilationBuilder.FileContentManager> files, bool suppressVerification = false);
member this.AddOrUpdateSourceFilesAsync : System.Collections.Immutable.ImmutableHashSet<Microsoft.Quantum.QsCompiler.CompilationBuilder.FileContentManager> * bool -> System.Threading.Tasks.Task
Public Function AddOrUpdateSourceFilesAsync (files As ImmutableHashSet(Of FileContentManager), Optional suppressVerification As Boolean = false) As Task
Parameters
- suppressVerification
- Boolean
Returns
Remarks
If a file with the same URI is already listed as a source file, replaces the current FileContentManager for that file with the new one and initializes its content to the given one.
Spawns a compilation unit wide type checking unless suppressVerification is set to true, even if no files have been added.