70 references to SingletonSeparatedList
Microsoft.CodeAnalysis.CSharp (1)
Syntax\SyntaxFactory.cs (1)
1377
return
SingletonSeparatedList
<TNode>(firstNode);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
273
SimpleLambdaExpressionSyntax simpleLambda => SyntaxFactory.
SingletonSeparatedList
(simpleLambda.Parameter),
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (12)
AttributeGenerator.cs (1)
59
SyntaxFactory.
SingletonSeparatedList
(attributeSyntax));
ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
115
variables:
SingletonSeparatedList
(
CSharpAsAndMemberAccessCodeFixProvider.cs (1)
71
SingletonSeparatedList
(
CSharpCodeGenerationHelpers.cs (1)
282
variableDeclarationNode.WithVariables(SyntaxFactory.
SingletonSeparatedList
(variableDeclaratorNode)))) as T;
CSharpMakeMethodAsynchronousCodeFixProvider.cs (1)
160
SyntaxFactory.TypeArgumentList(SyntaxFactory.
SingletonSeparatedList
(typeArgumentFrom.GetTypeArguments()[0].GenerateTypeSyntax())));
CSharpSyntaxGeneratorInternal.cs (1)
53
SyntaxFactory.
SingletonSeparatedList
(
CSharpUseLocalFunctionCodeFixProvider.cs (1)
282
return SyntaxFactory.ParameterList(SyntaxFactory.
SingletonSeparatedList
(simpleLambda.Parameter));
CSharpUseRangeOperatorCodeFixProvider.cs (1)
93
var arguments =
SingletonSeparatedList
(argument);
EventGenerator.cs (1)
121
SyntaxFactory.
SingletonSeparatedList
(SyntaxFactory.VariableDeclarator(@event.Name.ToIdentifierToken()))))));
FieldGenerator.cs (1)
102
SyntaxFactory.
SingletonSeparatedList
(
MethodGenerator.cs (1)
240
SyntaxFactory.
SingletonSeparatedList
(constraint)));
NamedTypeGenerator.cs (1)
246
? SyntaxFactory.BaseList(SyntaxFactory.
SingletonSeparatedList
<BaseTypeSyntax>(SyntaxFactory.SimpleBaseType(namedType.EnumUnderlyingType.GenerateTypeSyntax())))
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (2)
1009
SyntaxFactory.
SingletonSeparatedList
(
1023
SyntaxFactory.
SingletonSeparatedList
(
Microsoft.CodeAnalysis.CSharp.Features (21)
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (1)
389
=> SyntaxFactory.RecursivePattern(type, positionalPatternClause: null, PropertyPatternClause(
SingletonSeparatedList
(subpattern)), designation);
ConvertForEachToFor\CSharpConvertForEachToForCodeRefactoringProvider.cs (2)
90
SyntaxFactory.
SingletonSeparatedList
(
99
SyntaxFactory.
SingletonSeparatedList
<ExpressionSyntax>(
ConvertLinq\ConvertForEachToLinqQuery\AbstractConverter.cs (2)
212
SyntaxFactory.ArgumentList(SyntaxFactory.
SingletonSeparatedList
(
288
SyntaxFactory.ArgumentList(SyntaxFactory.
SingletonSeparatedList
(
ConvertLinq\ConvertForEachToLinqQuery\ToToListConverter.cs (1)
58
SyntaxFactory.ArgumentList(SyntaxFactory.
SingletonSeparatedList
(SyntaxFactory.Argument(queryOrLinqInvocationExpression)))));
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (3)
361
SyntaxFactory.ArgumentList(SyntaxFactory.
SingletonSeparatedList
(SyntaxFactory.Argument(expression))))),
533
SyntaxFactory.
SingletonSeparatedList
(
704
SyntaxFactory.
SingletonSeparatedList
(
ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
115
variables:
SingletonSeparatedList
(
CSharpAsAndMemberAccessCodeFixProvider.cs (1)
71
SingletonSeparatedList
(
CSharpMakeMethodAsynchronousCodeFixProvider.cs (1)
160
SyntaxFactory.TypeArgumentList(SyntaxFactory.
SingletonSeparatedList
(typeArgumentFrom.GetTypeArguments()[0].GenerateTypeSyntax())));
CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
273
SimpleLambdaExpressionSyntax simpleLambda => SyntaxFactory.
SingletonSeparatedList
(simpleLambda.Parameter),
CSharpUseLocalFunctionCodeFixProvider.cs (1)
282
return SyntaxFactory.ParameterList(SyntaxFactory.
SingletonSeparatedList
(simpleLambda.Parameter));
CSharpUseRangeOperatorCodeFixProvider.cs (1)
93
var arguments =
SingletonSeparatedList
(argument);
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
644
SyntaxFactory.ArgumentList(SyntaxFactory.
SingletonSeparatedList
(
ExtractMethod\CSharpMethodExtractor.PostProcessor.cs (1)
300
SyntaxFactory.
SingletonSeparatedList
(variable))));
GenerateMember\GenerateVariable\CSharpGenerateVariableService.cs (1)
208
SyntaxFactory.
SingletonSeparatedList
(
IntroduceVariable\CSharpIntroduceVariableService_IntroduceField.cs (1)
47
SyntaxFactory.
SingletonSeparatedList
(
IntroduceVariable\CSharpIntroduceVariableService_IntroduceLocal.cs (1)
47
SyntaxFactory.
SingletonSeparatedList
(SyntaxFactory.VariableDeclarator(
ReplacePropertyWithMethods\CSharpReplacePropertyWithMethodsService.cs (1)
309
parameterList = SyntaxFactory.CrefParameterList(SyntaxFactory.
SingletonSeparatedList
(parameter));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Syntax\SyntaxListTests.cs (1)
244
SyntaxFactory.AttributeList(SyntaxFactory.
SingletonSeparatedList
(
Syntax\SyntaxNodeTests.cs (2)
1827
var gp = SyntaxFactory.
SingletonSeparatedList
<TypeSyntax>(SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.IntKeyword)));
3445
SyntaxFactory.
SingletonSeparatedList
<TypeSyntax>(intType);
Microsoft.CodeAnalysis.CSharp.Workspaces (18)
AttributeGenerator.cs (1)
59
SyntaxFactory.
SingletonSeparatedList
(attributeSyntax));
CodeGeneration\CSharpSyntaxGenerator.cs (10)
186
SyntaxFactory.
SingletonSeparatedList
(
522
SyntaxFactory.
SingletonSeparatedList
(
857
underlyingType != null ? SyntaxFactory.BaseList(SyntaxFactory.
SingletonSeparatedList
((BaseTypeSyntax)SyntaxFactory.SimpleBaseType((TypeSyntax)underlyingType))) : null,
979
return SyntaxFactory.AttributeList(SyntaxFactory.
SingletonSeparatedList
(attr));
2035
return attrList.WithAttributes(SyntaxFactory.
SingletonSeparatedList
(attr)).WithTarget(null);
2049
return WithVariableDeclaration(declaration, vd.WithVariables(SyntaxFactory.
SingletonSeparatedList
(variable)));
2695
return AddBaseList(declaration, SyntaxFactory.BaseList(SyntaxFactory.
SingletonSeparatedList
<BaseTypeSyntax>(SyntaxFactory.SimpleBaseType((TypeSyntax)baseType))));
2709
return AddBaseList(declaration, SyntaxFactory.BaseList(SyntaxFactory.
SingletonSeparatedList
<BaseTypeSyntax>(SyntaxFactory.SimpleBaseType((TypeSyntax)interfaceType))));
3202
var arrayType = SyntaxFactory.ArrayType((TypeSyntax)elementType, SyntaxFactory.SingletonList(SyntaxFactory.ArrayRankSpecifier(SyntaxFactory.
SingletonSeparatedList
((ExpressionSyntax)size))));
3209
SyntaxFactory.ArrayRankSpecifier(SyntaxFactory.
SingletonSeparatedList
((ExpressionSyntax)SyntaxFactory.OmittedArraySizeExpression()))));
CSharpCodeGenerationHelpers.cs (1)
282
variableDeclarationNode.WithVariables(SyntaxFactory.
SingletonSeparatedList
(variableDeclaratorNode)))) as T;
CSharpSyntaxGeneratorInternal.cs (1)
53
SyntaxFactory.
SingletonSeparatedList
(
EventGenerator.cs (1)
121
SyntaxFactory.
SingletonSeparatedList
(SyntaxFactory.VariableDeclarator(@event.Name.ToIdentifierToken()))))));
FieldGenerator.cs (1)
102
SyntaxFactory.
SingletonSeparatedList
(
MethodGenerator.cs (1)
240
SyntaxFactory.
SingletonSeparatedList
(constraint)));
NamedTypeGenerator.cs (1)
246
? SyntaxFactory.BaseList(SyntaxFactory.
SingletonSeparatedList
<BaseTypeSyntax>(SyntaxFactory.SimpleBaseType(namedType.EnumUnderlyingType.GenerateTypeSyntax())))
Simplification\CSharpSimplificationService.Expander.cs (1)
229
SyntaxFactory.ParameterList(SyntaxFactory.
SingletonSeparatedList
(newSimpleLambdaParameter))
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (9)
CodeGeneration\AddAttributesTests.cs (1)
42
SyntaxFactory.
SingletonSeparatedList
(
CodeGeneration\SyntaxGeneratorTests.cs (5)
1240
SyntaxFactory.
SingletonSeparatedList
<TypeSyntax>(
1289
SyntaxFactory.
SingletonSeparatedList
<TypeSyntax>(
1299
SyntaxFactory.
SingletonSeparatedList
<ParameterSyntax>(
1386
SyntaxFactory.
SingletonSeparatedList
<ParameterSyntax>(
1413
SyntaxFactory.
SingletonSeparatedList
<ParameterSyntax>(
Formatting\FormattingElasticTriviaTests.cs (3)
58
SyntaxFactory.
SingletonSeparatedList
<AttributeSyntax>(
72
SyntaxFactory.
SingletonSeparatedList
<BaseTypeSyntax>(
80
SyntaxFactory.
SingletonSeparatedList
<AttributeSyntax>(
Microsoft.VisualStudio.LanguageServices.CSharp (3)
CodeModel\CSharpCodeModelService.cs (3)
1775
attributes: SyntaxFactory.
SingletonSeparatedList
(
3334
SyntaxFactory.
SingletonSeparatedList
(
3707
: SyntaxFactory.BaseList(SyntaxFactory.
SingletonSeparatedList
((BaseTypeSyntax)SyntaxFactory.SimpleBaseType(typeName)));