90 references to GetWithSeparators
Microsoft.CodeAnalysis (6)
Syntax\SeparatedSyntaxList.cs (4)
409var nodesWithSeps = this.GetWithSeparators(); 485var nodesWithSeps = this.GetWithSeparators(); 523return new SeparatedSyntaxList<TNode>(this.GetWithSeparators().Replace(nodeInList, newNode)); 571var nodesWithSeps = this.GetWithSeparators();
Syntax\SeparatedSyntaxListBuilder.cs (2)
88SyntaxNodeOrTokenList list = nodes.GetWithSeparators(); 97SyntaxNodeOrTokenList list = nodes.GetWithSeparators();
Microsoft.CodeAnalysis.CSharp (2)
Syntax\InternalSyntax\CSharpSyntaxRewriter.cs (1)
75var withSeps = (SyntaxList<CSharpSyntaxNode>)list.GetWithSeparators();
Syntax\SyntaxNodeRemover.cs (1)
209var withSeps = list.GetWithSeparators();
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
626var elements = initializer.Expressions.GetWithSeparators().SelectAsArray(
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (17)
src\Analyzers\CSharp\CodeFixes\PopulateSwitch\CSharpPopulateSwitchExpressionCodeFixProvider.cs (1)
44!switchNode.Arms.GetWithSeparators().LastOrDefault().IsNode)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (2)
331var elementsWithSeparators = elements.GetWithSeparators(); 405nodesAndTokens.AddRange(initialCollectionExpression.Elements.GetWithSeparators());
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (1)
164var originalArgumentListChildren = argumentList.Arguments.GetWithSeparators();
src\Analyzers\CSharp\CodeFixes\UseCollectionInitializer\CSharpUseCollectionInitializerCodeFixProvider_CollectionInitializer.cs (1)
77var nodeOrTokenList = nodes.GetWithSeparators();
src\Analyzers\CSharp\CodeFixes\UseDeconstruction\CSharpUseDeconstructionCodeFixProvider.cs (1)
168SeparatedList<ArgumentSyntax>(new SyntaxNodeOrTokenList(typeNode.Elements.GetWithSeparators().Select(ConvertTupleTypeElementComponent))),
src\Analyzers\CSharp\CodeFixes\UseObjectInitializer\UseInitializerHelpers.cs (1)
45foreach (var nodeOrToken in objectCreation.Initializer.Expressions.GetWithSeparators())
src\Analyzers\CSharp\CodeFixes\UseUnboundGenericTypeInNameOf\CSharpUseUnboundGenericTypeInNameOfCodeFixProvider.cs (1)
60var list = NodeOrTokenList(typeArgumentList.Arguments.GetWithSeparators().Select(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EnumMemberGenerator.cs (1)
27members.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)
1081var commaIndex = parameterList2.Parameters.GetWithSeparators().IndexOf(token); 1090var 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)
337var index = list.GetWithSeparators().IndexOf(token);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
344var argsAndCommas = tupleExpression.Arguments.GetWithSeparators(); 905var tokenIndex = argumentList.Arguments.GetWithSeparators().IndexOf(previousToken); 924var tokenIndex = attributeArgumentList.Arguments.GetWithSeparators().IndexOf(previousToken);
Microsoft.CodeAnalysis.CSharp.Features (18)
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())));
SignatureHelp\SignatureHelpUtilities.cs (4)
29list => list.Arguments.GetWithSeparators(); 31list => list.Arguments.GetWithSeparators(); 33e => e.Expressions.GetWithSeparators(); 35list => list.Arguments.GetWithSeparators();
SignatureHelp\TupleConstructionSignatureHelpProvider.cs (1)
28private static readonly Func<TupleExpressionSyntax, SyntaxNodeOrTokenList> s_getArgumentsWithSeparators = e => e.Arguments.GetWithSeparators();
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
626var elements = initializer.Expressions.GetWithSeparators().SelectAsArray(
src\Analyzers\CSharp\CodeFixes\PopulateSwitch\CSharpPopulateSwitchExpressionCodeFixProvider.cs (1)
44!switchNode.Arms.GetWithSeparators().LastOrDefault().IsNode)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (2)
331var elementsWithSeparators = elements.GetWithSeparators(); 405nodesAndTokens.AddRange(initialCollectionExpression.Elements.GetWithSeparators());
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (1)
164var originalArgumentListChildren = argumentList.Arguments.GetWithSeparators();
src\Analyzers\CSharp\CodeFixes\UseCollectionInitializer\CSharpUseCollectionInitializerCodeFixProvider_CollectionInitializer.cs (1)
77var nodeOrTokenList = nodes.GetWithSeparators();
src\Analyzers\CSharp\CodeFixes\UseDeconstruction\CSharpUseDeconstructionCodeFixProvider.cs (1)
168SeparatedList<ArgumentSyntax>(new SyntaxNodeOrTokenList(typeNode.Elements.GetWithSeparators().Select(ConvertTupleTypeElementComponent))),
src\Analyzers\CSharp\CodeFixes\UseObjectInitializer\UseInitializerHelpers.cs (1)
45foreach (var nodeOrToken in objectCreation.Initializer.Expressions.GetWithSeparators())
src\Analyzers\CSharp\CodeFixes\UseUnboundGenericTypeInNameOf\CSharpUseUnboundGenericTypeInNameOfCodeFixProvider.cs (1)
60var list = NodeOrTokenList(typeArgumentList.Arguments.GetWithSeparators().Select(
Microsoft.CodeAnalysis.CSharp.Workspaces (11)
Classification\Worker_Preprocesser.cs (1)
298foreach (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)
27members.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)
1081var commaIndex = parameterList2.Parameters.GetWithSeparators().IndexOf(token); 1090var 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)
337var index = list.GetWithSeparators().IndexOf(token);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
344var argsAndCommas = tupleExpression.Arguments.GetWithSeparators(); 905var tokenIndex = argumentList.Arguments.GetWithSeparators().IndexOf(previousToken); 924var 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)
219var last = _listItems.GetWithSeparators().Last(); 308var itemsAndSeparators = _listItems.GetWithSeparators(); 439var itemsAndSeparators = _listItems.GetWithSeparators();
Microsoft.CodeAnalysis.VisualBasic (1)
Syntax\SyntaxNodeRemover.vb (1)
141Dim withSeps = list.GetWithSeparators()
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (5)
src\Analyzers\VisualBasic\CodeFixes\UseObjectInitializer\UseInitializerHelpers.vb (2)
29nodesAndTokens.AddRange(memberInitializer.Initializers.GetWithSeparators()) 32nodesAndTokens.AddRange(collectionInitializer.Initializer.Initializers.GetWithSeparators())
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTokenExtensions.vb (1)
133For Each n In argumentList.Arguments.GetWithSeparators()
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (2)
205Dim argsAndCommas = tupleExpression.Arguments.GetWithSeparators() 1026Dim index = argumentList.Arguments.GetWithSeparators().IndexOf(previousToken)
Microsoft.CodeAnalysis.VisualBasic.Features (3)
ConvertAnonymousType\VisualBasicConvertAnonymousTypeToClassCodeRefactoringProvider.vb (1)
43Return SyntaxFactory.SeparatedList(Of ArgumentSyntax)(CreateArguments(initializers.GetWithSeparators()))
src\Analyzers\VisualBasic\CodeFixes\UseObjectInitializer\UseInitializerHelpers.vb (2)
29nodesAndTokens.AddRange(memberInitializer.Initializers.GetWithSeparators()) 32nodesAndTokens.AddRange(collectionInitializer.Initializer.Initializers.GetWithSeparators())
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (16)
TestSyntaxNodes.vb (16)
68Assert.Equal(argList, argList.Arguments.GetWithSeparators(1).Parent) 69Assert.Equal(argList, argList.Arguments.GetWithSeparators(3).Parent) 82Assert.Equal(children(2), argList.Arguments.GetWithSeparators(1)) 84Assert.Equal(children(4), argList.Arguments.GetWithSeparators(3)) 394Assert.Equal(New TextSpan(7, 1), argList.Arguments.GetWithSeparators(1).Span) 396Assert.Equal(New TextSpan(13, 1), argList.Arguments.GetWithSeparators(3).Span) 630Assert.Null(sepList.GetWithSeparators(3).Parent) 635Assert.Equal(",", sepList.GetWithSeparators(1).ToString) 636Assert.Equal(";", sepList.GetWithSeparators(3).ToString) 639Assert.Equal(4, sepList.GetWithSeparators(1).SpanStart) 641Assert.Equal(10, sepList.GetWithSeparators(3).SpanStart) 651Assert.Equal(statement, sepList.GetWithSeparators(3).Parent) 659Assert.Equal(",", sepList.GetWithSeparators(1).ToString) 660Assert.Equal(";", sepList.GetWithSeparators(3).ToString) 663Assert.Equal(9 + 4, sepList.GetWithSeparators(1).SpanStart) 665Assert.Equal(9 + 10, sepList.GetWithSeparators(3).SpanStart)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (5)
OrganizeImports\VisualBasicOrganizeImportsService.Rewriter.vb (1)
71Return String.Join(String.Empty, organizedList.GetWithSeparators().[Select](Function(t) t.ToFullString()))
Simplification\Reducers\VisualBasicExtensionMethodReducer.vb (1)
51Dim newArguments = SyntaxFactory.SeparatedList(Of ArgumentSyntax)(argumentList.Arguments.GetWithSeparators().AsEnumerable().Skip(2))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTokenExtensions.vb (1)
133For Each n In argumentList.Arguments.GetWithSeparators()
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (2)
205Dim argsAndCommas = tupleExpression.Arguments.GetWithSeparators() 1026Dim index = argumentList.Arguments.GetWithSeparators().IndexOf(previousToken)