ReplaceWithTargetIntrinsics.Apply(QsCompilation, QsCompilation) 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.
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