15 overrides of AttributeLists
Microsoft.CodeAnalysis.CSharp (15)
Syntax.xml.Syntax.Generated.cs (12)
6170public override SyntaxList<AttributeListSyntax> AttributeLists => new SyntaxList<AttributeListSyntax>(GetRed(ref this.attributeLists, 0)); 9550public override SyntaxList<AttributeListSyntax> AttributeLists => new SyntaxList<AttributeListSyntax>(GetRed(ref this.attributeLists, 0)); 9671public override SyntaxList<AttributeListSyntax> AttributeLists => new SyntaxList<AttributeListSyntax>(GetRed(ref this.attributeLists, 0)); 10338public override SyntaxList<AttributeListSyntax> AttributeLists => new SyntaxList<AttributeListSyntax>(GetRed(ref this.attributeLists, 0)); 10504public override SyntaxList<AttributeListSyntax> AttributeLists => new SyntaxList<AttributeListSyntax>(GetRed(ref this.attributeLists, 0)); 10670public override SyntaxList<AttributeListSyntax> AttributeLists => new SyntaxList<AttributeListSyntax>(GetRed(ref this.attributeLists, 0)); 10836public override SyntaxList<AttributeListSyntax> AttributeLists => new SyntaxList<AttributeListSyntax>(GetRed(ref this.attributeLists, 0)); 11008public override SyntaxList<AttributeListSyntax> AttributeLists => new SyntaxList<AttributeListSyntax>(GetRed(ref this.attributeLists, 0)); 11147public override SyntaxList<AttributeListSyntax> AttributeLists => new SyntaxList<AttributeListSyntax>(GetRed(ref this.attributeLists, 0)); 11256public override SyntaxList<AttributeListSyntax> AttributeLists => new SyntaxList<AttributeListSyntax>(GetRed(ref this.attributeLists, 0)); 11336public override SyntaxList<AttributeListSyntax> AttributeLists => new SyntaxList<AttributeListSyntax>(GetRed(ref this.attributeLists, 0)); 13942public 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; }
137 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); 3048Assert.Equal(0, cs.AttributeLists.Count); 3100Assert.Equal(0, cs.AttributeLists.Count); 3161Assert.Equal(0, cs.AttributeLists.Count); 3226Assert.Equal(0, cs.AttributeLists.Count); 3300Assert.Equal(0, cs.AttributeLists.Count); 3365Assert.Equal(0, cs.AttributeLists.Count); 3417Assert.Equal(0, cs.AttributeLists.Count); 3463Assert.Equal(0, cs.AttributeLists.Count); 3544Assert.Equal(0, cs.AttributeLists.Count); 3579Assert.Equal(0, cs.AttributeLists.Count); 3626Assert.Equal(0, cs.AttributeLists.Count); 3663Assert.Equal(0, cs.AttributeLists.Count); 3723Assert.Equal(0, cs.AttributeLists.Count); 3763Assert.Equal(0, cs.AttributeLists.Count); 3817Assert.Equal(0, cs.AttributeLists.Count); 3873Assert.Equal(0, cs.AttributeLists.Count); 3918Assert.Equal(0, cs.AttributeLists.Count); 3962Assert.Equal(0, cs.AttributeLists.Count); 4007Assert.Equal(0, cs.AttributeLists.Count); 4061Assert.Equal(0, cs.AttributeLists.Count); 4124Assert.Equal(0, cs.AttributeLists.Count); 4170Assert.Equal(0, cs.AttributeLists.Count); 4224Assert.Equal(0, cs.AttributeLists.Count); 4279Assert.Equal(0, cs.AttributeLists.Count); 4352Assert.Equal(0, cs.AttributeLists.Count); 4406Assert.Equal(0, cs.AttributeLists.Count); 4544Assert.Equal(0, cs.AttributeLists.Count); 4600Assert.Equal(0, cs.AttributeLists.Count); 4656Assert.Equal(0, cs.AttributeLists.Count); 4740Assert.Equal(0, cs.AttributeLists.Count); 4796Assert.Equal(0, cs.AttributeLists.Count); 4850Assert.Equal(0, cs.AttributeLists.Count); 4933Assert.Equal(0, cs.AttributeLists.Count); 4990Assert.Equal(0, cs.AttributeLists.Count); 5057Assert.Equal(0, cs.AttributeLists.Count); 5125Assert.Equal(0, cs.AttributeLists.Count); 5192Assert.Equal(0, cs.AttributeLists.Count); 5268Assert.Equal(0, cs.AttributeLists.Count); 5336Assert.Equal(0, cs.AttributeLists.Count); 5416Assert.Equal(0, cs.AttributeLists.Count); 5530Assert.Equal(0, cs.AttributeLists.Count); 5593Assert.Equal(0, cs.AttributeLists.Count); 5641Assert.Equal(0, cs.AttributeLists.Count);
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
1199MemberDeclarationSyntax 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.DotNet.ApiDiff (1)
MemoryOutputDiffGenerator.cs (1)
512foreach (AttributeListSyntax attributeListNode in memberNode.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,