95 references to SingletonSeparatedList
Microsoft.AspNetCore.App.CodeFixes (1)
Authorization\AddAuthorizationBuilderFixer.cs (1)
102SyntaxFactory.SingletonSeparatedList(
Microsoft.CodeAnalysis.CSharp (1)
Syntax\SyntaxFactory.cs (1)
1378return SingletonSeparatedList<TNode>(firstNode);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseRangeOperatorCodeFixProvider.cs (1)
89var arguments = SingletonSeparatedList(argument);
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\UseIndexOrRangeOperator\CSharpUseRangeOperatorCodeFixProvider.cs (1)
89var arguments = SingletonSeparatedList(argument);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Syntax\SyntaxListTests.cs (1)
252: SyntaxFactory.SingletonSeparatedList(
Syntax\SyntaxNodeTests.cs (2)
1854: SyntaxFactory.SingletonSeparatedList<TypeSyntax>(SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.IntKeyword))); 3479SyntaxFactory.SingletonSeparatedList<TypeSyntax>(intType);
Microsoft.Interop.ComInterfaceGenerator (12)
AttributeInfo.cs (1)
23return AttributeList(SingletonSeparatedList(GenerateSyntax()));
ComClassGenerator.cs (2)
74.AddAttributeLists(AttributeList(SingletonSeparatedList(s_comExposedClassAttributeTemplate)))); 91SingletonSeparatedList(VariableDeclarator(vtablesField))))
ComInterfaceGenerator.cs (3)
227.AddAttributeLists(AttributeList(SingletonSeparatedList(s_iUnknownDerivedAttributeTemplate)))); 500.AddAttributeLists(AttributeList(SingletonSeparatedList(Attribute(NameSyntaxes.System_Runtime_InteropServices_DynamicInterfaceCastableImplementationAttribute)))); 655FieldDeclaration(VariableDeclaration(TypeSyntaxes.VoidStarStar, SingletonSeparatedList(VariableDeclarator(vtableFieldName))))
Marshallers\ComInterfaceDispatchMarshallingResolver.cs (2)
58TypeArgumentList(SingletonSeparatedList(info.ManagedType.Syntax)))), 60SingletonSeparatedList(
Marshallers\ObjectUnwrapperResolver.cs (1)
55SingletonSeparatedList(
VirtualMethodPointerStubGenerator.cs (1)
169.AddAttributeLists(AttributeList(SingletonSeparatedList(unmanagedCallersOnlyAttribute)))
VtableIndexStubGenerator.cs (2)
432.WithBaseList(BaseList(SingletonSeparatedList((BaseTypeSyntax)SimpleBaseType(IdentifierName(context.ContainingSyntax[0].Identifier))))) 433.AddAttributeLists(AttributeList(SingletonSeparatedList(Attribute(NameSyntaxes.System_Runtime_InteropServices_DynamicInterfaceCastableImplementationAttribute)))));
Microsoft.Interop.JavaScript.JSImportGenerator (34)
JSExportCodeGenerator.cs (7)
112.WithArgumentList(ArgumentList(SingletonSeparatedList(Argument(IdentifierName("ex"))))))))))) 171.WithRankSpecifiers(SingletonList(ArrayRankSpecifier(SingletonSeparatedList<ExpressionSyntax>(OmittedArraySizeExpression()))))) 180.WithVariables(SingletonSeparatedList(VariableDeclarator(marshaller.TypeInfo.InstanceIdentifier))))); 184.WithVariables(SingletonSeparatedList(VariableDeclarator(Identifier(Constants.ArgumentException)) 186.WithArgumentList(BracketedArgumentList(SingletonSeparatedList( 190.WithVariables(SingletonSeparatedList(VariableDeclarator(Identifier(Constants.ArgumentReturn)) 192.WithArgumentList(BracketedArgumentList(SingletonSeparatedList(
JSExportGenerator.cs (6)
146.WithAttributeLists(SingletonList(AttributeList(SingletonSeparatedList( 148.WithParameterList(ParameterList(SingletonSeparatedList( 238.WithVariables(SingletonSeparatedList( 241.WithAttributeLists(SingletonList(AttributeList(SingletonSeparatedList( 298.WithAttributeLists(SingletonList(AttributeList(SingletonSeparatedList( 322AttributeListSyntax registrationAttribute = AttributeList(SingletonSeparatedList(Attribute(IdentifierName(Constants.DynamicDependencyAttributeGlobal))
JSImportCodeGenerator.cs (8)
163.WithRankSpecifiers(SingletonList(ArrayRankSpecifier(SingletonSeparatedList<ExpressionSyntax>(OmittedArraySizeExpression()))))) 171TypeArgumentList(SingletonSeparatedList<TypeSyntax>(IdentifierName(Constants.JSMarshalerArgumentGlobal))))) 172.WithVariables(SingletonSeparatedList(VariableDeclarator(Identifier(Constants.ArgumentsBuffer)) 174.WithRankSpecifiers(SingletonList(ArrayRankSpecifier(SingletonSeparatedList<ExpressionSyntax>( 178.WithVariables(SingletonSeparatedList(VariableDeclarator(Identifier(Constants.ArgumentException)) 180.WithArgumentList(BracketedArgumentList(SingletonSeparatedList( 188.WithVariables(SingletonSeparatedList(VariableDeclarator(Identifier(Constants.ArgumentReturn)) 190.WithArgumentList(BracketedArgumentList(SingletonSeparatedList(
JSImportGenerator.cs (2)
115.WithAttributeLists(SingletonList(AttributeList(SingletonSeparatedList( 122.WithVariables(SingletonSeparatedList(VariableDeclarator(Identifier(stub.BindingName)))))
Marshaling\ArrayJSGenerator.cs (1)
25ArgumentList(SingletonSeparatedList(Argument(MarshalerTypeName(_elementMarshalerType)))));
Marshaling\ArraySegmentJSGenerator.cs (1)
24ArgumentList(SingletonSeparatedList(Argument(MarshalerTypeName(_elementMarshalerType)))));
Marshaling\BaseJSGenerator.cs (2)
53.WithVariables(SingletonSeparatedList(VariableDeclarator(Identifier(argName)) 55.WithArgumentList(BracketedArgumentList(SingletonSeparatedList(
Marshaling\NullableJSGenerator.cs (1)
21ArgumentList(SingletonSeparatedList(Argument(MarshalerTypeName(Type)))));
Marshaling\PrimitiveJSGenerator.cs (2)
76.WithArgumentList(ArgumentList(SingletonSeparatedList(ToManagedMethodRefOrOut(source))))); 83.WithArgumentList(ArgumentList(SingletonSeparatedList(ToJSMethodRefOrOut(source)))));
Marshaling\SpanJSGenerator.cs (1)
24ArgumentList(SingletonSeparatedList(Argument(MarshalerTypeName(_elementMarshalerType)))));
Marshaling\TaskJSGenerator.cs (3)
32ArgumentList(SingletonSeparatedList(Argument(MarshalerTypeName(_resultMarshalerType))))); 87.WithArgumentList(ArgumentList(SingletonSeparatedList(source.WithRefOrOutKeyword(Token(SyntaxKind.OutKeyword)))))); 94.WithArgumentList(ArgumentList(SingletonSeparatedList(source))));
Microsoft.Interop.LibraryImportGenerator (3)
Analyzers\ConvertToLibraryImportFixer.cs (1)
617SyntaxFactory.SingletonSeparatedList<CollectionElementSyntax>(
LibraryImportGenerator.cs (2)
424SingletonSeparatedList( 450SingletonSeparatedList(
Microsoft.Interop.LibraryImportGenerator.Downlevel (2)
DownlevelLibraryImportGenerator.cs (2)
303SingletonSeparatedList( 326SingletonSeparatedList(
Microsoft.Interop.SourceGeneration (36)
MarshalAsParser.cs (2)
47SingletonSeparatedList( 76SingletonSeparatedList(
Marshalling\BlittableMarshaller.cs (1)
51SingletonSeparatedList(
Marshalling\CharMarshaller.cs (2)
59SingletonSeparatedList( 71SingletonSeparatedList(
Marshalling\DelegateMarshaller.cs (2)
73SingletonSeparatedList( 85ArgumentList(SingletonSeparatedList(Argument(IdentifierName(managedIdentifier))))));
Marshalling\ElementsMarshalling.cs (3)
439SingletonSeparatedList( 528SingletonSeparatedList( 613SingletonSeparatedList(
Marshalling\MarshallingGeneratorExtensions.cs (1)
46return AttributeList(SingletonSeparatedList(forwardedAttribute));
Marshalling\StatefulMarshallingStrategy.cs (2)
158SingletonSeparatedList( 219SingletonList(ArrayRankSpecifier(SingletonSeparatedList<ExpressionSyntax>(
Marshalling\StatelessMarshallingStrategy.cs (11)
47ArgumentList(SingletonSeparatedList( 63ArgumentList(SingletonSeparatedList( 119ArgumentList(SingletonSeparatedList( 175SingletonSeparatedList(bufferElementType))), 176SingletonSeparatedList( 182SingletonList(ArrayRankSpecifier(SingletonSeparatedList<ExpressionSyntax>( 272ArgumentList(SingletonSeparatedList( 291ArgumentList(SingletonSeparatedList( 425SingletonSeparatedList( 509ArgumentList(SingletonSeparatedList( 541ArgumentList(SingletonSeparatedList(Argument(IdentifierName(managedIdentifier)))));
Marshalling\StaticPinnableManagedValueMarshaller.cs (2)
82SingletonSeparatedList( 90ArgumentList(SingletonSeparatedList(
Marshalling\UnmanagedToManagedOwnershipTrackingStrategy.cs (2)
63SingletonSeparatedList( 211SingletonSeparatedList(
SignatureContext.cs (2)
71SingletonSeparatedList( 86SingletonSeparatedList(
Utils\SyntaxFactoryExtensions.cs (6)
44SingletonSeparatedList(decl))); 81public static GenericNameSyntax SpanOf(TypeSyntax type) => GenericName(_span, TypeArgumentList(SingletonSeparatedList(type))); 84public static GenericNameSyntax ReadOnlySpanOf(TypeSyntax type) => GenericName(_readonlySpan, TypeArgumentList(SingletonSeparatedList(type))); 95BracketedArgumentList(SingletonSeparatedList(argument))); 124SingletonSeparatedList( 138SingletonSeparatedList<ExpressionSyntax>(
System.Windows.Forms.Analyzers.CodeFixes.CSharp (1)
System\Windows\Forms\CSharp\CodeFixes\AddDesignerSerializationVisibility\AddDesignerSerializationVisibilityCodeFixProvider.cs (1)
92SyntaxFactory.SingletonSeparatedList(designerSerializationVisibilityAttribute)));