diff --git a/src/Compilers/CSharp/Portable/CSharpResources.Designer.cs b/src/Compilers/CSharp/Portable/CSharpResources.Designer.cs index aa5254af36c3e7e1844ba4e2bcf12d6a74552b0f..7f83969b8d591e0a45166b97f1cd51a95f749c45 100644 --- a/src/Compilers/CSharp/Portable/CSharpResources.Designer.cs +++ b/src/Compilers/CSharp/Portable/CSharpResources.Designer.cs @@ -4015,9 +4015,9 @@ internal class CSharpResources { /// /// Looks up a localized string similar to Cannot reference 'System.Runtime.CompilerServices.TupleElementNamesAttribute' explicitly. Use the tuple syntax to define tuple names.. /// - internal static string ERR_ExplicitTupleElementNames { + internal static string ERR_ExplicitTupleElementNamesAttribute { get { - return ResourceManager.GetString("ERR_ExplicitTupleElementNames", resourceCulture); + return ResourceManager.GetString("ERR_ExplicitTupleElementNamesAttribute", resourceCulture); } } diff --git a/src/Compilers/CSharp/Portable/CSharpResources.resx b/src/Compilers/CSharp/Portable/CSharpResources.resx index 296d0b4652cfd10670b47b48c5711f5ff3c4c39e..3e95754c7d5d5ac6a3b8887cf9265a1f25da8889 100644 --- a/src/Compilers/CSharp/Portable/CSharpResources.resx +++ b/src/Compilers/CSharp/Portable/CSharpResources.resx @@ -4926,7 +4926,7 @@ To remove the warning, you can use /reference instead (set the Embed Interop Typ Cannot define a class or member that utilizes tuples because the compiler required type '{0}' cannot be found. Are you missing a reference? - + Cannot reference 'System.Runtime.CompilerServices.TupleElementNamesAttribute' explicitly. Use the tuple syntax to define tuple names. diff --git a/src/Compilers/CSharp/Portable/Errors/ErrorCode.cs b/src/Compilers/CSharp/Portable/Errors/ErrorCode.cs index 8575980456288c11d54a426c8511f7c1451d9e3e..a35a4e08df55988f6a27857a32c486dd66eb5cee 100644 --- a/src/Compilers/CSharp/Portable/Errors/ErrorCode.cs +++ b/src/Compilers/CSharp/Portable/Errors/ErrorCode.cs @@ -1379,7 +1379,7 @@ internal enum ErrorCode ERR_ConversionNotTupleCompatible = 8135, ERR_DeconstructionVarFormDisallowsSpecificType = 8136, ERR_TupleElementNamesAttributeMissing = 8137, - ERR_ExplicitTupleElementNames = 8138, + ERR_ExplicitTupleElementNamesAttribute = 8138, ERR_CantChangeTupleNamesOnOverride = 8139, ERR_DuplicateInterfaceWithTupleNamesInBaseList = 8140, ERR_ImplBadTupleNames = 8141, diff --git a/src/Compilers/CSharp/Portable/Symbols/Source/SourceComplexParameterSymbol.cs b/src/Compilers/CSharp/Portable/Symbols/Source/SourceComplexParameterSymbol.cs index f7f1a33e7b413e01f259eba26c06dcbfdc92c84a..253d06bedf7c41ca886ca74d9870fe409ffb0375 100644 --- a/src/Compilers/CSharp/Portable/Symbols/Source/SourceComplexParameterSymbol.cs +++ b/src/Compilers/CSharp/Portable/Symbols/Source/SourceComplexParameterSymbol.cs @@ -625,7 +625,7 @@ internal override void DecodeWellKnownAttribute(ref DecodeWellKnownAttributeArgu } else if (attribute.IsTargetAttribute(this, AttributeDescription.TupleElementNamesAttribute)) { - arguments.Diagnostics.Add(ErrorCode.ERR_ExplicitTupleElementNames, arguments.AttributeSyntaxOpt.Location); + arguments.Diagnostics.Add(ErrorCode.ERR_ExplicitTupleElementNamesAttribute, arguments.AttributeSyntaxOpt.Location); } } diff --git a/src/Compilers/CSharp/Portable/Symbols/Source/SourceEventSymbol.cs b/src/Compilers/CSharp/Portable/Symbols/Source/SourceEventSymbol.cs index 98e22b7ab323b52fadc3b63c29350939cdc14510..aaddddb6deb2f2a20c64b2e01eec701529a14494 100644 --- a/src/Compilers/CSharp/Portable/Symbols/Source/SourceEventSymbol.cs +++ b/src/Compilers/CSharp/Portable/Symbols/Source/SourceEventSymbol.cs @@ -287,7 +287,7 @@ internal sealed override void DecodeWellKnownAttribute(ref DecodeWellKnownAttrib } else if (attribute.IsTargetAttribute(this, AttributeDescription.TupleElementNamesAttribute)) { - arguments.Diagnostics.Add(ErrorCode.ERR_ExplicitTupleElementNames, arguments.AttributeSyntaxOpt.Location); + arguments.Diagnostics.Add(ErrorCode.ERR_ExplicitTupleElementNamesAttribute, arguments.AttributeSyntaxOpt.Location); } } diff --git a/src/Compilers/CSharp/Portable/Symbols/Source/SourceFieldSymbol.cs b/src/Compilers/CSharp/Portable/Symbols/Source/SourceFieldSymbol.cs index 3fe3aab7b69860ff62fa449e05383e45bbd2fff7..b0ed0374d98d52229111d84d2989ccbd07aee701 100644 --- a/src/Compilers/CSharp/Portable/Symbols/Source/SourceFieldSymbol.cs +++ b/src/Compilers/CSharp/Portable/Symbols/Source/SourceFieldSymbol.cs @@ -364,7 +364,7 @@ internal sealed override void DecodeWellKnownAttribute(ref DecodeWellKnownAttrib } else if (attribute.IsTargetAttribute(this, AttributeDescription.TupleElementNamesAttribute)) { - arguments.Diagnostics.Add(ErrorCode.ERR_ExplicitTupleElementNames, arguments.AttributeSyntaxOpt.Location); + arguments.Diagnostics.Add(ErrorCode.ERR_ExplicitTupleElementNamesAttribute, arguments.AttributeSyntaxOpt.Location); } } diff --git a/src/Compilers/CSharp/Portable/Symbols/Source/SourceMethodSymbol.cs b/src/Compilers/CSharp/Portable/Symbols/Source/SourceMethodSymbol.cs index d5e1bf33d18441b8d5eefeb039c56d311e4245cd..884dcc1e2e83a7aa13d1f09681f1c16b36c3195a 100644 --- a/src/Compilers/CSharp/Portable/Symbols/Source/SourceMethodSymbol.cs +++ b/src/Compilers/CSharp/Portable/Symbols/Source/SourceMethodSymbol.cs @@ -1223,7 +1223,7 @@ private void DecodeWellKnownAttributeAppliedToReturnValue(ref DecodeWellKnownAtt } else if (attribute.IsTargetAttribute(this, AttributeDescription.TupleElementNamesAttribute)) { - arguments.Diagnostics.Add(ErrorCode.ERR_ExplicitTupleElementNames, arguments.AttributeSyntaxOpt.Location); + arguments.Diagnostics.Add(ErrorCode.ERR_ExplicitTupleElementNamesAttribute, arguments.AttributeSyntaxOpt.Location); } } diff --git a/src/Compilers/CSharp/Portable/Symbols/Source/SourceNamedTypeSymbol.cs b/src/Compilers/CSharp/Portable/Symbols/Source/SourceNamedTypeSymbol.cs index b7a8c96fbe7ff55231b289b399d5dc014461aa28..16b1764fe62092051c3dba8c751d09ba98048a74 100644 --- a/src/Compilers/CSharp/Portable/Symbols/Source/SourceNamedTypeSymbol.cs +++ b/src/Compilers/CSharp/Portable/Symbols/Source/SourceNamedTypeSymbol.cs @@ -694,7 +694,7 @@ internal sealed override void DecodeWellKnownAttribute(ref DecodeWellKnownAttrib } else if (attribute.IsTargetAttribute(this, AttributeDescription.TupleElementNamesAttribute)) { - arguments.Diagnostics.Add(ErrorCode.ERR_ExplicitTupleElementNames, arguments.AttributeSyntaxOpt.Location); + arguments.Diagnostics.Add(ErrorCode.ERR_ExplicitTupleElementNamesAttribute, arguments.AttributeSyntaxOpt.Location); } else if (attribute.IsTargetAttribute(this, AttributeDescription.SecurityCriticalAttribute) || attribute.IsTargetAttribute(this, AttributeDescription.SecuritySafeCriticalAttribute)) diff --git a/src/Compilers/CSharp/Portable/Symbols/Source/SourcePropertySymbol.cs b/src/Compilers/CSharp/Portable/Symbols/Source/SourcePropertySymbol.cs index fe2e23d297e757f2c7c1764d7d49620178e27f84..0e28956e042c103283355de2be59ff709a3a2f05 100644 --- a/src/Compilers/CSharp/Portable/Symbols/Source/SourcePropertySymbol.cs +++ b/src/Compilers/CSharp/Portable/Symbols/Source/SourcePropertySymbol.cs @@ -1153,7 +1153,7 @@ internal override void DecodeWellKnownAttribute(ref DecodeWellKnownAttributeArgu } else if (attribute.IsTargetAttribute(this, AttributeDescription.TupleElementNamesAttribute)) { - arguments.Diagnostics.Add(ErrorCode.ERR_ExplicitTupleElementNames, arguments.AttributeSyntaxOpt.Location); + arguments.Diagnostics.Add(ErrorCode.ERR_ExplicitTupleElementNamesAttribute, arguments.AttributeSyntaxOpt.Location); } } diff --git a/src/Compilers/CSharp/Test/Emit/Attributes/AttributeTests_Tuples.cs b/src/Compilers/CSharp/Test/Emit/Attributes/AttributeTests_Tuples.cs index 3a01048ff1d0f829aead455acd0849a94e2c27e9..0da938b4e6785082bf981363b35e61e34c5457ec 100644 --- a/src/Compilers/CSharp/Test/Emit/Attributes/AttributeTests_Tuples.cs +++ b/src/Compilers/CSharp/Test/Emit/Attributes/AttributeTests_Tuples.cs @@ -813,34 +813,34 @@ public struct S comp.VerifyDiagnostics( // (31,2): error CS8208: Cannot reference 'System.Runtime.CompilerServices.TupleElementNamesAttribute' explicitly. Use the tuple syntax to define tuple names. // [TupleElementNames(new[] { "a", "b" })] - Diagnostic(ErrorCode.ERR_ExplicitTupleElementNames, @"TupleElementNames(new[] { ""a"", ""b"" })").WithLocation(31, 2), + Diagnostic(ErrorCode.ERR_ExplicitTupleElementNamesAttribute, @"TupleElementNames(new[] { ""a"", ""b"" })").WithLocation(31, 2), // (5,2): error CS8208: Cannot reference 'System.Runtime.CompilerServices.TupleElementNamesAttribute' explicitly. Use the tuple syntax to define tuple names. // [TupleElementNames(new[] { "a", "b" })] - Diagnostic(ErrorCode.ERR_ExplicitTupleElementNames, @"TupleElementNames(new[] { ""a"", ""b"" })").WithLocation(5, 2), + Diagnostic(ErrorCode.ERR_ExplicitTupleElementNamesAttribute, @"TupleElementNames(new[] { ""a"", ""b"" })").WithLocation(5, 2), // (18,10): error CS8208: Cannot reference 'System.Runtime.CompilerServices.TupleElementNamesAttribute' explicitly. Use the tuple syntax to define tuple names. // [TupleElementNames(new[] { "x" })]ValueTuple args); - Diagnostic(ErrorCode.ERR_ExplicitTupleElementNames, @"TupleElementNames(new[] { ""x"" })").WithLocation(18, 10), + Diagnostic(ErrorCode.ERR_ExplicitTupleElementNamesAttribute, @"TupleElementNames(new[] { ""x"" })").WithLocation(18, 10), // (11,6): error CS8208: Cannot reference 'System.Runtime.CompilerServices.TupleElementNamesAttribute' explicitly. Use the tuple syntax to define tuple names. // [TupleElementNames(new[] { "x", "y" })] - Diagnostic(ErrorCode.ERR_ExplicitTupleElementNames, @"TupleElementNames(new[] { ""x"", ""y"" })").WithLocation(11, 6), + Diagnostic(ErrorCode.ERR_ExplicitTupleElementNamesAttribute, @"TupleElementNames(new[] { ""x"", ""y"" })").WithLocation(11, 6), // (14,14): error CS8208: Cannot reference 'System.Runtime.CompilerServices.TupleElementNamesAttribute' explicitly. Use the tuple syntax to define tuple names. // [return: TupleElementNames(new string[] { null, null })] - Diagnostic(ErrorCode.ERR_ExplicitTupleElementNames, "TupleElementNames(new string[] { null, null })").WithLocation(14, 14), + Diagnostic(ErrorCode.ERR_ExplicitTupleElementNamesAttribute, "TupleElementNames(new string[] { null, null })").WithLocation(14, 14), // (15,36): error CS8208: Cannot reference 'System.Runtime.CompilerServices.TupleElementNamesAttribute' explicitly. Use the tuple syntax to define tuple names. // public ValueTuple M([TupleElementNames(new string[] { null})] ValueTuple x) => (0, 0); - Diagnostic(ErrorCode.ERR_ExplicitTupleElementNames, "TupleElementNames(new string[] { null})").WithLocation(15, 36), + Diagnostic(ErrorCode.ERR_ExplicitTupleElementNamesAttribute, "TupleElementNames(new string[] { null})").WithLocation(15, 36), // (20,6): error CS0592: Attribute 'TupleElementNames' is not valid on this declaration type. It is only valid on 'class, struct, property, indexer, field, parameter, return' declarations. // [TupleElementNames(new[] { "y" })] Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "TupleElementNames").WithArguments("TupleElementNames", "class, struct, property, indexer, field, parameter, return").WithLocation(20, 6), // (27,6): error CS8208: Cannot reference 'System.Runtime.CompilerServices.TupleElementNamesAttribute' explicitly. Use the tuple syntax to define tuple names. // [TupleElementNames(new[] { "a", "b" })] - Diagnostic(ErrorCode.ERR_ExplicitTupleElementNames, @"TupleElementNames(new[] { ""a"", ""b"" })").WithLocation(27, 6), + Diagnostic(ErrorCode.ERR_ExplicitTupleElementNamesAttribute, @"TupleElementNames(new[] { ""a"", ""b"" })").WithLocation(27, 6), // (28,33): error CS8208: Cannot reference 'System.Runtime.CompilerServices.TupleElementNamesAttribute' explicitly. Use the tuple syntax to define tuple names. // public (int x, int y) this[[TupleElementNames](int a, int b) t] => t; - Diagnostic(ErrorCode.ERR_ExplicitTupleElementNames, "TupleElementNames").WithLocation(28, 33), + Diagnostic(ErrorCode.ERR_ExplicitTupleElementNamesAttribute, "TupleElementNames").WithLocation(28, 33), // (8,6): error CS8208: Cannot reference 'System.Runtime.CompilerServices.TupleElementNamesAttribute' explicitly. Use the tuple syntax to define tuple names. // [TupleElementNames(new string[] { null, null })] - Diagnostic(ErrorCode.ERR_ExplicitTupleElementNames, "TupleElementNames(new string[] { null, null })").WithLocation(8, 6)); + Diagnostic(ErrorCode.ERR_ExplicitTupleElementNamesAttribute, "TupleElementNames(new string[] { null, null })").WithLocation(8, 6)); } } } diff --git a/src/Compilers/VisualBasic/Portable/Errors/Errors.vb b/src/Compilers/VisualBasic/Portable/Errors/Errors.vb index 7e21b11f60fa9733a426362e55e4c7bff42c67bf..24eac9e10bda09849432c39c98fb07f17657c8db 100644 --- a/src/Compilers/VisualBasic/Portable/Errors/Errors.vb +++ b/src/Compilers/VisualBasic/Portable/Errors/Errors.vb @@ -1703,8 +1703,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic ERR_ValueTupleTypeRefResolutionError = 37267 ERR_TupleElementNamesAttributeMissing = 37268 - ERR_ExplicitTupleElementNames = 37269 - + ERR_ExplicitTupleElementNamesAttribute = 37269 '// WARNINGS BEGIN HERE WRN_UseOfObsoleteSymbol2 = 40000 diff --git a/src/Compilers/VisualBasic/Portable/Symbols/Source/SourceEventSymbol.vb b/src/Compilers/VisualBasic/Portable/Symbols/Source/SourceEventSymbol.vb index 6b5dda094a44483c2dc438983e4c6f23508f3c42..370053d0738ee767f8c503b29ab33490636f5c69 100644 --- a/src/Compilers/VisualBasic/Portable/Symbols/Source/SourceEventSymbol.vb +++ b/src/Compilers/VisualBasic/Portable/Symbols/Source/SourceEventSymbol.vb @@ -645,7 +645,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Symbols Dim attrData = arguments.Attribute If attrData.IsTargetAttribute(Me, AttributeDescription.TupleElementNamesAttribute) Then - arguments.Diagnostics.Add(ERRID.ERR_ExplicitTupleElementNames, arguments.AttributeSyntaxOpt.Location) + arguments.Diagnostics.Add(ERRID.ERR_ExplicitTupleElementNamesAttribute, arguments.AttributeSyntaxOpt.Location) End If If attrData.IsTargetAttribute(Me, AttributeDescription.NonSerializedAttribute) Then diff --git a/src/Compilers/VisualBasic/Portable/Symbols/Source/SourceFieldSymbol.vb b/src/Compilers/VisualBasic/Portable/Symbols/Source/SourceFieldSymbol.vb index 94a8ec2213f64add4d7a70ac34a9d77773a42494..03c3222caa618db15888e070fa1d7e1cab2324bd 100644 --- a/src/Compilers/VisualBasic/Portable/Symbols/Source/SourceFieldSymbol.vb +++ b/src/Compilers/VisualBasic/Portable/Symbols/Source/SourceFieldSymbol.vb @@ -311,7 +311,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Symbols Debug.Assert(arguments.SymbolPart = AttributeLocation.None) If attrData.IsTargetAttribute(Me, AttributeDescription.TupleElementNamesAttribute) Then - arguments.Diagnostics.Add(ERRID.ERR_ExplicitTupleElementNames, arguments.AttributeSyntaxOpt.Location) + arguments.Diagnostics.Add(ERRID.ERR_ExplicitTupleElementNamesAttribute, arguments.AttributeSyntaxOpt.Location) End If If attrData.IsTargetAttribute(Me, AttributeDescription.SpecialNameAttribute) Then diff --git a/src/Compilers/VisualBasic/Portable/Symbols/Source/SourceMethodSymbol.vb b/src/Compilers/VisualBasic/Portable/Symbols/Source/SourceMethodSymbol.vb index ac15fe5a960def0c45d507d87b2d9cf992c24115..1cf7cdf40fb034c0a099190067aefcd004fb9bd0 100644 --- a/src/Compilers/VisualBasic/Portable/Symbols/Source/SourceMethodSymbol.vb +++ b/src/Compilers/VisualBasic/Portable/Symbols/Source/SourceMethodSymbol.vb @@ -1561,7 +1561,7 @@ lReportErrorOnTwoTokens: Debug.Assert(Not attrData.HasErrors) If attrData.IsTargetAttribute(Me, AttributeDescription.TupleElementNamesAttribute) Then - arguments.Diagnostics.Add(ERRID.ERR_ExplicitTupleElementNames, arguments.AttributeSyntaxOpt.Location) + arguments.Diagnostics.Add(ERRID.ERR_ExplicitTupleElementNamesAttribute, arguments.AttributeSyntaxOpt.Location) End If If arguments.SymbolPart = AttributeLocation.Return Then diff --git a/src/Compilers/VisualBasic/Portable/Symbols/Source/SourceModuleSymbol.vb b/src/Compilers/VisualBasic/Portable/Symbols/Source/SourceModuleSymbol.vb index 6aeead2ce8641df1a6601086efd66acd9ec95ef9..bb77d8cf58dd6cb8dfeccb6f75aaede60536fcab 100644 --- a/src/Compilers/VisualBasic/Portable/Symbols/Source/SourceModuleSymbol.vb +++ b/src/Compilers/VisualBasic/Portable/Symbols/Source/SourceModuleSymbol.vb @@ -1055,7 +1055,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Symbols Debug.Assert(arguments.SymbolPart = AttributeLocation.None) If attrData.IsTargetAttribute(Me, AttributeDescription.TupleElementNamesAttribute) Then - arguments.Diagnostics.Add(ERRID.ERR_ExplicitTupleElementNames, arguments.AttributeSyntaxOpt.Location) + arguments.Diagnostics.Add(ERRID.ERR_ExplicitTupleElementNamesAttribute, arguments.AttributeSyntaxOpt.Location) End If If attrData.IsTargetAttribute(Me, AttributeDescription.DefaultCharSetAttribute) Then diff --git a/src/Compilers/VisualBasic/Portable/Symbols/Source/SourceNamedTypeSymbol.vb b/src/Compilers/VisualBasic/Portable/Symbols/Source/SourceNamedTypeSymbol.vb index aded4c98f53279b580e1fe682f43e284140c82fd..8d0ec6a0213b01a8522af8708feb1370dcf0db35 100644 --- a/src/Compilers/VisualBasic/Portable/Symbols/Source/SourceNamedTypeSymbol.vb +++ b/src/Compilers/VisualBasic/Portable/Symbols/Source/SourceNamedTypeSymbol.vb @@ -2127,7 +2127,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Symbols ' If we start caching information about ComVisibleAttribute here, implementation of GetComVisibleState function should be changed accordingly. If attrData.IsTargetAttribute(Me, AttributeDescription.TupleElementNamesAttribute) Then - arguments.Diagnostics.Add(ERRID.ERR_ExplicitTupleElementNames, arguments.AttributeSyntaxOpt.Location) + arguments.Diagnostics.Add(ERRID.ERR_ExplicitTupleElementNamesAttribute, arguments.AttributeSyntaxOpt.Location) End If Dim decoded As Boolean = False diff --git a/src/Compilers/VisualBasic/Portable/Symbols/Source/SourceParameterSymbol.vb b/src/Compilers/VisualBasic/Portable/Symbols/Source/SourceParameterSymbol.vb index 53314dec1aead20a48e92f97755e68ea51af4f2e..4ccc333f1268ecfe63af07a6e47b93cdb39d47ea 100644 --- a/src/Compilers/VisualBasic/Portable/Symbols/Source/SourceParameterSymbol.vb +++ b/src/Compilers/VisualBasic/Portable/Symbols/Source/SourceParameterSymbol.vb @@ -291,7 +291,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Symbols ' - metadata flag set, no diagnostics reported, don't influence language semantics If attrData.IsTargetAttribute(Me, AttributeDescription.TupleElementNamesAttribute) Then - arguments.Diagnostics.Add(ERRID.ERR_ExplicitTupleElementNames, arguments.AttributeSyntaxOpt.Location) + arguments.Diagnostics.Add(ERRID.ERR_ExplicitTupleElementNamesAttribute, arguments.AttributeSyntaxOpt.Location) End If If attrData.IsTargetAttribute(Me, AttributeDescription.DefaultParameterValueAttribute) Then diff --git a/src/Compilers/VisualBasic/Portable/Symbols/Source/SourcePropertySymbol.vb b/src/Compilers/VisualBasic/Portable/Symbols/Source/SourcePropertySymbol.vb index d53b4d90546833235f54ca38289f7741bbd4827a..9387a60a8363c547ceb2afdbf804edebc97240a0 100644 --- a/src/Compilers/VisualBasic/Portable/Symbols/Source/SourcePropertySymbol.vb +++ b/src/Compilers/VisualBasic/Portable/Symbols/Source/SourcePropertySymbol.vb @@ -545,7 +545,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Symbols Dim attrData = arguments.Attribute If attrData.IsTargetAttribute(Me, AttributeDescription.TupleElementNamesAttribute) Then - arguments.Diagnostics.Add(ERRID.ERR_ExplicitTupleElementNames, arguments.AttributeSyntaxOpt.Location) + arguments.Diagnostics.Add(ERRID.ERR_ExplicitTupleElementNamesAttribute, arguments.AttributeSyntaxOpt.Location) End If If arguments.SymbolPart = AttributeLocation.Return Then diff --git a/src/Compilers/VisualBasic/Portable/VBResources.Designer.vb b/src/Compilers/VisualBasic/Portable/VBResources.Designer.vb index 2eea2a1e64ae4563deaff735300499644b56a2b8..9cc2c45e06e5852e63d91424f398621b1267dd2a 100644 --- a/src/Compilers/VisualBasic/Portable/VBResources.Designer.vb +++ b/src/Compilers/VisualBasic/Portable/VBResources.Designer.vb @@ -4460,9 +4460,9 @@ Namespace Microsoft.CodeAnalysis.VisualBasic ''' ''' Looks up a localized string similar to Cannot reference 'System.Runtime.CompilerServices.TupleElementNamesAttribute' explicitly. Use the tuple syntax to define tuple names.. ''' - Friend ReadOnly Property ERR_ExplicitTupleElementNames() As String + Friend ReadOnly Property ERR_ExplicitTupleElementNamesAttribute() As String Get - Return ResourceManager.GetString("ERR_ExplicitTupleElementNames", resourceCulture) + Return ResourceManager.GetString("ERR_ExplicitTupleElementNamesAttribute", resourceCulture) End Get End Property diff --git a/src/Compilers/VisualBasic/Portable/VBResources.resx b/src/Compilers/VisualBasic/Portable/VBResources.resx index 431a0ebf49e0fe56f78b513ca426b17ee06a5dea..9504bd36f2b61f9956ba470f968b61fa7217ae6b 100644 --- a/src/Compilers/VisualBasic/Portable/VBResources.resx +++ b/src/Compilers/VisualBasic/Portable/VBResources.resx @@ -5394,7 +5394,7 @@ Cannot define a class or member that utilizes tuples because the compiler required type '{0}' cannot be found. Are you missing a reference? - + Cannot reference 'System.Runtime.CompilerServices.TupleElementNamesAttribute' explicitly. Use the tuple syntax to define tuple names.