15 overrides of AttributeLists
Microsoft.CodeAnalysis.CSharp (15)
Syntax.xml.Syntax.Generated.cs (12)
6169public override SyntaxList<AttributeListSyntax> AttributeLists => new SyntaxList<AttributeListSyntax>(GetRed(ref this.attributeLists, 0)); 9549public override SyntaxList<AttributeListSyntax> AttributeLists => new SyntaxList<AttributeListSyntax>(GetRed(ref this.attributeLists, 0)); 9670public override SyntaxList<AttributeListSyntax> AttributeLists => new SyntaxList<AttributeListSyntax>(GetRed(ref this.attributeLists, 0)); 10337public override SyntaxList<AttributeListSyntax> AttributeLists => new SyntaxList<AttributeListSyntax>(GetRed(ref this.attributeLists, 0)); 10503public override SyntaxList<AttributeListSyntax> AttributeLists => new SyntaxList<AttributeListSyntax>(GetRed(ref this.attributeLists, 0)); 10669public override SyntaxList<AttributeListSyntax> AttributeLists => new SyntaxList<AttributeListSyntax>(GetRed(ref this.attributeLists, 0)); 10835public override SyntaxList<AttributeListSyntax> AttributeLists => new SyntaxList<AttributeListSyntax>(GetRed(ref this.attributeLists, 0)); 11007public override SyntaxList<AttributeListSyntax> AttributeLists => new SyntaxList<AttributeListSyntax>(GetRed(ref this.attributeLists, 0)); 11146public override SyntaxList<AttributeListSyntax> AttributeLists => new SyntaxList<AttributeListSyntax>(GetRed(ref this.attributeLists, 0)); 11255public override SyntaxList<AttributeListSyntax> AttributeLists => new SyntaxList<AttributeListSyntax>(GetRed(ref this.attributeLists, 0)); 11335public override SyntaxList<AttributeListSyntax> AttributeLists => new SyntaxList<AttributeListSyntax>(GetRed(ref this.attributeLists, 0)); 13938public override SyntaxList<AttributeListSyntax> AttributeLists => new SyntaxList<AttributeListSyntax>(GetRed(ref this.attributeLists, 0));
Syntax\BaseFieldDeclarationSyntax.cs (1)
9public abstract override SyntaxList<AttributeListSyntax> AttributeLists { get; }
Syntax\BaseMethodDeclarationSyntax.cs (1)
9public abstract override SyntaxList<AttributeListSyntax> AttributeLists { get; }
Syntax\BasePropertyDeclarationSyntax.cs (1)
9public abstract override SyntaxList<AttributeListSyntax> AttributeLists { get; }
136 references to AttributeLists
Microsoft.CodeAnalysis.CSharp (10)
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
733else if (LookupPosition.IsInAttributeSpecification(_position, parent.AttributeLists))
Declarations\DeclarationTreeBuilder.cs (5)
590if (node.AttributeLists.Count > 0) 592diagnostics.Add(ErrorCode.ERR_BadModifiersOnNamespace, node.AttributeLists[0].GetLocation()); 691var declFlags = node.AttributeLists.Any() 712foreach (var attributeListSyntax in node.AttributeLists) 757var quickAttributes = GetQuickAttributes(node.AttributeLists);
Declarations\MergedTypeDeclaration.cs (1)
83attributesSyntaxList = ((TypeDeclarationSyntax)typeDecl).AttributeLists;
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
134AddAttributes(t.AttributeLists, attributes);
Symbols\Source\SourceEventSymbol.cs (1)
147return memberSyntax.AttributeLists;
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (1)
174GetSyntax().AttributeLists.Contains(attributeDeclarationSyntax))
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_TopLevelStatements.cs (2)
113if (typeDeclaration.AttributeLists.Count > 0) 128if (member.AttributeLists.Count > 0)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions_GetAttributes.cs (1)
15return member != null ? member.AttributeLists : [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
162MemberDeclarationSyntax memberDecl => memberDecl.AttributeLists,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
420typeDeclaration.AttributeLists,
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
160var finalAttributeLists = currentTypeDeclaration.AttributeLists.AddRange(
Microsoft.CodeAnalysis.CSharp.Features (6)
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (1)
103var methodTargetingAttributes = typeDeclaration.AttributeLists.Where(list => list.Target?.Identifier.ValueText == "method");
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_TopLevelStatements.cs (2)
113if (typeDeclaration.AttributeLists.Count > 0) 128if (member.AttributeLists.Count > 0)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
420typeDeclaration.AttributeLists,
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
160var finalAttributeLists = currentTypeDeclaration.AttributeLists.AddRange(
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
134AddAttributes(t.AttributeLists, attributes);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\SemanticModelAPITests.cs (1)
3588return SyntaxFactory.ParseCompilationUnit(source + " class X {}").Members.First().AsTypeDeclarationSyntax().AttributeLists.First().Attributes.First();
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (1)
4106return SyntaxFactory.ParseCompilationUnit(source + " class X {}").Members.First().AsTypeDeclarationSyntax().AttributeLists.First().Attributes.First();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (99)
Parsing\DeclarationParsingTests.cs (99)
782Assert.Equal(0, cs.AttributeLists.Count); 808Assert.Equal(0, cs.AttributeLists.Count); 835Assert.Equal(0, cs.AttributeLists.Count); 862Assert.Equal(0, cs.AttributeLists.Count); 889Assert.Equal(0, cs.AttributeLists.Count); 916Assert.Equal(0, cs.AttributeLists.Count); 943Assert.Equal(0, cs.AttributeLists.Count); 970Assert.Equal(1, cs.AttributeLists.Count); 971Assert.Equal("[attr]", cs.AttributeLists[0].ToString()); 997Assert.Equal(2, cs.AttributeLists.Count); 998Assert.Equal("[attr1]", cs.AttributeLists[0].ToString()); 999Assert.Equal("[attr2]", cs.AttributeLists[1].ToString()); 1025Assert.Equal(1, cs.AttributeLists.Count); 1026Assert.Equal("[attr1, attr2]", cs.AttributeLists[0].ToString()); 1052Assert.Equal(0, cs.AttributeLists.Count); 1083Assert.Equal(0, cs.AttributeLists.Count); 1115Assert.Equal(0, cs.AttributeLists.Count); 1157Assert.Equal(0, cs.AttributeLists.Count); 1218Assert.Equal(0, cs.AttributeLists.Count); 1262Assert.Equal(0, cs.AttributeLists.Count); 1303Assert.Equal(0, cs.AttributeLists.Count); 1344Assert.Equal(0, cs.AttributeLists.Count); 1400Assert.Equal(0, cs.AttributeLists.Count); 1455Assert.Equal(0, cs.AttributeLists.Count); 1501Assert.Equal(0, cs.AttributeLists.Count); 1545Assert.Equal(0, cs.AttributeLists.Count); 1605Assert.Equal(0, cs.AttributeLists.Count); 1630Assert.Equal(0, cs.AttributeLists.Count); 1660Assert.Equal(0, cs.AttributeLists.Count); 1692Assert.Equal(0, cs.AttributeLists.Count); 1717Assert.Equal(0, cs.AttributeLists.Count); 1732Assert.Equal(0, cs.AttributeLists.Count); 1757Assert.Equal(0, cs.AttributeLists.Count); 1772Assert.Equal(0, cs.AttributeLists.Count); 1798Assert.Equal(0, cs.AttributeLists.Count); 1813Assert.Equal(0, cs.AttributeLists.Count); 1839Assert.Equal(0, cs.AttributeLists.Count); 1854Assert.Equal(0, cs.AttributeLists.Count); 1881Assert.Equal(0, cs.AttributeLists.Count); 1896Assert.Equal(0, cs.AttributeLists.Count); 1923Assert.Equal(0, cs.AttributeLists.Count); 1938Assert.Equal(0, cs.AttributeLists.Count); 1964Assert.Equal(0, cs.AttributeLists.Count); 1979Assert.Equal(0, cs.AttributeLists.Count); 2443Assert.Equal(0, cs.AttributeLists.Count); 2485Assert.Equal(0, cs.AttributeLists.Count); 2531Assert.Equal(0, cs.AttributeLists.Count); 2577Assert.Equal(0, cs.AttributeLists.Count); 2622Assert.Equal(0, cs.AttributeLists.Count); 2652Assert.Equal(0, cs.AttributeLists.Count); 2680Assert.Equal(0, cs.AttributeLists.Count); 2748Assert.Equal(0, cs.AttributeLists.Count); 2795Assert.Equal(0, structDecl.AttributeLists.Count); 2842Assert.Equal(0, structDecl.AttributeLists.Count); 2892Assert.Equal(0, structDecl.AttributeLists.Count); 2933Assert.Equal(0, structDecl.AttributeLists.Count); 2994Assert.Equal(0, cs.AttributeLists.Count); 3046Assert.Equal(0, cs.AttributeLists.Count); 3107Assert.Equal(0, cs.AttributeLists.Count); 3172Assert.Equal(0, cs.AttributeLists.Count); 3246Assert.Equal(0, cs.AttributeLists.Count); 3311Assert.Equal(0, cs.AttributeLists.Count); 3363Assert.Equal(0, cs.AttributeLists.Count); 3409Assert.Equal(0, cs.AttributeLists.Count); 3490Assert.Equal(0, cs.AttributeLists.Count); 3525Assert.Equal(0, cs.AttributeLists.Count); 3572Assert.Equal(0, cs.AttributeLists.Count); 3609Assert.Equal(0, cs.AttributeLists.Count); 3669Assert.Equal(0, cs.AttributeLists.Count); 3709Assert.Equal(0, cs.AttributeLists.Count); 3763Assert.Equal(0, cs.AttributeLists.Count); 3819Assert.Equal(0, cs.AttributeLists.Count); 3864Assert.Equal(0, cs.AttributeLists.Count); 3908Assert.Equal(0, cs.AttributeLists.Count); 3953Assert.Equal(0, cs.AttributeLists.Count); 4007Assert.Equal(0, cs.AttributeLists.Count); 4070Assert.Equal(0, cs.AttributeLists.Count); 4116Assert.Equal(0, cs.AttributeLists.Count); 4170Assert.Equal(0, cs.AttributeLists.Count); 4225Assert.Equal(0, cs.AttributeLists.Count); 4298Assert.Equal(0, cs.AttributeLists.Count); 4352Assert.Equal(0, cs.AttributeLists.Count); 4490Assert.Equal(0, cs.AttributeLists.Count); 4546Assert.Equal(0, cs.AttributeLists.Count); 4602Assert.Equal(0, cs.AttributeLists.Count); 4686Assert.Equal(0, cs.AttributeLists.Count); 4742Assert.Equal(0, cs.AttributeLists.Count); 4796Assert.Equal(0, cs.AttributeLists.Count); 4879Assert.Equal(0, cs.AttributeLists.Count); 4936Assert.Equal(0, cs.AttributeLists.Count); 5003Assert.Equal(0, cs.AttributeLists.Count); 5071Assert.Equal(0, cs.AttributeLists.Count); 5138Assert.Equal(0, cs.AttributeLists.Count); 5214Assert.Equal(0, cs.AttributeLists.Count); 5282Assert.Equal(0, cs.AttributeLists.Count); 5362Assert.Equal(0, cs.AttributeLists.Count); 5476Assert.Equal(0, cs.AttributeLists.Count); 5539Assert.Equal(0, cs.AttributeLists.Count); 5587Assert.Equal(0, cs.AttributeLists.Count);
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
1205MemberDeclarationSyntax memberDecl => memberDecl.AttributeLists,
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
236typeDeclaration.AttributeLists.Any(),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions_GetAttributes.cs (1)
15return member != null ? member.AttributeLists : [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
162MemberDeclarationSyntax memberDecl => memberDecl.AttributeLists,
Microsoft.VisualStudio.LanguageServices.CSharp (7)
CodeModel\CSharpCodeModelService.CodeModelEventCollector.cs (2)
572oldType.AttributeLists.AsReadOnlyList(), 573newType.AttributeLists.AsReadOnlyList(),
CodeModel\CSharpCodeModelService.cs (1)
309return GetAttributeNodes(baseType.AttributeLists);
CodeModel\CSharpCodeModelService.NodeLocator.cs (3)
323if (node.AttributeLists.Count == 0) 895if (node.AttributeLists.Count == 0) 900endPosition = node.AttributeLists.Last().GetLastToken().Span.End;
CodeModel\SyntaxNodeExtensions.cs (1)
23attributeLists = baseType.AttributeLists;
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions_GetAttributes.cs (1)
15return member != null ? member.AttributeLists : [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
162MemberDeclarationSyntax memberDecl => memberDecl.AttributeLists,