18 references to ToSyntaxList
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
SyntaxListExtensions.cs (1)
26
=> list.Take(index).Concat(item).Concat(list.Skip(index)).
ToSyntaxList
();
UsingsAndExternAliasesOrganizer.cs (2)
137
.
ToSyntaxList
();
140
.
ToSyntaxList
();
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (15)
BaseNamespaceDeclarationSyntaxExtensions.cs (1)
29
var newNamespace = namespaceDeclaration.WithUsings(newUsings.
ToSyntaxList
());
CompilationUnitSyntaxExtensions.cs (1)
134
usings.Select(u => u.WithAdditionalAnnotations(annotations)).
ToSyntaxList
());
CSharpCodeGenerationService.cs (1)
470
return newAttributeLists.
ToSyntaxList
();
CSharpRemoveUnnecessaryImportsService.Rewriter.cs (1)
123
finalUsings = currentUsings.WhereNotNull().
ToSyntaxList
();
EventGenerator.cs (2)
73
return destination.WithMembers(members.
ToSyntaxList
());
147
return SyntaxFactory.AccessorList(accessors.WhereNotNull().
ToSyntaxList
());
FieldGenerator.cs (1)
64
return destination.WithMembers(members.
ToSyntaxList
());
ITypeParameterSymbolExtensions.cs (1)
31
return clauses.Count == 0 ? default : clauses.
ToSyntaxList
();
ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
100
TypeSyntax arrayTypeSyntax = SyntaxFactory.ArrayType(elementTypeSyntax, ranks.
ToSyntaxList
());
MethodGenerator.cs (3)
37
return destination.WithMembers(members.
ToSyntaxList
());
52
return destination.WithMembers(members.
ToSyntaxList
());
203
return attributes.
ToSyntaxList
();
NamespaceGenerator.cs (1)
146
return usingDirectives.
ToSyntaxList
();
PropertyGenerator.cs (1)
269
: SyntaxFactory.AccessorList(accessors.WhereNotNull().
ToSyntaxList
());
StatementGenerator.cs (1)
16
=> statements.OfType<StatementSyntax>().
ToSyntaxList
();