20 references to Create
Microsoft.AspNetCore.Razor.Language.UnitTests (9)
DefaultRazorCSharpLoweringPhaseTest.cs (2)
122var source = RazorSourceDocument.Create(sourceText, RazorSourceDocumentProperties.Create("test.cshtml", null)); 154var source = RazorSourceDocument.Create(sourceText, RazorSourceDocumentProperties.Create("test.cshtml", null));
Extensions\MetadataAttributePassTest.cs (5)
249var source = TestRazorSourceDocument.Create("", RazorSourceDocumentProperties.Create(null, "Foo\\Bar.cshtml")); 296var source = TestRazorSourceDocument.Create("", RazorSourceDocumentProperties.Create(null, "Foo\\Bar.cshtml")); 297var importSource = TestRazorSourceDocument.Create("@using System", RazorSourceDocumentProperties.Create(null, "Foo\\Import.cshtml")); 356var source = TestRazorSourceDocument.Create("", RazorSourceDocumentProperties.Create(null, "Foo\\Bar.cshtml")); 357var importSource = TestRazorSourceDocument.Create("@using System", RazorSourceDocumentProperties.Create(null, "Foo\\Import.cshtml"));
RazorSourceDocumentTest.cs (2)
46var properties = RazorSourceDocumentProperties.Create("c:\\myapp\\filePath.cshtml", "filePath.cshtml"); 169var properties = RazorSourceDocumentProperties.Create("c:\\myapp\\filePath.cshtml", "filePath.cshtml");
Microsoft.AspNetCore.Razor.Test.Common (2)
Language\TestRazorSourceDocument.cs (2)
34var properties = RazorSourceDocumentProperties.Create(resourcePath, resourcePath); 92var properties = RazorSourceDocumentProperties.Create(filePath, relativePath);
Microsoft.CodeAnalysis.Razor.Compiler (5)
Language\RazorSourceDocument.cs (4)
65var properties = RazorSourceDocumentProperties.Create(fileName, relativePath: null); 89var properties = RazorSourceDocumentProperties.Create(fileName, relativePath: null); 154return new RazorSourceDocument(sourceText, RazorSourceDocumentProperties.Create(filePath, relativePath)); 217var properties = RazorSourceDocumentProperties.Create(fileName, relativePath: null);
SourceGenerators\SourceGeneratorProjectItem.cs (1)
35_source = RazorSourceDocument.Create(text, RazorSourceDocumentProperties.Create(AdditionalText.Path, relativePhysicalPath));
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (2)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\AutoInsert\RazorOnAutoInsertProviderTestBase.cs (1)
62var sourceDocument = RazorSourceDocument.Create(text, RazorSourceDocumentProperties.Create(path, path));
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\FormattingContentValidationPassTest.cs (1)
102var sourceDocument = RazorSourceDocument.Create(text, RazorSourceDocumentProperties.Create(path, path));
Microsoft.VisualStudioCode.RazorExtension.UnitTests (2)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\AutoInsert\RazorOnAutoInsertProviderTestBase.cs (1)
62var sourceDocument = RazorSourceDocument.Create(text, RazorSourceDocumentProperties.Create(path, path));
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\FormattingContentValidationPassTest.cs (1)
102var sourceDocument = RazorSourceDocument.Create(text, RazorSourceDocumentProperties.Create(path, path));