AttributeUtils.BuildAttribute(QsQualifiedName, TypedExpression) 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.
Returns a Q# attribute with the given name and argument that can be attached to a declaration. The attribute id is set to Null if the given name is null. The attribute argument is set to an invalid expression if the given argument is null.
public static Microsoft.Quantum.QsCompiler.SyntaxTree.QsDeclarationAttribute BuildAttribute (Microsoft.Quantum.QsCompiler.SyntaxTree.QsQualifiedName name, Microsoft.Quantum.QsCompiler.SyntaxTree.TypedExpression arg);
static member BuildAttribute : Microsoft.Quantum.QsCompiler.SyntaxTree.QsQualifiedName * Microsoft.Quantum.QsCompiler.SyntaxTree.TypedExpression -> Microsoft.Quantum.QsCompiler.SyntaxTree.QsDeclarationAttribute
Public Shared Function BuildAttribute (name As QsQualifiedName, arg As TypedExpression) As QsDeclarationAttribute
Parameters
- name
- QsQualifiedName
- arg
- TypedExpression