2 overrides of GetAttributes
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
1001public override IReadOnlyList<SyntaxNode> GetAttributes(SyntaxNode declaration)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
1554Public Overrides Function GetAttributes(declaration As SyntaxNode) As IReadOnlyList(Of SyntaxNode)
22 references to GetAttributes
Microsoft.CodeAnalysis.CSharp.Features (1)
Wrapping\SeparatedSyntaxList\CSharpParameterWrapper.cs (1)
59var attributes = generator.GetAttributes(declaration);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (10)
CodeGeneration\SyntaxGeneratorTests.cs (10)
224var attributes = Generator.GetAttributes(Generator.AddAttributes( 1968var initialAttributes = Generator.GetAttributes(declaration); 1972var attrsAdded = Generator.GetAttributes(withAttribute); 1976var attrsRemoved = Generator.GetAttributes(withoutAttribute); 1992var attrWithComment = Generator.GetAttributes(added).First(); 3842Assert.Equal(1, Generator.GetAttributes(xAttributed).Count); 3843Assert.Equal("[A]", Generator.GetAttributes(xAttributed)[0].ToString()); 4131var attrs = Generator.GetAttributes(declC); 4310Assert.Equal(0, Generator.GetAttributes(declM).Count); 4402var attrs = Generator.GetAttributes(declM);
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Wrapping\SeparatedSyntaxList\VisualBasicParameterWrapper.vb (1)
50Dim attributes = generator.GetAttributes(declaration)
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (8)
CodeGeneration\SyntaxGeneratorTests.vb (8)
819Assert.Equal("<MyAttribute>", Generator.GetAttributes(decl).Single().ToString()) 2287Dim initialAttributes = Generator.GetAttributes(declaration) 2291Dim attrsAdded = Generator.GetAttributes(withAttribute) 2295Dim attrsRemoved = Generator.GetAttributes(withoutAttribute) 2321Dim attrWithComment = Generator.GetAttributes(added).First() 3533Assert.Equal(1, Generator.GetAttributes(xAttributed).Count) 3534Assert.Equal("<A>", Generator.GetAttributes(xAttributed)(0).ToString()) 3730Dim attrs = Generator.GetAttributes(declC)
Microsoft.CodeAnalysis.Workspaces (2)
Editing\SyntaxGenerator.cs (2)
1048=> RemoveNodes(declaration, GetAttributes(declaration).Concat(GetReturnAttributes(declaration))); 1105=> this.InsertAttributes(declaration, this.GetAttributes(declaration).Count, attributes);