173 references to Component
Microsoft.AspNetCore.Mvc.Razor.Extensions.UnitTests (3)
CreateNewOnMetadataUpdateAttributePassTest.cs (1)
60var codeDocument = ProjectEngine.CreateCodeDocument(source, RazorFileKind.Component);
IntegrationTests\CodeGenerationIntegrationTest.cs (2)
226var projectItem = CreateProjectItemFromFile(fileKind: RazorFileKind.Component); 1141var projectItem = CreateProjectItemFromFile(fileKind: RazorFileKind.Component);
Microsoft.AspNetCore.Razor.Language.Legacy.UnitTests (2)
Legacy\HtmlAttributeTest.cs (2)
305ParseDocumentTest("<span @class='@foo'></span>", RazorFileKind.Component); 311ParseDocumentTest("<span @class:param='@foo'></span>", RazorFileKind.Component);
Microsoft.AspNetCore.Razor.Language.UnitTests (40)
Components\ComponentDocumentClassifierPassTest.cs (6)
23var codeDocument = ProjectEngine.CreateCodeDocument(source, RazorFileKind.Component); 45var codeDocument = projectEngine.CreateCodeDocument(source, RazorFileKind.Component); 68var codeDocument = projectEngine.CreateCodeDocument(source, RazorFileKind.Component); 94var codeDocument = projectEngine.CreateCodeDocument(source, RazorFileKind.Component); 119var codeDocument = projectEngine.CreateCodeDocument(source, RazorFileKind.Component); 139var codeDocument = ProjectEngine.CreateCodeDocument(source, RazorFileKind.Component);
Components\ComponentDuplicateAttributeDiagnosticPassTest.cs (1)
165return ProjectEngine.CreateCodeDocument(source, RazorFileKind.Component);
Components\ComponentMarkupBlockPassTest.cs (1)
453return ProjectEngine.CreateCodeDocument(source, RazorFileKind.Component);
Components\ComponentMarkupEncodingPassTest.cs (1)
211return ProjectEngine.CreateCodeDocument(source, RazorFileKind.Component);
Components\ComponentWhitespacePassTest.cs (1)
166return ProjectEngine.CreateCodeDocument(source, RazorFileKind.Component);
DefaultRazorProjectEngineIntegrationTest.cs (2)
221Assert.Equal(RazorFileKind.Component, actual); 308Assert.Equal(RazorFileKind.Component, actual);
DefaultRazorProjectItemTest.cs (1)
46Assert.Equal(RazorFileKind.Component, projectItem.FileKind);
Extensions\FunctionsDirectivePassTest.cs (2)
82var codeDocument = projectEngine.CreateCodeDocument(source, RazorFileKind.Component); 123var codeDocument = projectEngine.CreateCodeDocument(source, RazorFileKind.Component);
Extensions\SectionDirectivePassTest.cs (1)
115var codeDocument = ProjectEngine.Process(source, RazorFileKind.Component, [], tagHelpers: null);
IntegrationTests\ComponentBindIntegrationTest.cs (1)
11internal override RazorFileKind? FileKind => RazorFileKind.Component;
IntegrationTests\ComponentChildContentIntegrationTest.cs (1)
52internal override RazorFileKind? FileKind => RazorFileKind.Component;
IntegrationTests\ComponentCodeGenerationTestBase.cs (1)
23internal override RazorFileKind? FileKind => RazorFileKind.Component;
IntegrationTests\ComponentDeclarationIntegrationTest.cs (1)
20internal override RazorFileKind? FileKind => RazorFileKind.Component;
IntegrationTests\ComponentDiagnosticRazorIntegrationTest.cs (1)
11internal override RazorFileKind? FileKind => RazorFileKind.Component;
IntegrationTests\ComponentDirectiveIntegrationTest.cs (1)
22internal override RazorFileKind? FileKind => RazorFileKind.Component;
IntegrationTests\ComponentDiscoveryIntegrationTest.cs (1)
12internal override RazorFileKind? FileKind => RazorFileKind.Component;
IntegrationTests\ComponentFilePathIntegrationTest.cs (1)
12internal override RazorFileKind? FileKind => RazorFileKind.Component;
IntegrationTests\ComponentGenericTypeIntegrationTest.cs (1)
80internal override RazorFileKind? FileKind => RazorFileKind.Component;
IntegrationTests\ComponentPreprocessorDirectiveTest.cs (1)
12internal override RazorFileKind? FileKind => RazorFileKind.Component;
IntegrationTests\ComponentRenderModeAttributeIntegrationTests.cs (1)
10internal override RazorFileKind? FileKind => RazorFileKind.Component;
IntegrationTests\ComponentRenderModeDirectiveIntegrationTests.cs (1)
14internal override RazorFileKind? FileKind => RazorFileKind.Component;
IntegrationTests\ComponentTemplateIntegrationTest.cs (1)
10internal override RazorFileKind? FileKind => RazorFileKind.Component;
IntegrationTests\ComponentTypingTest.cs (1)
16internal override RazorFileKind? FileKind => RazorFileKind.Component;
Legacy\HtmlAttributeTest.cs (5)
380ParseDocumentTest("<span @class='@foo'></span>", RazorFileKind.Component); 386ParseDocumentTest("<span @class:param='@foo'></span>", RazorFileKind.Component); 398ParseDocumentTest("""<Weather Value="@@currentCount" />""", RazorFileKind.Component); 404ParseDocumentTest("""<Weather Value="@@count" Title="@@title" />""", RazorFileKind.Component); 410ParseDocumentTest("""<Weather Value="@@currentCount @someVar" />""", RazorFileKind.Component);
RazorCodeDocumentExtensionsTest.cs (5)
286parserOptions: RazorParserOptions.Create(RazorLanguageVersion.Latest, RazorFileKind.Component, builder => 311parserOptions: RazorParserOptions.Create(RazorLanguageVersion.Latest, RazorFileKind.Component, builder => 343parserOptions: RazorParserOptions.Create(RazorLanguageVersion.Latest, RazorFileKind.Component, builder => 376parserOptions: RazorParserOptions.Create(RazorLanguageVersion.Latest, RazorFileKind.Component, builder => 410parserOptions: RazorParserOptions.Create(RazorLanguageVersion.Latest, RazorFileKind.Component, builder =>
Microsoft.CodeAnalysis.Razor.Compiler (15)
Language\Components\ComponentCodeDirective.cs (1)
27builder.AddDirective(Directive, RazorFileKind.Component);
Language\Components\ComponentConstrainedTypeParamDirective.cs (1)
30builder.AddDirective(Directive, RazorFileKind.Component, RazorFileKind.ComponentImport);
Language\Components\ComponentInjectDirective.cs (1)
34builder.AddDirective(Directive, RazorFileKind.Component, RazorFileKind.ComponentImport);
Language\Components\ComponentLayoutDirective.cs (1)
29builder.AddDirective(Directive, RazorFileKind.Component, RazorFileKind.ComponentImport);
Language\Components\ComponentPageDirective.cs (1)
34builder.AddDirective(Directive, RazorFileKind.Component, RazorFileKind.ComponentImport);
Language\Components\ComponentPreserveWhitespaceDirective.cs (1)
29builder.AddDirective(Directive, RazorFileKind.Component, RazorFileKind.ComponentImport);
Language\Components\ComponentRenderModeDirective.cs (1)
28builder.AddDirective(Directive, RazorFileKind.Component);
Language\Components\ComponentTypeParamDirective.cs (1)
29builder.AddDirective(Directive, RazorFileKind.Component, RazorFileKind.ComponentImport);
Language\Extensions\AttributeDirective.cs (1)
29builder.AddDirective(Directive, RazorFileKind.Legacy, RazorFileKind.Component, RazorFileKind.ComponentImport);
Language\Extensions\FunctionsDirective.cs (1)
28builder.AddDirective(Directive, RazorFileKind.Legacy, RazorFileKind.Component);
Language\Extensions\ImplementsDirective.cs (1)
29builder.AddDirective(Directive, RazorFileKind.Legacy, RazorFileKind.Component, RazorFileKind.ComponentImport);
Language\Extensions\InheritsDirective.cs (1)
30builder.AddDirective(Directive, RazorFileKind.Legacy, RazorFileKind.Component, RazorFileKind.ComponentImport);
Language\Extensions\NamespaceDirective.cs (1)
31builder.AddDirective(Directive, RazorFileKind.Legacy, RazorFileKind.Component, RazorFileKind.ComponentImport);
Language\FileKinds.cs (2)
19=> fileKind is RazorFileKind.Component or RazorFileKind.ComponentImport; 53fileKind = RazorFileKind.Component;
Microsoft.CodeAnalysis.Razor.Workspaces (2)
ProjectSystem\IDocumentSnapshotExtensions.cs (2)
20if (documentSnapshot.FileKind != RazorFileKind.Component) 50if (documentSnapshot.FileKind != RazorFileKind.Component)
Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests (12)
Completion\BlazorDataAttributeCompletionItemProviderTest.cs (2)
19internal override RazorFileKind? FileKind => RazorFileKind.Component; 218var actualFileKind = fileKind ?? FileKind ?? RazorFileKind.Component;
Completion\DirectiveAttributeCompletionItemProviderBaseTest.cs (1)
17internal override RazorFileKind? FileKind => RazorFileKind.Component;
Completion\DirectiveAttributeCompletionItemProviderTest.AttributeNames.cs (1)
22internal override RazorFileKind? FileKind => RazorFileKind.Component;
Completion\DirectiveAttributeEventParameterCompletionItemProviderTest.cs (1)
18internal override RazorFileKind? FileKind => RazorFileKind.Component;
Completion\DirectiveAttributeTransitionCompletionItemProviderTest.cs (1)
330var fileKindValue = fileKind ?? RazorFileKind.Component;
Completion\DirectiveCompletionItemProviderTest.cs (2)
169var syntaxTree = CreateSyntaxTree("@", RazorFileKind.Component, customDirective); 213var syntaxTree = CreateSyntaxTree("@addTag", RazorFileKind.Component);
TagHelperFactsServiceTest.cs (4)
23var codeDocument = CreateCodeDocument($"<TestElement @test='abc' />", RazorFileKind.Component, TagHelperCollection.Create(DefaultTagHelpers)); 44var codeDocument = CreateCodeDocument($"<TestElement @test:something='abc' />", RazorFileKind.Component, TagHelperCollection.Create(DefaultTagHelpers)); 65var codeDocument = CreateCodeDocument($"<TestElement @minimized />", RazorFileKind.Component, [.. DefaultTagHelpers]); 86var codeDocument = CreateCodeDocument($"<TestElement @minimized:something />", RazorFileKind.Component, [.. DefaultTagHelpers]);
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (50)
Cohost\RemoteDebugInfoServiceTest.cs (1)
368var fileKind = legacy ? RazorFileKind.Legacy : RazorFileKind.Component;
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\AutoInsert\RazorOnAutoInsertProviderTestBase.cs (1)
59var fileKindValue = fileKind ?? RazorFileKind.Component;
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostDocumentSymbolEndpointTest.cs (2)
325fileKind ??= RazorFileKind.Component; 356fileKind ??= RazorFileKind.Component;
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostGoToDefinitionEndpointTest.cs (11)
108await VerifyGoToDefinitionAsync(input, RazorFileKind.Component); 127await VerifyGoToDefinitionAsync(input, RazorFileKind.Component); 149var result = await GetGoToDefinitionResultAsync(input, RazorFileKind.Component, 184var result = await GetGoToDefinitionResultAsync(input, RazorFileKind.Component, 217var result = await GetGoToDefinitionResultAsync(input, RazorFileKind.Component, 250var result = await GetGoToDefinitionResultAsync(input, RazorFileKind.Component, 288var result = await GetGoToDefinitionResultAsync(input, RazorFileKind.Component, 330var result = await GetGoToDefinitionResultAsync(input, RazorFileKind.Component, 372var result = await GetGoToDefinitionResultAsync(input, RazorFileKind.Component, 420var result = await GetGoToDefinitionResultAsync(input, RazorFileKind.Component, 944var result = await GetGoToDefinitionResultAsync(input, RazorFileKind.Component,
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostOnAutoInsertEndpointTest.cs (1)
552fileKind ??= RazorFileKind.Component;
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\DocumentFormattingTest.cs (32)
4270fileKind: RazorFileKind.Component); 4353fileKind: RazorFileKind.Component); // tracked by https://github.com/dotnet/razor/issues/10836 4439fileKind: RazorFileKind.Component); 4513fileKind: RazorFileKind.Component); 4596fileKind: RazorFileKind.Component); 4685fileKind: RazorFileKind.Component); 4756fileKind: RazorFileKind.Component); 4818fileKind: RazorFileKind.Component); 4871fileKind: RazorFileKind.Component); 4933fileKind: RazorFileKind.Component); 5004fileKind: RazorFileKind.Component); 5059fileKind: RazorFileKind.Component); 5085fileKind: RazorFileKind.Component); 5110fileKind: RazorFileKind.Component); 5139fileKind: RazorFileKind.Component); 5167fileKind: RazorFileKind.Component); 5202fileKind: RazorFileKind.Component); 5236fileKind: RazorFileKind.Component); 5271fileKind: RazorFileKind.Component); 5305fileKind: RazorFileKind.Component); 5333fileKind: RazorFileKind.Component); 5360fileKind: RazorFileKind.Component); 5397fileKind: RazorFileKind.Component); 5433fileKind: RazorFileKind.Component); 5460fileKind: RazorFileKind.Component); 5486fileKind: RazorFileKind.Component); 5507fileKind: RazorFileKind.Component); 5528fileKind: RazorFileKind.Component); 5589fileKind: RazorFileKind.Component); 5647fileKind: RazorFileKind.Component); 5709fileKind: RazorFileKind.Component); 9506fileKind: RazorFileKind.Component);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\FormattingContentValidationPassTest.cs (1)
99var fileKindValue = fileKind ?? RazorFileKind.Component;
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\FormattingDiagnosticValidationPassTest.cs (1)
97var fileKindValue = fileKind ?? RazorFileKind.Component;
Microsoft.VisualStudioCode.RazorExtension.UnitTests (49)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\AutoInsert\RazorOnAutoInsertProviderTestBase.cs (1)
59var fileKindValue = fileKind ?? RazorFileKind.Component;
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostDocumentSymbolEndpointTest.cs (2)
325fileKind ??= RazorFileKind.Component; 356fileKind ??= RazorFileKind.Component;
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostGoToDefinitionEndpointTest.cs (11)
108await VerifyGoToDefinitionAsync(input, RazorFileKind.Component); 127await VerifyGoToDefinitionAsync(input, RazorFileKind.Component); 149var result = await GetGoToDefinitionResultAsync(input, RazorFileKind.Component, 184var result = await GetGoToDefinitionResultAsync(input, RazorFileKind.Component, 217var result = await GetGoToDefinitionResultAsync(input, RazorFileKind.Component, 250var result = await GetGoToDefinitionResultAsync(input, RazorFileKind.Component, 288var result = await GetGoToDefinitionResultAsync(input, RazorFileKind.Component, 330var result = await GetGoToDefinitionResultAsync(input, RazorFileKind.Component, 372var result = await GetGoToDefinitionResultAsync(input, RazorFileKind.Component, 420var result = await GetGoToDefinitionResultAsync(input, RazorFileKind.Component, 944var result = await GetGoToDefinitionResultAsync(input, RazorFileKind.Component,
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostOnAutoInsertEndpointTest.cs (1)
552fileKind ??= RazorFileKind.Component;
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\DocumentFormattingTest.cs (32)
4270fileKind: RazorFileKind.Component); 4353fileKind: RazorFileKind.Component); // tracked by https://github.com/dotnet/razor/issues/10836 4439fileKind: RazorFileKind.Component); 4513fileKind: RazorFileKind.Component); 4596fileKind: RazorFileKind.Component); 4685fileKind: RazorFileKind.Component); 4756fileKind: RazorFileKind.Component); 4818fileKind: RazorFileKind.Component); 4871fileKind: RazorFileKind.Component); 4933fileKind: RazorFileKind.Component); 5004fileKind: RazorFileKind.Component); 5059fileKind: RazorFileKind.Component); 5085fileKind: RazorFileKind.Component); 5110fileKind: RazorFileKind.Component); 5139fileKind: RazorFileKind.Component); 5167fileKind: RazorFileKind.Component); 5202fileKind: RazorFileKind.Component); 5236fileKind: RazorFileKind.Component); 5271fileKind: RazorFileKind.Component); 5305fileKind: RazorFileKind.Component); 5333fileKind: RazorFileKind.Component); 5360fileKind: RazorFileKind.Component); 5397fileKind: RazorFileKind.Component); 5433fileKind: RazorFileKind.Component); 5460fileKind: RazorFileKind.Component); 5486fileKind: RazorFileKind.Component); 5507fileKind: RazorFileKind.Component); 5528fileKind: RazorFileKind.Component); 5589fileKind: RazorFileKind.Component); 5647fileKind: RazorFileKind.Component); 5709fileKind: RazorFileKind.Component); 9506fileKind: RazorFileKind.Component);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\FormattingContentValidationPassTest.cs (1)
99var fileKindValue = fileKind ?? RazorFileKind.Component;
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\FormattingDiagnosticValidationPassTest.cs (1)
97var fileKindValue = fileKind ?? RazorFileKind.Component;