Namespace.TryAddType Method

Definition

[Microsoft.FSharp.Core.CompilationArgumentCounts(new System.Int32[] { 2, 5 })]
public Microsoft.Quantum.QsCompiler.DataTypes.QsCompilerDiagnostic[] TryAddType (string source, Microsoft.Quantum.QsCompiler.SyntaxTree.QsLocation location, Tuple<string,Microsoft.Quantum.QsCompiler.DataTypes.Range> _arg1, Microsoft.Quantum.QsCompiler.SyntaxTokens.QsTuple<Tuple<Microsoft.Quantum.QsCompiler.SyntaxTokens.QsSymbol,Microsoft.Quantum.QsCompiler.SyntaxTokens.QsType>> typeTuple, 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.TryAddType : string * Microsoft.Quantum.QsCompiler.SyntaxTree.QsLocation -> string * Microsoft.Quantum.QsCompiler.DataTypes.Range * Microsoft.Quantum.QsCompiler.SyntaxTokens.QsTuple<Microsoft.Quantum.QsCompiler.SyntaxTokens.QsSymbol * Microsoft.Quantum.QsCompiler.SyntaxTokens.QsType> * 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 TryAddType (source As String, location As QsLocation, _arg1 As Tuple(Of String, Range), typeTuple As QsTuple(Of Tuple(Of QsSymbol, QsType)), attributes As ImmutableArray(Of AttributeAnnotation), access As Access, documentation As ImmutableArray(Of String)) As QsCompilerDiagnostic()

Parameters

source
String
location
QsLocation
_arg1
Tuple<String,Range>
access
Access
documentation
ImmutableArray<String>

Returns

QsCompilerDiagnostic[]
Attributes
Microsoft.FSharp.Core.CompilationArgumentCountsAttribute

Applies to