Namespace.TryAddCallableSpecialization 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.
[Microsoft.FSharp.Core.CompilationArgumentCounts(new System.Int32[] { 1, 2, 4 })]
public Microsoft.Quantum.QsCompiler.DataTypes.QsCompilerDiagnostic[] TryAddCallableSpecialization (Microsoft.Quantum.QsCompiler.SyntaxTree.QsSpecializationKind kind, string source, Microsoft.Quantum.QsCompiler.SyntaxTree.QsLocation location, Tuple<string,Microsoft.Quantum.QsCompiler.DataTypes.Range> _arg4, Microsoft.Quantum.QsCompiler.SyntaxTokens.QsSpecializationGenerator generator, System.Collections.Immutable.ImmutableArray<Microsoft.Quantum.QsCompiler.AttributeAnnotation> attributes, System.Collections.Immutable.ImmutableArray<string> documentation);
[<Microsoft.FSharp.Core.CompilationArgumentCounts(new System.Int32[] { 1, 2, 4 })>]
member this.TryAddCallableSpecialization : Microsoft.Quantum.QsCompiler.SyntaxTree.QsSpecializationKind -> string * Microsoft.Quantum.QsCompiler.SyntaxTree.QsLocation -> string * Microsoft.Quantum.QsCompiler.DataTypes.Range * Microsoft.Quantum.QsCompiler.SyntaxTokens.QsSpecializationGenerator * System.Collections.Immutable.ImmutableArray<Microsoft.Quantum.QsCompiler.AttributeAnnotation> * System.Collections.Immutable.ImmutableArray<string> -> Microsoft.Quantum.QsCompiler.DataTypes.QsCompilerDiagnostic[]
Public Function TryAddCallableSpecialization (kind As QsSpecializationKind, source As String, location As QsLocation, _arg4 As Tuple(Of String, Range), generator As QsSpecializationGenerator, attributes As ImmutableArray(Of AttributeAnnotation), documentation As ImmutableArray(Of String)) As QsCompilerDiagnostic()
Parameters
- kind
- QsSpecializationKind
- source
- String
- location
- QsLocation
- generator
- QsSpecializationGenerator
- attributes
- ImmutableArray<AttributeAnnotation>
- documentation
- ImmutableArray<String>
Returns
- Attributes
-
Microsoft.FSharp.Core.CompilationArgumentCountsAttribute