79 references to List
Microsoft.CodeAnalysis.CSharp (13)
Syntax\SyntaxFactory.cs (13)
669return DocumentationCommentTrivia(SyntaxKind.SingleLineDocumentationCommentTrivia, List(content)) 680return XmlSummaryElement(List(content)); 794return XmlRemarksElement(List(content)); 812return XmlReturnsElement(List(content)); 830return XmlValueElement(List(content)); 849return XmlExceptionElement(cref, List(content)); 870return XmlPermissionElement(cref, List(content)); 890return XmlExampleElement(List(content)); 909return XmlParaElement(List(content)); 930return XmlParamElement(parameterName, List(content)); 982return XmlPlaceholderElement(List(content)); 2429return Block(List(statements)); 2435return Block(List(statements));
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
SyntaxListExtensions.cs (2)
19return SyntaxFactory.List(result); 23=> SyntaxFactory.List(sequence);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (9)
AddInheritdocCodeFixProvider.cs (1)
117content: List(new XmlNodeSyntax[]
AttributeGenerator.cs (1)
45: SyntaxFactory.List<AttributeListSyntax>(attributeDeclarations);
ConvertToRecordEngine.cs (3)
437return SyntaxFactory.List(result.Declaration.AttributeLists.SelectAsArray(attributeList => 634SyntaxFactory.List(propertyParamComments.Skip(1) 648SyntaxFactory.List(propertyParamComments.Skip(1)
CSharpSyntaxGeneratorInternal.cs (1)
92=> SyntaxFactory.InterpolatedStringExpression(startToken, SyntaxFactory.List(content.Cast<InterpolatedStringContentSyntax>()), endToken);
MethodGenerator.cs (1)
243return SyntaxFactory.List(listOfClauses);
MisplacedUsingDirectivesCodeFixProvider.cs (1)
201var compilationUnitWithoutUsings = compilationUnit.WithUsings(SyntaxFactory.List(compilationUnit.Usings.Where(u => u.GlobalKeyword != default)));
QueryExpressionSyntaxExtensions.cs (1)
42var clauses = SyntaxFactory.List(allClauses.Take(allClauses.Count() - 1).Cast<QueryClauseSyntax>());
Microsoft.CodeAnalysis.CSharp.Features (21)
AddInheritdocCodeFixProvider.cs (1)
117content: List(new XmlNodeSyntax[]
ChangeSignature\CSharpChangeSignatureService.cs (1)
832List<XmlAttributeSyntax>(new[] { XmlNameAttribute(parameter.Name) })),
ConvertBetweenRegularAndVerbatimString\ConvertBetweenRegularAndVerbatimInterpolatedStringCodeRefactoringProvider.cs (1)
75SyntaxFactory.List(newContents),
ConvertIfToSwitch\CSharpConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (1)
77sections: List(sectionList.Cast<SwitchSectionSyntax>()),
ConvertLinq\ConvertForEachToLinqQuery\AbstractConverter.cs (1)
63SyntaxFactory.List(ForEachInfo.ConvertingExtendedNodes.Select(node => CreateQueryClause(node))),
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (1)
601SyntaxFactory.List(statements),
ConvertToRecordEngine.cs (3)
437return SyntaxFactory.List(result.Declaration.AttributeLists.SelectAsArray(attributeList => 634SyntaxFactory.List(propertyParamComments.Skip(1) 648SyntaxFactory.List(propertyParamComments.Skip(1)
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.CallSiteContainerRewriter.cs (1)
295return SyntaxFactory.Block(SyntaxFactory.List(_statementsOrMemberOrAccessorToInsert.Cast<StatementSyntax>()));
InitializeParameter\CSharpInitializeMemberFromParameterCodeRefactoringProvider.cs (1)
92propertyDeclaration.AccessorList.WithAccessors(SyntaxFactory.List(accessors)));
InvertIf\CSharpInvertIfCodeRefactoringProvider.cs (3)
127? block.WithStatements(SyntaxFactory.List(statementArray)) 230return n.WithStatements(SyntaxFactory.List(statements)); 232return n.WithStatements(SyntaxFactory.List(statements));
MetadataAsSource\CSharpMetadataAsSourceService.cs (2)
169return SyntaxFactory.List(builder); 212var result = type.WithMembers(SyntaxFactory.List(builder));
MisplacedUsingDirectivesCodeFixProvider.cs (1)
201var compilationUnitWithoutUsings = compilationUnit.WithUsings(SyntaxFactory.List(compilationUnit.Usings.Where(u => u.GlobalKeyword != default)));
SplitStringLiteral\InterpolatedStringSplitter.cs (2)
69SyntaxFactory.List(beforeSplitContents), 75SyntaxFactory.List(afterSplitContents),
UseAutoProperty\CSharpUseAutoPropertyCodeFixProvider.cs (2)
169return SyntaxFactory.AccessorList(SyntaxFactory.List(Enumerable.Repeat(getter, 1))); 172return accessorList.WithAccessors(SyntaxFactory.List(GetAccessors(accessorList.Accessors)));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Syntax\SyntaxListTests.cs (2)
46var list = SyntaxFactory.List<SyntaxNode>( 260var list = SyntaxFactory.List<SyntaxNode>(
Microsoft.CodeAnalysis.CSharp.Workspaces (23)
AttributeGenerator.cs (1)
45: SyntaxFactory.List<AttributeListSyntax>(attributeDeclarations);
CodeGeneration\CSharpSyntaxGenerator.cs (17)
87SyntaxFactory.List(nodes), 100return SyntaxFactory.DocumentationCommentTrivia(documentationCommentTrivia.Kind(), SyntaxFactory.List(content), documentationCommentTrivia.EndOfComment); 119? SyntaxFactory.List(declarations.Select(this.AsUsingDirective).OfType<UsingDirectiveSyntax>()) 136? SyntaxFactory.List(declarations.Select(AsNamespaceMember).OfType<MemberDeclarationSyntax>()) 394SyntaxFactory.AccessorList(SyntaxFactory.List(accessors))); 433var list = SyntaxFactory.List(accessorDeclarations.Cast<AccessorDeclarationSyntax>()); 487SyntaxFactory.AccessorList(SyntaxFactory.List(accessors))); 556SyntaxFactory.AccessorList(SyntaxFactory.List(accessors))); 652=> accessorList.WithAccessors(SyntaxFactory.List(accessorList.Accessors.Select(x => WithBody(x)))); 667=> accessorList?.WithAccessors(SyntaxFactory.List(accessorList.Accessors.Select(WithoutBody))); 707? SyntaxFactory.List(members.Select(m => AsClassMember(m, className)).WhereNotNull()) 777? SyntaxFactory.List(members.Select(AsInterfaceMember).OfType<MemberDeclarationSyntax>()) 967return SyntaxFactory.List(attributes.Select(AsAttributeList)); 1085return SyntaxFactory.List( 2582SyntaxFactory.List(nodes.Select(n => AsAccessor(n, parentKind)).WhereNotNull())); 3141=> nodes == null ? default : SyntaxFactory.List(nodes.Select(AsStatement)); 3523catchClauses != null ? SyntaxFactory.List(catchClauses.Cast<CatchClauseSyntax>()) : default,
CSharpSyntaxGeneratorInternal.cs (1)
92=> SyntaxFactory.InterpolatedStringExpression(startToken, SyntaxFactory.List(content.Cast<InterpolatedStringContentSyntax>()), endToken);
MethodGenerator.cs (1)
243return SyntaxFactory.List(listOfClauses);
QueryExpressionSyntaxExtensions.cs (1)
42var clauses = SyntaxFactory.List(allClauses.Take(allClauses.Count() - 1).Cast<QueryClauseSyntax>());
SyntaxListExtensions.cs (2)
19return SyntaxFactory.List(result); 23=> SyntaxFactory.List(sequence);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (5)
CodeGeneration\SyntaxGeneratorTests.cs (1)
1445SyntaxFactory.List<AccessorDeclarationSyntax>(
Formatting\FormattingElasticTriviaTests.cs (3)
63members: SyntaxFactory.List<MemberDeclarationSyntax>( 174members: SyntaxFactory.List( 184members: SyntaxFactory.List(
Formatting\FormattingTests.cs (1)
4514SyntaxFactory.List(
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
CodeCleanup\Extensions.cs (2)
37var newMembers = CSharp.SyntaxFactory.List(node.RemoveMember<CSharp.Syntax.MemberDeclarationSyntax>(index)); 45var newMembers = CSharp.SyntaxFactory.List(node.AddMember<CSharp.Syntax.MemberDeclarationSyntax>(member, index));
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\CSharpCodeModelService.cs (2)
2336var updatedAccessorList = property.AccessorList.WithAccessors(SyntaxFactory.List<AccessorDeclarationSyntax>(updatedAccessors)); 2376var updatedAccessorList = property.AccessorList.WithAccessors(SyntaxFactory.List<AccessorDeclarationSyntax>(updatedAccessors));