23 references to SingleChild
Microsoft.AspNetCore.Razor.Language.UnitTests (23)
DefaultDocumentClassifierPassTest.cs (3)
53var @namespace = SingleChild<NamespaceDeclarationIntermediateNode>(documentNode); 54var @class = SingleChild<ClassDeclarationIntermediateNode>(@namespace); 55var method = SingleChild<MethodDeclarationIntermediateNode>(@class);
DirectiveRemovalOptimizationPassTest.cs (3)
49var method = SingleChild<MethodDeclarationIntermediateNode>(@class); 79var method = SingleChild<MethodDeclarationIntermediateNode>(@class); 113var method = SingleChild<MethodDeclarationIntermediateNode>(@class);
DocumentClassifierPassBaseTest.cs (13)
115var @namespace = SingleChild<NamespaceDeclarationIntermediateNode>(documentNode); 116var @class = SingleChild<ClassDeclarationIntermediateNode>(@namespace); 117var method = SingleChild<MethodDeclarationIntermediateNode>(@class); 139var @namespace = SingleChild<NamespaceDeclarationIntermediateNode>(documentNode); 165var @namespace = SingleChild<NamespaceDeclarationIntermediateNode>(documentNode); 166var @class = SingleChild<ClassDeclarationIntermediateNode>(@namespace); 167var method = SingleChild<MethodDeclarationIntermediateNode>(@class); 199var @namespace = SingleChild<NamespaceDeclarationIntermediateNode>(documentNode); 202var @class = SingleChild<ClassDeclarationIntermediateNode>(@namespace); 205var method = SingleChild<MethodDeclarationIntermediateNode>(@class); 234var @namespace = SingleChild<NamespaceDeclarationIntermediateNode>(documentNode); 237var @class = SingleChild<ClassDeclarationIntermediateNode>(@namespace); 240var method = SingleChild<MethodDeclarationIntermediateNode>(@class);
Extensions\MetadataAttributePassTest.cs (3)
172SingleChild<NamespaceDeclarationIntermediateNode>(documentNode); 205SingleChild<NamespaceDeclarationIntermediateNode>(documentNode); 242SingleChild<NamespaceDeclarationIntermediateNode>(documentNode);
Extensions\SectionDirectivePassTest.cs (1)
70var method = SingleChild<MethodDeclarationIntermediateNode>(@class);