AttributeUtils.BuildAttribute(QsQualifiedName, TypedExpression) Method

Definition

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

Returns

QsDeclarationAttribute

Applies to