CodeGeneration Class
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.
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. |