CodeGeneration Class

Definition

public static class CodeGeneration
type CodeGeneration = class
Public Module CodeGeneration
Inheritance
CodeGeneration

Methods

GenerateFunctorSpecializations(QsCompilation, QsCompilation, Action<Exception>)

Given a Q# compilation, evaluates all functor generator directives and builds a new compilation where the corresponding elements in the syntax tree are replaced by the generated implementations. If the evaluation fails, the corresponding callable is left unchanged in the new tree. This is the case e.g. if more than one specialization of the same kind exists for a callable which causes an ArgumentException to be thrown. Any thrown exception is logged using the given onException action and are silently ignored if onException is not specified or null. Returns a boolean indicating if the evaluation of all directives was successful.

Applies to