48 references to ERR_BadAttribute1
Microsoft.CodeAnalysis.VisualBasic (12)
Errors\ErrorFacts.vb (1)
147
ERRID.
ERR_BadAttribute1
,
Errors\MessageProvider.vb (2)
499
diagnostics.Add(ERRID.
ERR_BadAttribute1
, node.ArgumentList.Arguments(parameterIndex).GetLocation(), attribute.AttributeClass)
504
diagnostics.Add(ERRID.
ERR_BadAttribute1
, node.ArgumentList.Arguments(namedArgumentIndex).GetLocation(), attributeClass)
Symbols\Attributes\AttributeData.vb (2)
452
diagnostics.Add(ERRID.
ERR_BadAttribute1
, location, Me.AttributeClass)
460
diagnostics.Add(ERRID.
ERR_BadAttribute1
, location, Me.AttributeClass)
Symbols\Source\SourceAssemblySymbol.vb (1)
1136
diagnostics.Add(ERRID.
ERR_BadAttribute1
, VisualBasicAttributeData.GetArgumentLocation(nodeOpt, i), attrData.AttributeClass)
Symbols\Source\SourceFieldSymbol.vb (1)
734
diagnostics.Add(ERRID.
ERR_BadAttribute1
, VisualBasicAttributeData.GetFirstArgumentLocation(arguments.AttributeSyntaxOpt), attrData.AttributeClass)
Symbols\Source\SourceMethodSymbol.vb (4)
263
diagBag.Add(ERRID.
ERR_BadAttribute1
, syntax.LibraryName.GetLocation(), name)
272
diagBag.Add(ERRID.
ERR_BadAttribute1
, syntax.LibraryName.GetLocation(), name)
1650
diagnostics.Add(ERRID.
ERR_BadAttribute1
, VisualBasicAttributeData.GetFirstArgumentLocation(arguments.AttributeSyntaxOpt), attrData.AttributeClass)
1673
diagnostics.Add(ERRID.
ERR_BadAttribute1
, arguments.AttributeSyntaxOpt.ArgumentList.Arguments(position).GetLocation(), attrData.AttributeClass)
Symbols\Source\SourceModuleSymbol.vb (1)
1100
DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.
ERR_BadAttribute1
, VisualBasicAttributeData.GetFirstArgumentLocation(arguments.AttributeSyntaxOpt), attrData.AttributeClass)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (36)
Attributes\AttributeTests_MarshalAs.vb (22)
238
Diagnostic(ERRID.
ERR_BadAttribute1
, "CType(-1, UnmanagedType)").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"),
239
Diagnostic(ERRID.
ERR_BadAttribute1
, "CType(&H20000000, UnmanagedType)").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"))
320
Diagnostic(ERRID.
ERR_BadAttribute1
, "IidParameterIndex:=-1").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"),
321
Diagnostic(ERRID.
ERR_BadAttribute1
, "IidParameterIndex:=-1").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"),
322
Diagnostic(ERRID.
ERR_BadAttribute1
, "IidParameterIndex:=-1").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"),
323
Diagnostic(ERRID.
ERR_BadAttribute1
, "IidParameterIndex:=&H20000000").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"))
443
Diagnostic(ERRID.
ERR_BadAttribute1
, "SizeConst:=-1").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"),
444
Diagnostic(ERRID.
ERR_BadAttribute1
, "SizeParamIndex:=-1").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"),
445
Diagnostic(ERRID.
ERR_BadAttribute1
, "SizeConst:=-1").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"),
446
Diagnostic(ERRID.
ERR_BadAttribute1
, "SizeParamIndex:=-1").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"),
447
Diagnostic(ERRID.
ERR_BadAttribute1
, "SizeConst:=Int32.MaxValue").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"),
448
Diagnostic(ERRID.
ERR_BadAttribute1
, "SizeConst:=Int32.MaxValue / 4 + 1").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"),
449
Diagnostic(ERRID.
ERR_BadAttribute1
, "ArraySubType:=UnmanagedType.CustomMarshaler").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"),
451
Diagnostic(ERRID.
ERR_BadAttribute1
, "ArraySubType:=DirectCast(&H20000000, UnmanagedType)").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"),
452
Diagnostic(ERRID.
ERR_BadAttribute1
, "ArraySubType:=DirectCast((-1), UnmanagedType)").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"))
555
Diagnostic(ERRID.
ERR_BadAttribute1
, "SizeConst:=-1").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"),
559
Diagnostic(ERRID.
ERR_BadAttribute1
, "SizeConst:=&H20000000").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"))
812
Diagnostic(ERRID.
ERR_BadAttribute1
, "SizeConst:=-1").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"),
815
Diagnostic(ERRID.
ERR_BadAttribute1
, "SizeConst:=-1").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"),
817
Diagnostic(ERRID.
ERR_BadAttribute1
, "SizeConst:=(Int32.MaxValue - 3) / 4 + 1").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"),
930
Diagnostic(ERRID.
ERR_BadAttribute1
, "MarshalType:=""a"" & ChrW(&HDC00) & ""b""").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"),
931
Diagnostic(ERRID.
ERR_BadAttribute1
, "MarshalCookie:=""y"" & ChrW(&HDC00)").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"))
Attributes\AttributeTests_WellKnownAttributes.vb (14)
1077
Diagnostic(ERRID.
ERR_BadAttribute1
, "Nothing").WithArguments("System.Runtime.InteropServices.DllImportAttribute"),
1078
Diagnostic(ERRID.
ERR_BadAttribute1
, """""").WithArguments("System.Runtime.InteropServices.DllImportAttribute"),
1079
Diagnostic(ERRID.
ERR_BadAttribute1
, "EntryPoint:=Nothing").WithArguments("System.Runtime.InteropServices.DllImportAttribute"),
1080
Diagnostic(ERRID.
ERR_BadAttribute1
, "EntryPoint:=""""").WithArguments("System.Runtime.InteropServices.DllImportAttribute"),
1081
Diagnostic(ERRID.
ERR_BadAttribute1
, "Nothing").WithArguments("System.Runtime.InteropServices.DllImportAttribute"),
1082
Diagnostic(ERRID.
ERR_BadAttribute1
, "EntryPoint:=Nothing").WithArguments("System.Runtime.InteropServices.DllImportAttribute"),
1083
Diagnostic(ERRID.
ERR_BadAttribute1
, "ChrW(0)").WithArguments("System.Runtime.InteropServices.DllImportAttribute"),
1084
Diagnostic(ERRID.
ERR_BadAttribute1
, "ChrW(0) & ""b""").WithArguments("System.Runtime.InteropServices.DllImportAttribute"),
1085
Diagnostic(ERRID.
ERR_BadAttribute1
, """b"" & ChrW(0)").WithArguments("System.Runtime.InteropServices.DllImportAttribute"),
1086
Diagnostic(ERRID.
ERR_BadAttribute1
, """x"" & ChrW(0) & ""y""").WithArguments("System.Runtime.InteropServices.DllImportAttribute"),
1087
Diagnostic(ERRID.
ERR_BadAttribute1
, "EntryPoint:=""x"" & ChrW(0) & ""y""").WithArguments("System.Runtime.InteropServices.DllImportAttribute"),
1088
Diagnostic(ERRID.
ERR_BadAttribute1
, "ChrW(&HDC00)").WithArguments("System.Runtime.InteropServices.DllImportAttribute"),
1089
Diagnostic(ERRID.
ERR_BadAttribute1
, "ChrW(&HDC00) & ChrW(&HD800)").WithArguments("System.Runtime.InteropServices.DllImportAttribute"),
1090
Diagnostic(ERRID.
ERR_BadAttribute1
, "EntryPoint:=ChrW(&HDC00) & ChrW(&HD800)").WithArguments("System.Runtime.InteropServices.DllImportAttribute"))