17 references to GetCustomAttributesForToken
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Metadata\PE\PEModuleSymbol.cs (1)
298var loaded = GetCustomAttributesForToken(token);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenOverridingAndHiding.cs (1)
4142var allAttributes = ((PEModuleSymbol)parameter.ContainingModule).GetCustomAttributesForToken(peParameter.Handle);
Emit\OptionalArgumentsTests.cs (1)
464var attribute = ((PEModuleSymbol)module).GetCustomAttributesForToken(field.Handle).Single();
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (9)
Attributes\AttributeTests_Assembly.cs (1)
1792var attributes = module.GetCustomAttributesForToken(token);
Attributes\AttributeTests_Synthesized.cs (7)
187var attributes = peModule.GetCustomAttributesForToken(token); 229Assert.Equal("CompilerGeneratedAttribute", peModule.GetCustomAttributesForToken(((PEMethodSymbol)p.GetMethod).Handle).Single().AttributeClass.Name); 230Assert.Equal("CompilerGeneratedAttribute", peModule.GetCustomAttributesForToken(((PEMethodSymbol)p.SetMethod).Handle).Single().AttributeClass.Name); 234Assert.Empty(peModule.GetCustomAttributesForToken(((PEMethodSymbol)q.GetMethod).Handle)); 235Assert.Empty(peModule.GetCustomAttributesForToken(((PEMethodSymbol)q.SetMethod).Handle)); 238Assert.Equal("CompilerGeneratedAttribute", peModule.GetCustomAttributesForToken(((PEMethodSymbol)e.AddMethod).Handle).Single().AttributeClass.Name); 239Assert.Equal("CompilerGeneratedAttribute", peModule.GetCustomAttributesForToken(((PEMethodSymbol)e.RemoveMethod).Handle).Single().AttributeClass.Name);
Attributes\WellKnownAttributesTestBase.cs (1)
93var allAttributes = ((PEModuleSymbol)parameter.ContainingModule).GetCustomAttributesForToken(peParameter.Handle);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Symbols\ExtensionMethodTests.cs (1)
2599var attr = ((PEModuleSymbol)module).GetCustomAttributesForToken(method.Handle).Single();
Symbols\IndexerTests.cs (1)
2140Assert.Empty(((PEModuleSymbol)module).GetCustomAttributesForToken(peIndexer.Handle));
Symbols\Metadata\PE\LoadingAttributes.cs (2)
1310Assert.Equal("System.Runtime.CompilerServices.DecimalConstantAttribute(0, 128, 0, 0, 7)", peModule.GetCustomAttributesForToken(field.Handle).Single().ToString()); 1314Assert.Equal("System.Runtime.CompilerServices.DecimalConstantAttribute(0, 128, 0, 0, 7)", peModule.GetCustomAttributesForToken(parameter.Handle).Single().ToString());
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
AttributeValidation.cs (1)
19var attributes = ((PEModuleSymbol)typeParameter.ContainingModule).GetCustomAttributesForToken(((PETypeParameterSymbol)typeParameter).Handle);