Namespace.TryAddCallableDeclaration 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[] { 2, 5 })]
public Microsoft.Quantum.QsCompiler.DataTypes.QsCompilerDiagnostic[] TryAddCallableDeclaration (string source, Microsoft.Quantum.QsCompiler.SyntaxTree.QsLocation location, Tuple<string,Microsoft.Quantum.QsCompiler.DataTypes.Range> _arg2, Tuple<Microsoft.Quantum.QsCompiler.SyntaxTree.QsCallableKind,Microsoft.Quantum.QsCompiler.SyntaxTokens.CallableSignature> _arg3, System.Collections.Immutable.ImmutableArray<Microsoft.Quantum.QsCompiler.AttributeAnnotation> attributes, Microsoft.Quantum.QsCompiler.SyntaxTokens.Access access, System.Collections.Immutable.ImmutableArray<string> documentation);
[<Microsoft.FSharp.Core.CompilationArgumentCounts(new System.Int32[] { 2, 5 })>]
member this.TryAddCallableDeclaration : string * Microsoft.Quantum.QsCompiler.SyntaxTree.QsLocation -> string * Microsoft.Quantum.QsCompiler.DataTypes.Range * Microsoft.Quantum.QsCompiler.SyntaxTree.QsCallableKind * Microsoft.Quantum.QsCompiler.SyntaxTokens.CallableSignature * System.Collections.Immutable.ImmutableArray<Microsoft.Quantum.QsCompiler.AttributeAnnotation> * Microsoft.Quantum.QsCompiler.SyntaxTokens.Access * System.Collections.Immutable.ImmutableArray<string> -> Microsoft.Quantum.QsCompiler.DataTypes.QsCompilerDiagnostic[]
Public Function TryAddCallableDeclaration (source As String, location As QsLocation, _arg2 As Tuple(Of String, Range), _arg3 As Tuple(Of QsCallableKind, CallableSignature), attributes As ImmutableArray(Of AttributeAnnotation), access As Access, documentation As ImmutableArray(Of String)) As QsCompilerDiagnostic()
Parameters
- source
- String
- location
- QsLocation
- _arg3
- Tuple<QsCallableKind,CallableSignature>
- attributes
- ImmutableArray<AttributeAnnotation>
- access
- Access
- documentation
- ImmutableArray<String>
Returns
- Attributes
-
Microsoft.FSharp.Core.CompilationArgumentCountsAttribute