75 references to GetWithSeparators
Microsoft.CodeAnalysis (6)
Syntax\SeparatedSyntaxList.cs (4)
410var nodesWithSeps = this.GetWithSeparators(); 486var nodesWithSeps = this.GetWithSeparators(); 524return new SeparatedSyntaxList<TNode>(this.GetWithSeparators().Replace(nodeInList, newNode)); 572var nodesWithSeps = this.GetWithSeparators();
Syntax\SeparatedSyntaxListBuilder.cs (2)
88SyntaxNodeOrTokenList list = nodes.GetWithSeparators(); 97SyntaxNodeOrTokenList list = nodes.GetWithSeparators();
Microsoft.CodeAnalysis.CSharp (1)
Syntax\SyntaxNodeRemover.cs (1)
209var withSeps = list.GetWithSeparators();
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (2)
634var elements = initializer.Expressions.GetWithSeparators().SelectAsArray( 1209: SeparatedList<ArgumentSyntax>(initializer.Expressions.GetWithSeparators().Select(
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (18)
src\Analyzers\CSharp\CodeFixes\PopulateSwitch\CSharpPopulateSwitchExpressionCodeFixProvider.cs (1)
44!switchNode.Arms.GetWithSeparators().LastOrDefault().IsNode)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (2)
327var elementsWithSeparators = elements.GetWithSeparators(); 401nodesAndTokens.AddRange(initialCollectionExpression.Elements.GetWithSeparators());
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (1)
162var originalArgumentListChildren = argumentList.Arguments.GetWithSeparators();
src\Analyzers\CSharp\CodeFixes\UseCollectionInitializer\CSharpUseCollectionInitializerCodeFixProvider_CollectionInitializer.cs (1)
76var nodeOrTokenList = nodes.GetWithSeparators();
src\Analyzers\CSharp\CodeFixes\UseDeconstruction\CSharpUseDeconstructionCodeFixProvider.cs (1)
166SeparatedList<ArgumentSyntax>([.. typeNode.Elements.GetWithSeparators().Select(ConvertTupleTypeElementComponent)]),
src\Analyzers\CSharp\CodeFixes\UseExplicitArrayInExpressionTree\CSharpUseExplicitArrayInExpressionTreeCodeFixProvider.cs (1)
161var argumentsWithSeparators = argumentList.Arguments.GetWithSeparators();
src\Analyzers\CSharp\CodeFixes\UseObjectInitializer\UseInitializerHelpers.cs (1)
45foreach (var nodeOrToken in objectCreation.Initializer.Expressions.GetWithSeparators())
src\Analyzers\CSharp\CodeFixes\UseUnboundGenericTypeInNameOf\CSharpUseUnboundGenericTypeInNameOfCodeFixProvider.cs (1)
68var list = NodeOrTokenList(current.Arguments.GetWithSeparators().Select(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EnumMemberGenerator.cs (1)
26members.AddRange(destination.Members.GetWithSeparators());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
666foreach (var item in argumentList.Arguments.GetWithSeparators())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
1082var commaIndex = parameterList2.Parameters.GetWithSeparators().IndexOf(token); 1091var commaIndex = funcPtrParamList.Parameters.GetWithSeparators().IndexOf(token);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SeparatedSyntaxListExtensions.cs (1)
28: SyntaxFactory.SeparatedList<T>(newList.GetWithSeparators().Add(SyntaxFactory.Token(separator)));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.Indenter.cs (1)
333var index = list.GetWithSeparators().IndexOf(token);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
348var argsAndCommas = tupleExpression.Arguments.GetWithSeparators(); 921var tokenIndex = argumentList.Arguments.GetWithSeparators().IndexOf(previousToken); 940var tokenIndex = attributeArgumentList.Arguments.GetWithSeparators().IndexOf(previousToken);
Microsoft.CodeAnalysis.CSharp.Features (22)
Completion\CompletionProviders\AttributeNamedParameterCompletionProvider.cs (2)
113foreach (var item in argumentList.Arguments.GetWithSeparators()) 135foreach (var item in argumentList.Arguments.GetWithSeparators())
Completion\CompletionProviders\TupleNameCompletionProvider.cs (1)
85return (tupleExpr.Arguments.GetWithSeparators().IndexOf(context.TargetToken) + 1) / 2;
ConvertAnonymousType\CSharpConvertAnonymousTypeToClassCodeRefactoringProvider.cs (1)
48=> SyntaxFactory.SeparatedList<ArgumentSyntax>(CreateArguments(OmitTrailingComma(initializers.GetWithSeparators())));
ConvertToExtension\ConvertToExtensionCodeRefactoringProvider.cs (2)
299parameterList.Parameters.GetWithSeparators().Skip(2)))) 336extensionMethod.TypeParameterList.Parameters.GetWithSeparators().Skip(movedTypeParameterCount * 2)));
SignatureHelp\SignatureHelpUtilities.cs (4)
30list => list.Arguments.GetWithSeparators(); 32list => list.Arguments.GetWithSeparators(); 34e => e.Expressions.GetWithSeparators(); 36list => list.Arguments.GetWithSeparators();
SignatureHelp\TupleConstructionSignatureHelpProvider.cs (1)
29private static readonly Func<TupleExpressionSyntax, SyntaxNodeOrTokenList> s_getArgumentsWithSeparators = e => e.Arguments.GetWithSeparators();
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (2)
634var elements = initializer.Expressions.GetWithSeparators().SelectAsArray( 1209: SeparatedList<ArgumentSyntax>(initializer.Expressions.GetWithSeparators().Select(
src\Analyzers\CSharp\CodeFixes\PopulateSwitch\CSharpPopulateSwitchExpressionCodeFixProvider.cs (1)
44!switchNode.Arms.GetWithSeparators().LastOrDefault().IsNode)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (2)
327var elementsWithSeparators = elements.GetWithSeparators(); 401nodesAndTokens.AddRange(initialCollectionExpression.Elements.GetWithSeparators());
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (1)
162var originalArgumentListChildren = argumentList.Arguments.GetWithSeparators();
src\Analyzers\CSharp\CodeFixes\UseCollectionInitializer\CSharpUseCollectionInitializerCodeFixProvider_CollectionInitializer.cs (1)
76var nodeOrTokenList = nodes.GetWithSeparators();
src\Analyzers\CSharp\CodeFixes\UseDeconstruction\CSharpUseDeconstructionCodeFixProvider.cs (1)
166SeparatedList<ArgumentSyntax>([.. typeNode.Elements.GetWithSeparators().Select(ConvertTupleTypeElementComponent)]),
src\Analyzers\CSharp\CodeFixes\UseExplicitArrayInExpressionTree\CSharpUseExplicitArrayInExpressionTreeCodeFixProvider.cs (1)
161var argumentsWithSeparators = argumentList.Arguments.GetWithSeparators();
src\Analyzers\CSharp\CodeFixes\UseObjectInitializer\UseInitializerHelpers.cs (1)
45foreach (var nodeOrToken in objectCreation.Initializer.Expressions.GetWithSeparators())
src\Analyzers\CSharp\CodeFixes\UseUnboundGenericTypeInNameOf\CSharpUseUnboundGenericTypeInNameOfCodeFixProvider.cs (1)
68var list = NodeOrTokenList(current.Arguments.GetWithSeparators().Select(
Microsoft.CodeAnalysis.CSharp.Workspaces (11)
Classification\Worker_Preprocesser.cs (1)
302foreach (var nodeOrToken in node.ErrorCodes.GetWithSeparators())
Simplification\Reducers\CSharpExtensionMethodReducer.cs (1)
109var newArguments = SyntaxFactory.SeparatedList<ArgumentSyntax>(argumentList.Arguments.GetWithSeparators().AsEnumerable().Skip(2));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EnumMemberGenerator.cs (1)
26members.AddRange(destination.Members.GetWithSeparators());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
666foreach (var item in argumentList.Arguments.GetWithSeparators())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
1082var commaIndex = parameterList2.Parameters.GetWithSeparators().IndexOf(token); 1091var commaIndex = funcPtrParamList.Parameters.GetWithSeparators().IndexOf(token);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SeparatedSyntaxListExtensions.cs (1)
28: SyntaxFactory.SeparatedList<T>(newList.GetWithSeparators().Add(SyntaxFactory.Token(separator)));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.Indenter.cs (1)
333var index = list.GetWithSeparators().IndexOf(token);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
348var argsAndCommas = tupleExpression.Arguments.GetWithSeparators(); 921var tokenIndex = argumentList.Arguments.GetWithSeparators().IndexOf(previousToken); 940var tokenIndex = attributeArgumentList.Arguments.GetWithSeparators().IndexOf(previousToken);
Microsoft.CodeAnalysis.Features (5)
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (1)
718=> generator.SeparatedList<TArgumentSyntax>(ConvertArguments(generator, parameterNamingRule, isRecord, arguments.GetWithSeparators()));
Wrapping\SeparatedSyntaxList\AbstractSeparatedSyntaxListWrapper.cs (1)
79document, listItems.GetWithSeparators(), cancellationToken).ConfigureAwait(false);
Wrapping\SeparatedSyntaxList\SeparatedSyntaxListCodeActionComputer.cs (3)
218var last = _listItems.GetWithSeparators().Last(); 307var itemsAndSeparators = _listItems.GetWithSeparators(); 438var itemsAndSeparators = _listItems.GetWithSeparators();
Microsoft.CodeAnalysis.VisualBasic (1)
Syntax\SyntaxNodeRemover.vb (1)
136Dim withSeps = list.GetWithSeparators()
Roslyn.Diagnostics.CSharp.Analyzers (9)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EnumMemberGenerator.cs (1)
26members.AddRange(destination.Members.GetWithSeparators());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
666foreach (var item in argumentList.Arguments.GetWithSeparators())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
1082var commaIndex = parameterList2.Parameters.GetWithSeparators().IndexOf(token); 1091var commaIndex = funcPtrParamList.Parameters.GetWithSeparators().IndexOf(token);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SeparatedSyntaxListExtensions.cs (1)
28: SyntaxFactory.SeparatedList<T>(newList.GetWithSeparators().Add(SyntaxFactory.Token(separator)));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.Indenter.cs (1)
333var index = list.GetWithSeparators().IndexOf(token);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
348var argsAndCommas = tupleExpression.Arguments.GetWithSeparators(); 921var tokenIndex = argumentList.Arguments.GetWithSeparators().IndexOf(previousToken); 940var tokenIndex = attributeArgumentList.Arguments.GetWithSeparators().IndexOf(previousToken);