146 references to SingleLine
Microsoft.AspNetCore.Razor.Language.Legacy.UnitTests (46)
Legacy\RazorDirectivesTest.cs (46)
18DirectiveKind.SingleLine, 38DirectiveKind.SingleLine, 58DirectiveKind.SingleLine, 66DirectiveKind.SingleLine, 86DirectiveKind.SingleLine, 94DirectiveKind.SingleLine, 118DirectiveKind.SingleLine, 133DirectiveKind.SingleLine, 148DirectiveKind.SingleLine, 162DirectiveKind.SingleLine, 179DirectiveKind.SingleLine, 196DirectiveKind.SingleLine, 233DirectiveKind.SingleLine, 251DirectiveKind.SingleLine, 266DirectiveKind.SingleLine, 281DirectiveKind.SingleLine, 296DirectiveKind.SingleLine, 311DirectiveKind.SingleLine, 326DirectiveKind.SingleLine, 341DirectiveKind.SingleLine, 356DirectiveKind.SingleLine, 371DirectiveKind.SingleLine, 386DirectiveKind.SingleLine, 431DirectiveKind.SingleLine, 446DirectiveKind.SingleLine, 461DirectiveKind.SingleLine, 488DirectiveKind.SingleLine, 526DirectiveKind.SingleLine, 552DirectiveKind.SingleLine, 567DirectiveKind.SingleLine, 836DirectiveKind.SingleLine, 851DirectiveKind.SingleLine, 866DirectiveKind.SingleLine, 881DirectiveKind.SingleLine, 896DirectiveKind.SingleLine, 911DirectiveKind.SingleLine, 926DirectiveKind.SingleLine); 940DirectiveKind.SingleLine); 960DirectiveKind.SingleLine, 980DirectiveKind.SingleLine, 999DirectiveKind.SingleLine, 1018DirectiveKind.SingleLine, 1037DirectiveKind.SingleLine, 1054DirectiveKind.SingleLine, 1070DirectiveKind.SingleLine, 1091DirectiveKind.SingleLine,
Microsoft.AspNetCore.Razor.Language.UnitTests (70)
DefaultRazorIntermediateNodeLoweringPhaseIntegrationTest.cs (1)
414DirectiveKind.SingleLine,
DefaultRazorParsingPhaseTest.cs (1)
85=> DirectiveDescriptor.CreateDirective("test", DirectiveKind.SingleLine);
DirectiveDescriptorBuilderExtensionsTest.cs (11)
16var descriptor = DirectiveDescriptor.CreateDirective("custom", DirectiveKind.SingleLine, b => b.AddMemberToken()); 30var descriptor = DirectiveDescriptor.CreateDirective("custom", DirectiveKind.SingleLine, b => b.AddNamespaceToken("Name", "Description")); 44var descriptor = DirectiveDescriptor.CreateDirective("custom", DirectiveKind.SingleLine, b => b.AddStringToken()); 58var descriptor = DirectiveDescriptor.CreateDirective("custom", DirectiveKind.SingleLine, b => b.AddTypeToken("Name", "Description")); 72var descriptor = DirectiveDescriptor.CreateDirective("custom", DirectiveKind.SingleLine, b => b.AddOptionalTypeToken()); 86var descriptor = DirectiveDescriptor.CreateDirective("custom", DirectiveKind.SingleLine, b => b.AddOptionalMemberToken("Name", "Description")); 100var descriptor = DirectiveDescriptor.CreateDirective("custom", DirectiveKind.SingleLine, b => b.AddOptionalNamespaceToken()); 114var descriptor = DirectiveDescriptor.CreateDirective("custom", DirectiveKind.SingleLine, b => b.AddOptionalStringToken("Name", "Description")); 128var descriptor = DirectiveDescriptor.CreateDirective("custom", DirectiveKind.SingleLine, b => b.AddAttributeToken("Name", "Description")); 142var descriptor = DirectiveDescriptor.CreateDirective("custom", DirectiveKind.SingleLine, b => b.AddOptionalAttributeToken()); 156var descriptor = DirectiveDescriptor.CreateDirective("custom", DirectiveKind.SingleLine, b => b.AddOptionalGenericTypeConstraintToken("Name", "Description"));
DirectiveDescriptorTest.cs (6)
17var directive = DirectiveDescriptor.CreateDirective("test", DirectiveKind.SingleLine); 21Assert.Equal(DirectiveKind.SingleLine, directive.Kind); 32var directive = DirectiveDescriptor.CreateDirective("test", DirectiveKind.SingleLine, configure); 36Assert.Equal(DirectiveKind.SingleLine, directive.Kind); 48Assert.Equal(DirectiveKind.SingleLine, directive.Kind); 63Assert.Equal(DirectiveKind.SingleLine, directive.Kind);
DirectiveRemovalOptimizationPassTest.cs (1)
17var directive = DirectiveDescriptor.CreateDirective("custom", DirectiveKind.SingleLine, d => d.AddStringToken());
IntegrationTests\BasicIntegrationTest.cs (1)
44b.AddDirective(DirectiveDescriptor.CreateDirective("test", DirectiveKind.SingleLine));
IntegrationTests\ExtensibleDirectiveTest.cs (1)
24builder.AddDirective(DirectiveDescriptor.CreateDirective("custom", DirectiveKind.SingleLine, b => b.AddNamespaceToken()));
Legacy\CSharpCodeParserTest.cs (2)
221DirectiveDescriptor.CreateDirective("test", DirectiveKind.SingleLine), 222DirectiveDescriptor.CreateDirective("test", DirectiveKind.SingleLine)
Legacy\RazorDirectivesTest.cs (46)
18DirectiveKind.SingleLine, 38DirectiveKind.SingleLine, 58DirectiveKind.SingleLine, 66DirectiveKind.SingleLine, 86DirectiveKind.SingleLine, 94DirectiveKind.SingleLine, 118DirectiveKind.SingleLine, 133DirectiveKind.SingleLine, 148DirectiveKind.SingleLine, 162DirectiveKind.SingleLine, 179DirectiveKind.SingleLine, 196DirectiveKind.SingleLine, 233DirectiveKind.SingleLine, 250DirectiveKind.SingleLine, 265DirectiveKind.SingleLine, 280DirectiveKind.SingleLine, 295DirectiveKind.SingleLine, 310DirectiveKind.SingleLine, 325DirectiveKind.SingleLine, 340DirectiveKind.SingleLine, 355DirectiveKind.SingleLine, 370DirectiveKind.SingleLine, 385DirectiveKind.SingleLine, 430DirectiveKind.SingleLine, 445DirectiveKind.SingleLine, 460DirectiveKind.SingleLine, 487DirectiveKind.SingleLine, 525DirectiveKind.SingleLine, 551DirectiveKind.SingleLine, 566DirectiveKind.SingleLine, 835DirectiveKind.SingleLine, 850DirectiveKind.SingleLine, 865DirectiveKind.SingleLine, 880DirectiveKind.SingleLine, 895DirectiveKind.SingleLine, 910DirectiveKind.SingleLine, 925DirectiveKind.SingleLine); 939DirectiveKind.SingleLine); 959DirectiveKind.SingleLine, 979DirectiveKind.SingleLine, 998DirectiveKind.SingleLine, 1017DirectiveKind.SingleLine, 1036DirectiveKind.SingleLine, 1053DirectiveKind.SingleLine, 1069DirectiveKind.SingleLine, 1090DirectiveKind.SingleLine,
Microsoft.CodeAnalysis.Razor.Compiler (26)
Language\Components\ComponentConstrainedTypeParamDirective.cs (1)
14DirectiveKind.SingleLine,
Language\Components\ComponentInjectDirective.cs (1)
18DirectiveKind.SingleLine,
Language\Components\ComponentLayoutDirective.cs (1)
14DirectiveKind.SingleLine,
Language\Components\ComponentPageDirective.cs (1)
15DirectiveKind.SingleLine,
Language\Components\ComponentPreserveWhitespaceDirective.cs (1)
14DirectiveKind.SingleLine,
Language\Components\ComponentRenderModeDirective.cs (1)
13DirectiveKind.SingleLine,
Language\Components\ComponentTypeParamDirective.cs (1)
14DirectiveKind.SingleLine,
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (1)
230case DirectiveKind.SingleLine:
Language\DirectiveDescriptor.cs (4)
89/// Creates a new <see cref="DirectiveDescriptor"/> with <see cref="Kind"/> set to <see cref="DirectiveKind.SingleLine"/> 100return CreateDirective(directive, DirectiveKind.SingleLine, configure: null); 104/// Creates a new <see cref="DirectiveDescriptor"/> with <see cref="Kind"/> set to <see cref="DirectiveKind.SingleLine"/> 116return CreateDirective(directive, DirectiveKind.SingleLine, configure);
Language\DirectiveUsage.cs (1)
20/// <see cref="DirectiveKind.SingleLine"/>, the last occurrence of the directive is imported.
Language\Extensions\AttributeDirective.cs (1)
14DirectiveKind.SingleLine,
Language\Extensions\ImplementsDirective.cs (1)
14DirectiveKind.SingleLine,
Language\Extensions\InheritsDirective.cs (1)
15DirectiveKind.SingleLine,
Language\Extensions\NamespaceDirective.cs (1)
14DirectiveKind.SingleLine,
Language\Legacy\CSharpCodeParser.cs (5)
29DirectiveKind.SingleLine, 38DirectiveKind.SingleLine, 46DirectiveKind.SingleLine, 55DirectiveKind.SingleLine, 1818case DirectiveKind.SingleLine:
Mvc.Version2_X\NamespaceDirective.cs (1)
19DirectiveKind.SingleLine,
Mvc\InjectDirective.cs (1)
18DirectiveKind.SingleLine,
Mvc\ModelDirective.cs (1)
17DirectiveKind.SingleLine,
Mvc\PageDirective.cs (1)
19DirectiveKind.SingleLine,
Microsoft.CodeAnalysis.Razor.Workspaces (3)
CodeActions\CSharp\TypeAccessibilityCodeActionProvider.cs (1)
254static n => n is RazorDirectiveSyntax directive && directive.IsDirectiveKind(DirectiveKind.SingleLine));
Formatting\Passes\CSharpOnTypeFormattingPass.cs (1)
1074static n => n is RazorDirectiveSyntax directive && directive.IsDirectiveKind(DirectiveKind.SingleLine));
Formatting\Passes\RazorFormattingPass.cs (1)
337Parent.Parent: RazorDirectiveSyntax { DirectiveDescriptor.Kind: DirectiveKind.SingleLine }
Microsoft.CodeAnalysis.Remote.Razor (1)
InlayHints\RemoteInlayHintService.cs (1)
94node.FirstAncestorOrSelf<RazorDirectiveSyntax>(static n => n.IsDirectiveKind(DirectiveKind.SingleLine)) is not null)