4 writes to AttributeSyntaxOpt
Microsoft.CodeAnalysis.CSharp (2)
Symbols\Source\SourceAssemblySymbol.cs (1)
1340
arguments.
AttributeSyntaxOpt
= null;
Symbols\Symbol_Attributes.cs (1)
846
arguments.
AttributeSyntaxOpt
= attributeSyntax;
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\Source\SourceAssemblySymbol.vb (1)
340
arguments.
AttributeSyntaxOpt
= Nothing
Symbols\Symbol_Attributes.vb (1)
467
arguments.
AttributeSyntaxOpt
= attributeSyntax
202 references to AttributeSyntaxOpt
Microsoft.CodeAnalysis (32)
Symbols\Attributes\CommonAttributeData.cs (8)
364
Debug.Assert(arguments.
AttributeSyntaxOpt
is object);
383
messageProvider.ReportInvalidAttributeArgument(arguments.Diagnostics, arguments.
AttributeSyntaxOpt
, 0, attribute);
402
messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.
AttributeSyntaxOpt
, position, attribute.AttributeClass, "MethodCodeType");
425
Debug.Assert(arguments.
AttributeSyntaxOpt
is object);
444
messageProvider.ReportInvalidAttributeArgument(arguments.Diagnostics, arguments.
AttributeSyntaxOpt
, 0, attribute);
468
messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.
AttributeSyntaxOpt
, position, attribute.AttributeClass, namedArg.Key);
481
messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.
AttributeSyntaxOpt
, position, attribute.AttributeClass, namedArg.Key);
491
messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.
AttributeSyntaxOpt
, position, attribute.AttributeClass, namedArg.Key);
Symbols\Attributes\MarshalAsAttributeDecoder.cs (24)
22
Debug.Assert((object)arguments.
AttributeSyntaxOpt
!= null);
45
messageProvider.ReportMarshalUnmanagedTypeOnlyValidForFields(arguments.Diagnostics, arguments.
AttributeSyntaxOpt
, 0, "ByValArray", arguments.Attribute);
61
messageProvider.ReportMarshalUnmanagedTypeOnlyValidForFields(arguments.Diagnostics, arguments.
AttributeSyntaxOpt
, 0, "ByValTStr", arguments.Attribute);
73
messageProvider.ReportMarshalUnmanagedTypeNotValidForFields(arguments.Diagnostics, arguments.
AttributeSyntaxOpt
, 0, "VBByRefStr", arguments.Attribute);
87
messageProvider.ReportInvalidAttributeArgument(arguments.Diagnostics, arguments.
AttributeSyntaxOpt
, 0, arguments.Attribute);
116
Debug.Assert((object)arguments.
AttributeSyntaxOpt
!= null);
134
messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.
AttributeSyntaxOpt
, position, arguments.Attribute.AttributeClass, namedArg.Key);
150
messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.
AttributeSyntaxOpt
, position, arguments.Attribute.AttributeClass, namedArg.Key);
164
messageProvider.ReportAttributeParameterRequired(arguments.Diagnostics, arguments.
AttributeSyntaxOpt
, "MarshalType", "MarshalTypeRef");
176
Debug.Assert((object)arguments.
AttributeSyntaxOpt
!= null);
190
messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.
AttributeSyntaxOpt
, position, arguments.Attribute.AttributeClass, namedArg.Key);
209
Debug.Assert((object)arguments.
AttributeSyntaxOpt
!= null);
230
messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.
AttributeSyntaxOpt
, position, arguments.Attribute.AttributeClass, namedArg.Key);
240
messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.
AttributeSyntaxOpt
, position, arguments.Attribute.AttributeClass, namedArg.Key);
255
messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.
AttributeSyntaxOpt
, position, arguments.Attribute.AttributeClass, namedArg.Key);
262
messageProvider.ReportParameterNotValidForType(arguments.Diagnostics, arguments.
AttributeSyntaxOpt
, position);
287
Debug.Assert((object)arguments.
AttributeSyntaxOpt
!= null);
303
messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.
AttributeSyntaxOpt
, position, arguments.Attribute.AttributeClass, namedArg.Key);
317
messageProvider.ReportParameterNotValidForType(arguments.Diagnostics, arguments.
AttributeSyntaxOpt
, position);
337
messageProvider.ReportParameterNotValidForType(arguments.Diagnostics, arguments.
AttributeSyntaxOpt
, symbolIndex);
357
Debug.Assert((object)arguments.
AttributeSyntaxOpt
!= null);
371
messageProvider.ReportInvalidNamedArgument(arguments.Diagnostics, arguments.
AttributeSyntaxOpt
, position, arguments.Attribute.AttributeClass, namedArg.Key);
379
messageProvider.ReportParameterNotValidForType(arguments.Diagnostics, arguments.
AttributeSyntaxOpt
, position);
391
messageProvider.ReportAttributeParameterRequired(arguments.Diagnostics, arguments.
AttributeSyntaxOpt
, "SizeConst");
Microsoft.CodeAnalysis.CSharp (109)
Symbols\Attributes\AttributeData.cs (6)
242
DeclarativeSecurityAction action = DecodeSecurityAttributeAction(targetSymbol, compilation, arguments.
AttributeSyntaxOpt
, out hasErrors, (BindingDiagnosticBag)arguments.Diagnostics);
252
string? resolvedPathForFixup = DecodePermissionSetAttribute(compilation, arguments.
AttributeSyntaxOpt
, (BindingDiagnosticBag)arguments.Diagnostics);
267
Debug.Assert(arguments.
AttributeSyntaxOpt
is object);
268
((BindingDiagnosticBag)arguments.Diagnostics).Add(ErrorCode.ERR_IllegalUnsafe, arguments.
AttributeSyntaxOpt
.Location);
318
Debug.Assert(arguments.
AttributeSyntaxOpt
is object);
319
((BindingDiagnosticBag)arguments.Diagnostics).Add(ErrorCode.WRN_MemberNotNullBadMember, arguments.
AttributeSyntaxOpt
.Location, memberName);
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (7)
164
Debug.Assert((object)arguments.
AttributeSyntaxOpt
!= null);
184
diagnostics.Add(ErrorCode.ERR_StructOffsetOnBadField, arguments.
AttributeSyntaxOpt
.Name.Location);
192
CSharpSyntaxNode attributeArgumentSyntax = attribute.GetAttributeArgumentSyntax(0, arguments.
AttributeSyntaxOpt
);
193
diagnostics.Add(ErrorCode.ERR_InvalidAttributeArgument, attributeArgumentSyntax.Location, arguments.
AttributeSyntaxOpt
.GetErrorDisplayName());
280
diagnostics.Add(ErrorCode.ERR_FieldHasMultipleDistinctConstantValues, arguments.
AttributeSyntaxOpt
.Location);
285
diagnostics.Add(ErrorCode.ERR_FieldHasMultipleDistinctConstantValues, arguments.
AttributeSyntaxOpt
.Location);
301
diagnostics.Add(ErrorCode.ERR_FieldHasMultipleDistinctConstantValues, arguments.
AttributeSyntaxOpt
.Location);
Symbols\Source\SourceAssemblySymbol.cs (19)
2187
diagnostics.Add(ErrorCode.ERR_InvalidFwdType, GetAssemblyAttributeLocationForDiagnostic(arguments.
AttributeSyntaxOpt
));
2193
diagnostics.Add(useSiteInfo, useSiteInfo.DiagnosticInfo is object ? GetAssemblyAttributeLocationForDiagnostic(arguments.
AttributeSyntaxOpt
) : Location.None))
2202
diagnostics.Add(ErrorCode.ERR_ForwardedTypeInThisAssembly, GetAssemblyAttributeLocationForDiagnostic(arguments.
AttributeSyntaxOpt
), forwardedType);
2208
diagnostics.Add(ErrorCode.ERR_ForwardedTypeIsNested, GetAssemblyAttributeLocationForDiagnostic(arguments.
AttributeSyntaxOpt
), forwardedType, forwardedType.ContainingType);
2218
diagnostics.Add(ErrorCode.ERR_InvalidFwdType, GetAssemblyAttributeLocationForDiagnostic(arguments.
AttributeSyntaxOpt
));
2238
diagnostics.Add(ErrorCode.ERR_DuplicateTypeForwarder, GetAssemblyAttributeLocationForDiagnostic(arguments.
AttributeSyntaxOpt
), forwardedType);
2347
DecodeOneInternalsVisibleToAttribute(arguments.
AttributeSyntaxOpt
, attribute, diagnostics, index, ref _lazyInternalsVisibleToMap);
2356
diagnostics.Add(ErrorCode.ERR_InvalidSignaturePublicKey, attribute.GetAttributeArgumentSyntaxLocation(0, arguments.
AttributeSyntaxOpt
));
2377
Location attributeArgumentSyntaxLocation = attribute.GetAttributeArgumentSyntaxLocation(0, arguments.
AttributeSyntaxOpt
);
2390
Location attributeArgumentSyntaxLocation = attribute.GetAttributeArgumentSyntaxLocation(0, arguments.
AttributeSyntaxOpt
);
2411
diagnostics.Add(ErrorCode.ERR_InvalidAssemblyCultureForExe, attribute.GetAttributeArgumentSyntaxLocation(0, arguments.
AttributeSyntaxOpt
));
2415
diagnostics.Add(ErrorCode.ERR_InvalidAssemblyCulture, attribute.GetAttributeArgumentSyntaxLocation(0, arguments.
AttributeSyntaxOpt
));
2442
Location attributeArgumentSyntaxLocation = attribute.GetAttributeArgumentSyntaxLocation(0, arguments.
AttributeSyntaxOpt
);
2476
attribute.DecodeClassInterfaceAttribute(arguments.
AttributeSyntaxOpt
, diagnostics);
2480
ValidateIntegralAttributeNonNegativeArguments(attribute, arguments.
AttributeSyntaxOpt
, diagnostics);
2484
ValidateIntegralAttributeNonNegativeArguments(attribute, arguments.
AttributeSyntaxOpt
, diagnostics);
2488
attribute.DecodeGuidAttribute(arguments.
AttributeSyntaxOpt
, diagnostics);
2524
if ((object)arguments.
AttributeSyntaxOpt
!= null)
2527
diagnostics.Add(ErrorCode.ERR_ExplicitExtension, arguments.
AttributeSyntaxOpt
.Location);
Symbols\Source\SourceComplexParameterSymbol.cs (18)
728
Debug.Assert((object)arguments.
AttributeSyntaxOpt
!= null);
758
diagnostics.Add(ErrorCode.ERR_DefaultValueUsedWithAttributes, arguments.
AttributeSyntaxOpt
.Name.Location);
764
diagnostics.Add(ErrorCode.ERR_ExplicitParamArray, arguments.
AttributeSyntaxOpt
.Name.Location);
788
ValidateCallerLineNumberAttribute(arguments.
AttributeSyntaxOpt
, diagnostics);
792
ValidateCallerFilePathAttribute(arguments.
AttributeSyntaxOpt
, diagnostics);
796
ValidateCallerMemberNameAttribute(arguments.
AttributeSyntaxOpt
, diagnostics);
800
ValidateCallerArgumentExpressionAttribute(arguments.
AttributeSyntaxOpt
, attribute, diagnostics);
848
ValidateCancellationTokenAttribute(arguments.
AttributeSyntaxOpt
, (BindingDiagnosticBag)arguments.Diagnostics);
858
diagnostics.Add(ErrorCode.ERR_UnscopedRefAttributeUnsupportedTarget, arguments.
AttributeSyntaxOpt
.Location);
862
diagnostics.Add(ErrorCode.ERR_UnscopedScoped, arguments.
AttributeSyntaxOpt
.Location);
883
var syntax = arguments.
AttributeSyntaxOpt
;
1234
Debug.Assert(arguments.
AttributeSyntaxOpt
is not null);
1236
var errorLocation = arguments.
AttributeSyntaxOpt
.Location;
1277
diagnostics.Add(ErrorCode.ERR_NullInvalidInterpolatedStringHandlerArgumentName, arguments.
AttributeSyntaxOpt
!.Location);
1317
Debug.Assert(arguments.
AttributeSyntaxOpt
is not null);
1321
diagnostics.Add(ErrorCode.ERR_NullInvalidInterpolatedStringHandlerArgumentName, arguments.
AttributeSyntaxOpt
.Location);
1339
diagnostics.Add(ErrorCode.ERR_NotInstanceInvalidInterpolatedStringHandlerArgumentName, arguments.
AttributeSyntaxOpt
.Location, ContainingSymbol);
1350
diagnostics.Add(ErrorCode.ERR_InvalidInterpolatedStringHandlerArgumentName, arguments.
AttributeSyntaxOpt
.Location, name, ContainingSymbol);
Symbols\Source\SourceEventSymbol.cs (1)
312
diagnostics.Add(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, arguments.
AttributeSyntaxOpt
!.Location);
Symbols\Source\SourceFieldSymbol.cs (2)
115
Debug.Assert((object)arguments.
AttributeSyntaxOpt
!= null);
125
((BindingDiagnosticBag)arguments.Diagnostics).Add(ErrorCode.ERR_DoNotUseFixedBufferAttr, arguments.
AttributeSyntaxOpt
.Name.Location);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (28)
496
Debug.Assert((object)arguments.
AttributeSyntaxOpt
!= null);
524
ValidateConditionalAttribute(attribute, arguments.
AttributeSyntaxOpt
, diagnostics);
553
diagnostics.Add(ErrorCode.ERR_SecurityCriticalOrSecuritySafeCriticalOnAsync, arguments.
AttributeSyntaxOpt
.Location, arguments.
AttributeSyntaxOpt
.GetErrorDisplayName());
566
MessageID.IDS_FeatureMemberNotNull.CheckFeatureAvailability(diagnostics, arguments.
AttributeSyntaxOpt
);
571
MessageID.IDS_FeatureMemberNotNull.CheckFeatureAvailability(diagnostics, arguments.
AttributeSyntaxOpt
);
576
MessageID.IDS_FeatureModuleInitializers.CheckFeatureAvailability(diagnostics, arguments.
AttributeSyntaxOpt
);
591
diagnostics.Add(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, arguments.
AttributeSyntaxOpt
.Location);
640
diagnostics.Add(ErrorCode.ERR_AttributeNotOnEventAccessor, arguments.
AttributeSyntaxOpt
.Name.Location, description.FullName, attributeUsage.GetValidTargetsErrorArgument());
644
MessageID.IDS_FeatureObsoleteOnPropertyAccessor.CheckFeatureAvailability(diagnostics, arguments.
AttributeSyntaxOpt
);
721
Debug.Assert((object)arguments.
AttributeSyntaxOpt
!= null);
759
RoslynDebug.Assert(arguments.
AttributeSyntaxOpt
?.ArgumentList is object);
769
diagnostics.Add(ErrorCode.ERR_DllImportOnInvalidMethod, arguments.
AttributeSyntaxOpt
.Name.Location);
785
diagnostics.Add(ErrorCode.ERR_DllImportOnGenericMethod, arguments.
AttributeSyntaxOpt
.Name.Location);
793
CSharpSyntaxNode attributeArgumentSyntax = attribute.GetAttributeArgumentSyntax(0, arguments.
AttributeSyntaxOpt
);
794
diagnostics.Add(ErrorCode.ERR_InvalidAttributeArgument, attributeArgumentSyntax.Location, arguments.
AttributeSyntaxOpt
.GetErrorDisplayName());
823
diagnostics.Add(ErrorCode.ERR_InvalidNamedArgument, arguments.
AttributeSyntaxOpt
.ArgumentList.Arguments[position].Location, namedArg.Key);
885
Debug.Assert(arguments.
AttributeSyntaxOpt
is object);
890
diagnostics.Add(ErrorCode.ERR_ModuleInitializerMethodMustBeOrdinary, arguments.
AttributeSyntaxOpt
.Location);
900
diagnostics.Add(ErrorCode.ERR_ModuleInitializerMethodMustBeAccessibleOutsideTopLevelType, arguments.
AttributeSyntaxOpt
.Location, Name);
904
diagnostics.Add(arguments.
AttributeSyntaxOpt
, useSiteInfo);
908
diagnostics.Add(ErrorCode.ERR_ModuleInitializerMethodMustBeStaticParameterlessVoid, arguments.
AttributeSyntaxOpt
.Location, Name);
914
diagnostics.Add(ErrorCode.ERR_ModuleInitializerMethodAndContainingTypesMustNotBeGeneric, arguments.
AttributeSyntaxOpt
.Location, Name);
922
diagnostics.Add(ErrorCode.ERR_ModuleInitializerCannotBeUnmanagedCallersOnly, arguments.
AttributeSyntaxOpt
.Location);
926
if (!hasError && !CallsAreOmitted(arguments.
AttributeSyntaxOpt
.SyntaxTree))
934
Debug.Assert(arguments.
AttributeSyntaxOpt
!= null);
938
DecodeUnmanagedCallersOnlyAttributeData(this, arguments.Attribute, arguments.
AttributeSyntaxOpt
.Location, diagnostics);
940
bool reportedError = CheckAndReportValidUnmanagedCallersOnlyTarget(arguments.
AttributeSyntaxOpt
.Name.Location, diagnostics);
Symbols\Source\SourceModuleSymbol.cs (3)
507
Debug.Assert((object)arguments.
AttributeSyntaxOpt
!= null);
518
CSharpSyntaxNode attributeArgumentSyntax = attribute.GetAttributeArgumentSyntax(0, arguments.
AttributeSyntaxOpt
);
519
((BindingDiagnosticBag)arguments.Diagnostics).Add(ErrorCode.ERR_InvalidAttributeArgument, attributeArgumentSyntax.Location, arguments.
AttributeSyntaxOpt
.GetErrorDisplayName());
Symbols\Source\SourceNamedTypeSymbol.cs (7)
1056
Debug.Assert((object)arguments.
AttributeSyntaxOpt
!= null);
1065
DecodeAttributeUsageAttribute(attribute, arguments.
AttributeSyntaxOpt
, diagnose: true, diagnosticsOpt: diagnostics);
1077
ValidateConditionalAttribute(attribute, arguments.
AttributeSyntaxOpt
, diagnostics);
1081
arguments.GetOrCreateData<TypeWellKnownAttributeData>().GuidString = attribute.DecodeGuidAttribute(arguments.
AttributeSyntaxOpt
, diagnostics);
1106
attribute.DecodeClassInterfaceAttribute(arguments.
AttributeSyntaxOpt
, diagnostics);
1110
attribute.DecodeInterfaceTypeAttribute(arguments.
AttributeSyntaxOpt
, diagnostics);
1119
diagnostics.Add(ErrorCode.ERR_CantUseRequiredAttribute, arguments.
AttributeSyntaxOpt
.Name.Location);
Symbols\Source\SourcePropertySymbolBase.cs (6)
1238
Debug.Assert(arguments.
AttributeSyntaxOpt
!= null);
1250
ValidateIndexerNameAttribute(attribute, arguments.
AttributeSyntaxOpt
, diagnostics);
1267
diagnostics.Add(ErrorCode.ERR_ExplicitDynamicAttr, arguments.
AttributeSyntaxOpt
.Location);
1298
MessageID.IDS_FeatureMemberNotNull.CheckFeatureAvailability(diagnostics, arguments.
AttributeSyntaxOpt
);
1303
MessageID.IDS_FeatureMemberNotNull.CheckFeatureAvailability(diagnostics, arguments.
AttributeSyntaxOpt
);
1314
diagnostics.Add(ErrorCode.ERR_UnscopedRefAttributeUnsupportedMemberTarget, arguments.
AttributeSyntaxOpt
.Location);
Symbols\Source\SourceTypeParameterSymbol.cs (1)
423
Debug.Assert((object)arguments.
AttributeSyntaxOpt
!= null);
Symbols\Symbol.cs (7)
1393
diagnostics.Add(ErrorCode.ERR_ExplicitDynamicAttr, arguments.
AttributeSyntaxOpt
.Location);
1410
diagnostics.Add(ErrorCode.ERR_ExplicitTupleElementNamesAttribute, arguments.
AttributeSyntaxOpt
.Location);
1416
diagnostics.Add(ErrorCode.ERR_ExplicitNullableAttribute, arguments.
AttributeSyntaxOpt
.Location);
1434
diagnostics.Add(ErrorCode.ERR_ExplicitExtension, arguments.
AttributeSyntaxOpt
.Location);
1440
diagnostics.Add(ErrorCode.ERR_ExplicitRequiredMember, arguments.
AttributeSyntaxOpt
.Location);
1446
diagnostics.Add(ErrorCode.ERR_ExplicitScopedRef, arguments.
AttributeSyntaxOpt
.Location);
1463
diagnostics.Add(ErrorCode.ERR_ExplicitReservedAttr, arguments.
AttributeSyntaxOpt
.Location, attributeDescription.FullName);
Symbols\Symbol_Attributes.cs (2)
217
Debug.Assert(arguments.
AttributeSyntaxOpt
is not null);
221
arguments.Diagnostics.DiagnosticBag.Add(ErrorCode.ERR_ExplicitReservedAttr, arguments.
AttributeSyntaxOpt
.Location, AttributeDescription.CompilerFeatureRequiredAttribute.FullName);
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (2)
124
Debug.Assert((object)arguments.
AttributeSyntaxOpt
!= null);
134
((BindingDiagnosticBag)arguments.Diagnostics).Add(ErrorCode.ERR_DoNotUseFixedBufferAttrOnProperty, arguments.
AttributeSyntaxOpt
.Name.Location);
Microsoft.CodeAnalysis.VisualBasic (61)
Symbols\Attributes\AttributeData.vb (3)
193
Dim action As DeclarativeSecurityAction = Me.DecodeSecurityAttributeAction(targetSymbol, compilation, arguments.
AttributeSyntaxOpt
, hasErrors, DirectCast(arguments.Diagnostics, BindingDiagnosticBag))
399
Dim argSyntaxLocation As Location = If(arguments.
AttributeSyntaxOpt
IsNot Nothing,
400
arguments.
AttributeSyntaxOpt
.ArgumentList.Arguments(1).GetLocation(),
Symbols\Source\SourceAssemblySymbol.vb (11)
1001
ProcessOneInternalsVisibleToAttribute(arguments.
AttributeSyntaxOpt
, attrData, diagnostics)
1007
diagnostics.Add(ERRID.ERR_InvalidSignaturePublicKey, GetAssemblyAttributeFirstArgumentLocation(arguments.
AttributeSyntaxOpt
))
1020
diagnostics.Add(ERRID.ERR_InvalidVersionFormat, GetAssemblyAttributeFirstArgumentLocation(arguments.
AttributeSyntaxOpt
))
1027
diagnostics.Add(ERRID.WRN_InvalidVersionFormat, GetAssemblyAttributeFirstArgumentLocation(arguments.
AttributeSyntaxOpt
))
1041
diagnostics.Add(ERRID.ERR_InvalidAssemblyCultureForExe, GetAssemblyAttributeFirstArgumentLocation(arguments.
AttributeSyntaxOpt
))
1043
diagnostics.Add(ERRID.ERR_InvalidAssemblyCulture, GetAssemblyAttributeFirstArgumentLocation(arguments.
AttributeSyntaxOpt
))
1060
diagnostics.Add(ERRID.ERR_InvalidVersionFormat2, GetAssemblyAttributeFirstArgumentLocation(arguments.
AttributeSyntaxOpt
))
1069
attrData.DecodeClassInterfaceAttribute(arguments.
AttributeSyntaxOpt
, diagnostics)
1071
ValidateIntegralAttributeNonNegativeArguments(attrData, arguments.
AttributeSyntaxOpt
, diagnostics)
1073
ValidateIntegralAttributeNonNegativeArguments(attrData, arguments.
AttributeSyntaxOpt
, diagnostics)
1075
attrData.DecodeGuidAttribute(arguments.
AttributeSyntaxOpt
, diagnostics)
Symbols\Source\SourceEventSymbol.vb (3)
652
Debug.Assert(arguments.
AttributeSyntaxOpt
IsNot Nothing)
656
DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.ERR_ExplicitTupleElementNamesAttribute, arguments.
AttributeSyntaxOpt
.Location)
666
DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.ERR_InvalidNonSerializedUsage, arguments.
AttributeSyntaxOpt
.GetLocation())
Symbols\Source\SourceFieldSymbol.vb (7)
711
Debug.Assert(arguments.
AttributeSyntaxOpt
IsNot Nothing)
718
diagnostics.Add(ERRID.ERR_ExplicitTupleElementNamesAttribute, arguments.
AttributeSyntaxOpt
.Location)
728
diagnostics.Add(ERRID.ERR_InvalidNonSerializedUsage, arguments.
AttributeSyntaxOpt
.GetLocation())
734
diagnostics.Add(ERRID.ERR_BadAttribute1, VisualBasicAttributeData.GetFirstArgumentLocation(arguments.
AttributeSyntaxOpt
), attrData.AttributeClass)
766
diagnostics.Add(ERRID.ERR_FieldHasMultipleDistinctConstantValues, arguments.
AttributeSyntaxOpt
.GetLocation())
769
diagnostics.Add(ERRID.ERR_FieldHasMultipleDistinctConstantValues, arguments.
AttributeSyntaxOpt
.GetLocation())
780
diagnostics.Add(ERRID.ERR_FieldHasMultipleDistinctConstantValues, arguments.
AttributeSyntaxOpt
.GetLocation())
Symbols\Source\SourceMethodSymbol.vb (11)
1574
DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.ERR_ExplicitTupleElementNamesAttribute, arguments.
AttributeSyntaxOpt
.Location)
1577
DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.ERR_UnmanagedCallersOnlyNotSupported, arguments.
AttributeSyntaxOpt
.Location)
1594
Debug.Assert(arguments.
AttributeSyntaxOpt
IsNot Nothing)
1604
diagnostics.Add(ERRID.ERR_ExtensionOnlyAllowedOnModuleSubOrFunction, arguments.
AttributeSyntaxOpt
.GetLocation())
1607
diagnostics.Add(ERRID.ERR_ExtensionMethodNotInModule, arguments.
AttributeSyntaxOpt
.GetLocation())
1644
If Not IsDllImportAttributeAllowed(arguments.
AttributeSyntaxOpt
, diagnostics) Then
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)
1731
diagnostics.Add(ERRID.WRN_AttributeNotSupportedInVB, arguments.
AttributeSyntaxOpt
.Location, AttributeDescription.ModuleInitializerAttribute.FullName)
1737
Binder.ReportDiagnostic(diagnostics, arguments.
AttributeSyntaxOpt
.GetLocation(), ERRID.ERR_SecurityCriticalAsync, "SecurityCritical")
1740
Binder.ReportDiagnostic(diagnostics, arguments.
AttributeSyntaxOpt
.GetLocation(), ERRID.ERR_SecurityCriticalAsync, "SecuritySafeCritical")
Symbols\Source\SourceModuleSymbol.vb (3)
1087
Debug.Assert(arguments.
AttributeSyntaxOpt
IsNot Nothing)
1094
DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.ERR_ExplicitTupleElementNamesAttribute, arguments.
AttributeSyntaxOpt
.Location)
1100
DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.ERR_BadAttribute1, VisualBasicAttributeData.GetFirstArgumentLocation(arguments.
AttributeSyntaxOpt
), attrData.AttributeClass)
Symbols\Source\SourceNamedTypeSymbol.vb (10)
2159
Debug.Assert(arguments.
AttributeSyntaxOpt
IsNot Nothing)
2172
diagnostics.Add(ERRID.ERR_ExplicitTupleElementNamesAttribute, arguments.
AttributeSyntaxOpt
.Location)
2197
diagnostics.Add(ERRID.ERR_DefaultEventNotFound1, arguments.
AttributeSyntaxOpt
.GetLocation(), eventName)
2258
Debug.Assert(arguments.
AttributeSyntaxOpt
IsNot Nothing)
2265
diagnostics.Add(ERRID.ERR_StructLayoutAttributeNotAllowed, arguments.
AttributeSyntaxOpt
.GetLocation(), Me)
2275
attrData.DecodeClassInterfaceAttribute(arguments.
AttributeSyntaxOpt
, diagnostics)
2278
attrData.DecodeInterfaceTypeAttribute(arguments.
AttributeSyntaxOpt
, diagnostics)
2281
attrData.DecodeGuidAttribute(arguments.
AttributeSyntaxOpt
, diagnostics)
2295
Debug.Assert(arguments.
AttributeSyntaxOpt
IsNot Nothing)
2296
diagnostics.Add(ERRID.ERR_CantUseRequiredAttribute, arguments.
AttributeSyntaxOpt
.GetLocation(), Me)
Symbols\Source\SourceParameterSymbol.vb (5)
343
DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.ERR_ExplicitTupleElementNamesAttribute, arguments.
AttributeSyntaxOpt
.Location)
364
DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.WRN_CallerArgumentExpressionAttributeSelfReferential, arguments.
AttributeSyntaxOpt
.Location, Me.Name)
366
DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.WRN_CallerArgumentExpressionAttributeHasInvalidParameterName, arguments.
AttributeSyntaxOpt
.Location, Me.Name)
377
Debug.Assert(arguments.
AttributeSyntaxOpt
IsNot Nothing)
382
VerifyParamDefaultValueMatchesAttributeIfAny(value, arguments.
AttributeSyntaxOpt
, diagnostics)
Symbols\Source\SourcePropertySymbol.vb (4)
554
Debug.Assert(arguments.
AttributeSyntaxOpt
IsNot Nothing)
560
diagnostics.Add(ERRID.ERR_ExplicitTupleElementNamesAttribute, arguments.
AttributeSyntaxOpt
.Location)
571
diagnostics.Add(ERRID.WRN_ReturnTypeAttributeOnWriteOnlyProperty, arguments.
AttributeSyntaxOpt
.GetLocation())
592
diagnostics.Add(ERRID.WRN_DebuggerHiddenIgnoredOnProperties, arguments.
AttributeSyntaxOpt
.GetLocation())
Symbols\Symbol_Attributes.vb (4)
196
MarkEmbeddedAttributeTypeReference(arguments.Attribute, arguments.
AttributeSyntaxOpt
, compilation)
197
ReportExtensionAttributeUseSiteInfo(arguments.Attribute, arguments.
AttributeSyntaxOpt
, compilation, DirectCast(arguments.Diagnostics, BindingDiagnosticBag))
200
DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.WRN_AttributeNotSupportedInVB, arguments.
AttributeSyntaxOpt
.Location, AttributeDescription.SkipLocalsInitAttribute.FullName)
202
DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.ERR_DoNotUseCompilerFeatureRequired, arguments.
AttributeSyntaxOpt
.Location)