Base:
method
GetAttributes
Microsoft.CodeAnalysis.CSharp.Symbol.GetAttributes()
1 override of GetAttributes
Microsoft.CodeAnalysis.CSharp (1)
Lowering\SynthesizedMethodBaseSymbol.cs (1)
150
public sealed override ImmutableArray<CSharpAttributeData>
GetAttributes
()
15 references to GetAttributes
Microsoft.CodeAnalysis.CSharp (5)
Lowering\SynthesizedMethodBaseSymbol.cs (1)
152
Debug.Assert(base.
GetAttributes
().IsEmpty);
Symbols\Source\LambdaSymbol.cs (1)
288
GetAttributes
();
Symbols\Source\LocalFunctionSymbol.cs (1)
124
GetAttributes
();
Symbols\Source\SourceMemberMethodSymbol.cs (1)
903
GetAttributes
();
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
457
_ = this.
GetAttributes
();
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenLocalFunctionTests.cs (2)
5752
Assert.Equal(new[] { "DllImportAttribute" }, GetAttributeNames(localFunction.
GetAttributes
()));
5827
Assert.Equal(new[] { "DllImportAttribute" }, GetAttributeNames(localFunction.
GetAttributes
()));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (7)
OverloadResolutionPriorityTests.cs (1)
983
_ = ctor.
GetAttributes
();
Semantics\PrimaryConstructorTests.cs (6)
3224
Assert.Equal("A", c.PrimaryConstructor.
GetAttributes
().Single().ToString());
3445
Assert.Equal("A", c1.PrimaryConstructor.
GetAttributes
().Single().ToString());
3451
Assert.Equal("A", c2.PrimaryConstructor.
GetAttributes
().Single().ToString());
3507
Assert.Equal("A", c1.PrimaryConstructor.
GetAttributes
().Single().ToString());
3513
Assert.Equal("B", c2.PrimaryConstructor.
GetAttributes
().Single().ToString());
3537
Assert.Equal(@"A(""someParam"")", c.PrimaryConstructor.
GetAttributes
().Single().ToString());
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\TopLevelStatementsTests.cs (1)
6164
Assert.Equal(new[] { "DllImportAttribute" }, GetAttributeNames(localFunction.
GetAttributes
()));