57 references to SeparatedList
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (4)
ArgumentFixer.vb (1)
29
Return oldArgumentList.WithArguments(SyntaxFactory.
SeparatedList
(newArguments))
TypeSyntaxGeneratorVisitor.vb (2)
91
SyntaxFactory.TypeArgumentList(SyntaxFactory.
SeparatedList
(symbol.TypeArguments.[Select](Function(t) t.Accept(Me)))))
140
Return SyntaxFactory.TupleType(SyntaxFactory.
SeparatedList
(
VisualBasicSyntaxGeneratorInternal.vb (1)
122
SyntaxFactory.
SeparatedList
(Of TypeParameterSyntax)(
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
CodeGen\CodeGenNullable.vb (1)
6792
SyntaxFactory.
SeparatedList
(Of ArgumentSyntax)(
Microsoft.CodeAnalysis.VisualBasic.Features (8)
ArgumentFixer.vb (1)
29
Return oldArgumentList.WithArguments(SyntaxFactory.
SeparatedList
(newArguments))
ExtractInterface\VisualBasicExtractInterfaceService.vb (1)
109
SyntaxFactory.TypeArgumentList(SyntaxFactory.
SeparatedList
(extractedInterfaceSymbol.TypeParameters.Select(Function(p) SyntaxFactory.ParseTypeName(p.Name))))),
ExtractMethod\Extensions.vb (1)
453
variableDeclarator.WithNames(SyntaxFactory.
SeparatedList
(identifierList)).
ExtractMethod\VisualBasicMethodExtractor.PostProcessor.vb (1)
90
SyntaxFactory.VariableDeclarator(SyntaxFactory.
SeparatedList
(variables)).WithAsClause(firstDeclaration.Declarators(0).AsClause))
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.CallSiteContainerRewriter.vb (1)
92
SyntaxFactory.
SeparatedList
(variableDeclarators)).WithPrependedLeadingTrivia(triviaList)
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.vb (3)
139
Return SyntaxFactory.
SeparatedList
(typeVariables)
269
SyntaxFactory.
SeparatedList
(variableDeclarators)).WithPrependedLeadingTrivia(triviaList)
338
methodName, SyntaxFactory.ArgumentList(arguments:=SyntaxFactory.
SeparatedList
(arguments)))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (10)
Syntax\ManualTests.vb (8)
160
Dim null1 = SyntaxFactory.
SeparatedList
(CType(Nothing, ParameterSyntax()))
166
Dim null2 = SyntaxFactory.
SeparatedList
(CType(Nothing, IEnumerable(Of ModifiedIdentifierSyntax)))
172
Dim empty1 = SyntaxFactory.
SeparatedList
(New TypeArgumentListSyntax() {})
178
Dim empty2 = SyntaxFactory.
SeparatedList
(Enumerable.Empty(Of TypeParameterSyntax)())
184
Dim singleton1 = SyntaxFactory.
SeparatedList
({SyntaxFactory.IdentifierName("a")})
190
Dim singleton2 = SyntaxFactory.
SeparatedList
(CType({SyntaxFactory.IdentifierName("x")}, IEnumerable(Of ExpressionSyntax)))
196
Dim list1 = SyntaxFactory.
SeparatedList
({SyntaxFactory.IdentifierName("a"), SyntaxFactory.IdentifierName("b"), SyntaxFactory.IdentifierName("c")})
207
Dim list2 = SyntaxFactory.
SeparatedList
(builder)
Syntax\SeparatedSyntaxListTests.vb (2)
19
Dim list = SyntaxFactory.
SeparatedList
(Of SyntaxNode)(New SyntaxNode() {
200
Dim list = SyntaxFactory.
SeparatedList
(New SyntaxNode() {
Microsoft.CodeAnalysis.VisualBasic.Workspaces (33)
CodeGeneration\ArgumentGenerator.vb (1)
18
Return SyntaxFactory.ArgumentList(arguments:=SyntaxFactory.
SeparatedList
(arguments.Select(AddressOf GenerateArgument)))
CodeGeneration\AttributeGenerator.vb (1)
54
Return SyntaxFactory.ArgumentList(SyntaxFactory.
SeparatedList
(arguments))
CodeGeneration\ConstructorGenerator.vb (1)
103
arguments:=SyntaxFactory.
SeparatedList
(constructor.Parameters.Select(Function(p) SyntaxFactory.SimpleArgument(SyntaxFactory.IdentifierName(p.Name))).OfType(Of ArgumentSyntax)))))
CodeGeneration\ExpressionGenerator.vb (1)
28
SyntaxFactory.
SeparatedList
(typedConstant.Values.Select(Function(v) GenerateExpression(generator, v))))
CodeGeneration\NamedTypeGenerator.vb (1)
221
Dim typeNodes = SyntaxFactory.
SeparatedList
(types)
CodeGeneration\ParameterGenerator.vb (2)
28
Return SyntaxFactory.ParameterList(SyntaxFactory.
SeparatedList
(result))
51
Dim argumentList = SyntaxFactory.ArgumentList(SyntaxFactory.
SeparatedList
(arguments))
CodeGeneration\TypeParameterGenerator.vb (2)
13
SyntaxFactory.TypeParameterList(parameters:=SyntaxFactory.
SeparatedList
(typeParameters.Select(AddressOf GenerateTypeParameter))))
57
constraints:=SyntaxFactory.
SeparatedList
(constraints))
CodeGeneration\VisualBasicCodeGenerationService.vb (1)
425
Dim newAttributes = SyntaxFactory.
SeparatedList
(attributes.Where(Function(a) a IsNot attributeToRemove))
CodeGeneration\VisualBasicSyntaxGenerator.vb (19)
105
Return SyntaxFactory.TupleExpression(SyntaxFactory.
SeparatedList
(arguments.Select(AddressOf AsSimpleArgument)))
202
SyntaxFactory.
SeparatedList
(typeArguments.Cast(Of TypeSyntax)()))).WithAdditionalAnnotations(Simplifier.Annotation)
310
SyntaxFactory.ArgumentList(SyntaxFactory.
SeparatedList
(arguments)))
336
Return SyntaxFactory.
SeparatedList
(Of ExpressionSyntax)(expressions.OfType(Of ExpressionSyntax)())
487
Return SyntaxFactory.
SeparatedList
(arguments.Select(AddressOf AsArgument))
518
SyntaxFactory.CaseStatement(SyntaxFactory.
SeparatedList
(labels.Cast(Of CaseClauseSyntax))),
591
Return SyntaxFactory.TupleType(SyntaxFactory.
SeparatedList
(elements.Cast(Of TupleElementSyntax)()))
605
Return SyntaxFactory.GenericName(sname.Identifier, SyntaxFactory.TypeArgumentList(SyntaxFactory.
SeparatedList
(typeArguments.Cast(Of TypeSyntax)())))
892
Return If(parameters IsNot Nothing, SyntaxFactory.ParameterList(SyntaxFactory.
SeparatedList
(parameters.Cast(Of ParameterSyntax)())), SyntaxFactory.ParameterList())
1045
parameterList:=SyntaxFactory.ParameterList(SyntaxFactory.
SeparatedList
(parameters.Cast(Of ParameterSyntax))),
1350
parameterList:=If(parameters IsNot Nothing, SyntaxFactory.ParameterList(SyntaxFactory.
SeparatedList
(parameters.Cast(Of ParameterSyntax)())), SyntaxFactory.ParameterList())),
1390
[implements]:=If(itypes IsNot Nothing, SyntaxFactory.SingletonList(SyntaxFactory.ImplementsStatement(SyntaxFactory.
SeparatedList
(itypes))), Nothing),
1427
[implements]:=If(itypes IsNot Nothing, SyntaxFactory.SingletonList(SyntaxFactory.ImplementsStatement(SyntaxFactory.
SeparatedList
(itypes))), Nothing),
1449
[inherits]:=If(itypes IsNot Nothing, SyntaxFactory.SingletonList(SyntaxFactory.InheritsStatement(SyntaxFactory.
SeparatedList
(itypes))), Nothing),
1629
Return SyntaxFactory.ArgumentList(SyntaxFactory.
SeparatedList
(arguments.Select(AddressOf AsArgument)))
1666
Return attrs.WithAttributes(SyntaxFactory.
SeparatedList
(attrs.Attributes.Select(AddressOf WithAssemblyTarget)))
1725
Return attrs.WithAttributes(SyntaxFactory.
SeparatedList
(attrs.Attributes.Select(AddressOf WithAssemblyTarget)))
2803
Dim typeParameterList = SyntaxFactory.TypeParameterList(SyntaxFactory.
SeparatedList
(typeParameterNodes.Cast(Of TypeParameterSyntax)))
2853
SyntaxFactory.ImplementsClause(SyntaxFactory.
SeparatedList
(interfaceMembers)))
Simplification\VisualBasicSimplificationService.Expander.vb (1)
692
SyntaxFactory.
SeparatedList
(typeArguments.Select(Function(p) SyntaxFactory.ParseTypeName(p.ToDisplayParts(typeNameFormatWithGenerics).ToDisplayString()))))) _
TypeSyntaxGeneratorVisitor.vb (2)
91
SyntaxFactory.TypeArgumentList(SyntaxFactory.
SeparatedList
(symbol.TypeArguments.[Select](Function(t) t.Accept(Me)))))
140
Return SyntaxFactory.TupleType(SyntaxFactory.
SeparatedList
(
VisualBasicSyntaxGeneratorInternal.vb (1)
122
SyntaxFactory.
SeparatedList
(Of TypeParameterSyntax)(
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
Snippets\SnippetExpansionClient.vb (1)
202
SyntaxFactory.
SeparatedList
(usableClauses))