5 overrides of GetAttributeArgumentLocation
Microsoft.CodeAnalysis.CSharp (5)
Symbols\Attributes\PEAttributeData.cs (1)
150
internal override Location
GetAttributeArgumentLocation
(int parameterIndex)
Symbols\Attributes\RetargetingAttributeData.cs (1)
80
internal override Location
GetAttributeArgumentLocation
(int parameterIndex) => _underlying.GetAttributeArgumentLocation(parameterIndex);
Symbols\Attributes\SourceAttributeData.cs (1)
165
internal override Location
GetAttributeArgumentLocation
(int parameterIndex)
Symbols\Source\SynthesizedAttributeData.cs (2)
54
internal override Location
GetAttributeArgumentLocation
(int parameterIndex) => NoLocation.Singleton;
87
internal override Location
GetAttributeArgumentLocation
(int parameterIndex) => _original.GetAttributeArgumentLocation(parameterIndex);
30 references to GetAttributeArgumentLocation
Microsoft.CodeAnalysis.CSharp (30)
Errors\MessageProvider.cs (3)
263
diagnostics.Add(ErrorCode.ERR_InvalidAttributeArgument, ((CSharpAttributeData)attribute).
GetAttributeArgumentLocation
(parameterIndex), node.GetErrorDisplayName());
280
diagnostics.Add(ErrorCode.ERR_MarshalUnmanagedTypeNotValidForFields, ((CSharpAttributeData)attribute).
GetAttributeArgumentLocation
(parameterIndex), unmanagedTypeName);
285
diagnostics.Add(ErrorCode.ERR_MarshalUnmanagedTypeOnlyValidForFields, ((CSharpAttributeData)attribute).
GetAttributeArgumentLocation
(parameterIndex), unmanagedTypeName);
Symbols\Attributes\AttributeData.cs (3)
590
diagnostics.Add(ErrorCode.ERR_InvalidAttributeArgument, this.
GetAttributeArgumentLocation
(0), nodeOpt != null ? nodeOpt.GetErrorDisplayName() : "");
616
diagnostics.Add(ErrorCode.ERR_InvalidAttributeArgument, this.
GetAttributeArgumentLocation
(0), node.GetErrorDisplayName());
632
Location attributeArgumentSyntaxLocation = this.
GetAttributeArgumentLocation
(0);
Symbols\Attributes\RetargetingAttributeData.cs (1)
80
internal override Location GetAttributeArgumentLocation(int parameterIndex) => _underlying.
GetAttributeArgumentLocation
(parameterIndex);
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
193
diagnostics.Add(ErrorCode.ERR_InvalidAttributeArgument, attribute.
GetAttributeArgumentLocation
(0), arguments.AttributeSyntaxOpt.GetErrorDisplayName());
Symbols\Source\SourceAssemblySymbol.cs (7)
2382
diagnostics.Add(ErrorCode.ERR_InvalidSignaturePublicKey, attribute.
GetAttributeArgumentLocation
(0));
2403
Location attributeArgumentSyntaxLocation = attribute.
GetAttributeArgumentLocation
(0);
2416
Location attributeArgumentSyntaxLocation = attribute.
GetAttributeArgumentLocation
(0);
2437
diagnostics.Add(ErrorCode.ERR_InvalidAssemblyCultureForExe, attribute.
GetAttributeArgumentLocation
(0));
2441
diagnostics.Add(ErrorCode.ERR_InvalidAssemblyCulture, attribute.
GetAttributeArgumentLocation
(0));
2468
diagnostics.Add(ErrorCode.ERR_InvalidVersionFormat2, attribute.
GetAttributeArgumentLocation
(0), verString ?? "<null>");
2605
diagnostics.Add(ErrorCode.ERR_InvalidAttributeArgument, attribute.
GetAttributeArgumentLocation
(i), (object)nodeOpt != null ? nodeOpt.GetErrorDisplayName() : "");
Symbols\Source\SourceMethodSymbolWithAttributes.cs (10)
760
diagnostics.Add(ErrorCode.ERR_BadArgumentToAttribute, attribute.
GetAttributeArgumentLocation
(0), node.GetErrorDisplayName());
854
diagnostics.Add(ErrorCode.ERR_InvalidAttributeArgument, attribute.
GetAttributeArgumentLocation
(0), arguments.AttributeSyntaxOpt.GetErrorDisplayName());
1180
diagnostics.Add(ErrorCode.ERR_InterceptorFilePathCannotBeNull, attributeData.
GetAttributeArgumentLocation
(filePathParameterIndex));
1194
diagnostics.Add(ErrorCode.ERR_InterceptorNonUniquePath, attributeData.
GetAttributeArgumentLocation
(filePathParameterIndex), normalizedPath);
1205
diagnostics.Add(ErrorCode.ERR_InterceptorNonUniquePath, attributeData.
GetAttributeArgumentLocation
(filePathParameterIndex), attributeFilePath);
1228
attributeData.
GetAttributeArgumentLocation
(filePathParameterIndex),
1234
diagnostics.Add(ErrorCode.ERR_InterceptorPathNotInCompilation, attributeData.
GetAttributeArgumentLocation
(filePathParameterIndex), normalizedPath);
1247
var location = attributeData.
GetAttributeArgumentLocation
(lineNumberZeroBased < 0 ? lineNumberParameterIndex : characterNumberParameterIndex);
1257
diagnostics.Add(ErrorCode.ERR_InterceptorLineOutOfRange, attributeData.
GetAttributeArgumentLocation
(lineNumberParameterIndex), referencedLineCount, lineNumberOneBased);
1265
diagnostics.Add(ErrorCode.ERR_InterceptorCharacterOutOfRange, attributeData.
GetAttributeArgumentLocation
(characterNumberParameterIndex), lineLength, characterNumberOneBased);
Symbols\Source\SourceModuleSymbol.cs (1)
573
((BindingDiagnosticBag)arguments.Diagnostics).Add(ErrorCode.ERR_InvalidAttributeArgument, attribute.
GetAttributeArgumentLocation
(0), arguments.AttributeSyntaxOpt.GetErrorDisplayName());
Symbols\Source\SourceNamedTypeSymbol.cs (3)
1214
diagnostics.Add(ErrorCode.ERR_InvalidInlineArrayLength, attribute.
GetAttributeArgumentLocation
(0));
1328
diagnosticsOpt.Add(ErrorCode.ERR_InvalidAttributeArgument, attribute.
GetAttributeArgumentLocation
(0), node.GetErrorDisplayName());
1408
diagnostics.Add(ErrorCode.ERR_BadArgumentToAttribute, attribute.
GetAttributeArgumentLocation
(0), node.GetErrorDisplayName());
Symbols\Symbol_Attributes.cs (1)
229
var attrArgumentLocation = arguments.Attribute.
GetAttributeArgumentLocation
(parameterIndex: 0);