Namespace.TryAddCallableDeclaration Method

Definition

[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
_arg2
Tuple<String,Range>
access
Access
documentation
ImmutableArray<String>

Returns

QsCompilerDiagnostic[]
Attributes
Microsoft.FSharp.Core.CompilationArgumentCountsAttribute

Applies to