ReplaceWithTargetIntrinsics.Apply(QsCompilation, QsCompilation) Method

Definition

Merge the environment-specific syntax tree with the target tree. The resulting tree will have the union of the namespaces found in both input trees. All namespaces in the intersection between the trees will be merged so that the environment's definitions of elements are preserved over the target's definitions.

public static Microsoft.Quantum.QsCompiler.SyntaxTree.QsCompilation Apply (Microsoft.Quantum.QsCompiler.SyntaxTree.QsCompilation environment, Microsoft.Quantum.QsCompiler.SyntaxTree.QsCompilation target);
static member Apply : Microsoft.Quantum.QsCompiler.SyntaxTree.QsCompilation * Microsoft.Quantum.QsCompiler.SyntaxTree.QsCompilation -> Microsoft.Quantum.QsCompiler.SyntaxTree.QsCompilation
Public Shared Function Apply (environment As QsCompilation, target As QsCompilation) As QsCompilation

Parameters

environment
QsCompilation
target
QsCompilation

Returns

QsCompilation

Applies to