CompilationUnitManager.AddOrUpdateSourceFilesAsync Method

Definition

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

Task

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.

Applies to