Namespace.TryAddType 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[] 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
- attributes
- ImmutableArray<AttributeAnnotation>
- access
- Access
- documentation
- ImmutableArray<String>
Returns
- Attributes
-
Microsoft.FSharp.Core.CompilationArgumentCountsAttribute