29 references to SingletonList
Microsoft.CodeAnalysis.CSharp.Features (1)
UseAutoProperty\CSharpUseAutoPropertyCodeFixProvider.cs (1)
192var accessorList = propertyDeclaration.AccessorList ?? AccessorList(SingletonList(
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Parsing\InterpolatedStringExpressionTests.cs (1)
23SyntaxFactory.SingletonList<InterpolatedStringContentSyntax>(
Syntax\SyntaxFactoryTests.cs (5)
488SyntaxFactory.SingletonList<MemberDeclarationSyntax>( 491SyntaxFactory.SingletonList<MemberDeclarationSyntax>( 512SyntaxFactory.SingletonList<MemberDeclarationSyntax>( 515SyntaxFactory.SingletonList<MemberDeclarationSyntax>( 616: SyntaxFactory.SingletonList(SyntaxFactory.ParseMemberDeclaration("private int i;")));
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
1423SingletonList<AccessorDeclarationSyntax>(
Microsoft.Interop.JavaScript.JSImportGenerator (16)
JSExportCodeGenerator.cs (3)
106var tryInvokeAndMarshal = TryStatement(SingletonList(CatchClause() 108.WithBlock(Block(SingletonList<StatementSyntax>( 171.WithRankSpecifiers(SingletonList(ArrayRankSpecifier(SingletonSeparatedList<ExpressionSyntax>(OmittedArraySizeExpression())))))
JSExportGenerator.cs (5)
146.WithAttributeLists(SingletonList(AttributeList(SingletonSeparatedList( 241.WithAttributeLists(SingletonList(AttributeList(SingletonSeparatedList( 252SingletonList<AttributeListSyntax>( 293SingletonList<MemberDeclarationSyntax>( 298.WithAttributeLists(SingletonList(AttributeList(SingletonSeparatedList(
JSImportCodeGenerator.cs (3)
148Block(SingletonList<StatementSyntax>( 163.WithRankSpecifiers(SingletonList(ArrayRankSpecifier(SingletonSeparatedList<ExpressionSyntax>(OmittedArraySizeExpression()))))) 174.WithRankSpecifiers(SingletonList(ArrayRankSpecifier(SingletonSeparatedList<ExpressionSyntax>(
JSImportGenerator.cs (1)
115.WithAttributeLists(SingletonList(AttributeList(SingletonSeparatedList(
Marshaling\FuncJSGenerator.cs (2)
124.WithBlock(Block(SingletonList<StatementSyntax>(ExpressionStatement( 140.WithBlock(Block(SingletonList<StatementSyntax>(ExpressionStatement(
Marshaling\TaskJSGenerator.cs (2)
112.WithBlock(Block(SingletonList<StatementSyntax>(ExpressionStatement( 134.WithBlock(Block(SingletonList<StatementSyntax>(ExpressionStatement(
Microsoft.Interop.LibraryImportGenerator (2)
LibraryImportGenerator.cs (2)
136ArrayTypeSyntax arrayOfSystemType = ArrayType(TypeSyntaxes.System_Type, SingletonList(ArrayRankSpecifier())); 449SingletonList(AttributeList(
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
DownlevelLibraryImportGenerator.cs (1)
325SingletonList(AttributeList(
Microsoft.Interop.SourceGeneration (2)
Marshalling\StatefulMarshallingStrategy.cs (1)
219SingletonList(ArrayRankSpecifier(SingletonSeparatedList<ExpressionSyntax>(
Marshalling\StatelessMarshallingStrategy.cs (1)
182SingletonList(ArrayRankSpecifier(SingletonSeparatedList<ExpressionSyntax>(