From b74ceed7720cbc445fa74aec6ea98cb45e272c04 Mon Sep 17 00:00:00 2001 From: Fredric Silberberg Date: Mon, 7 Oct 2024 17:07:12 -0700 Subject: [PATCH] Nullable annotations --- .../Language/IntegrationTests/RazorIntegrationTestBase.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Shared/Microsoft.AspNetCore.Razor.Test.Common/Language/IntegrationTests/RazorIntegrationTestBase.cs b/src/Shared/Microsoft.AspNetCore.Razor.Test.Common/Language/IntegrationTests/RazorIntegrationTestBase.cs index 7c1441e9da0..fe0a2cb01d3 100644 --- a/src/Shared/Microsoft.AspNetCore.Razor.Test.Common/Language/IntegrationTests/RazorIntegrationTestBase.cs +++ b/src/Shared/Microsoft.AspNetCore.Razor.Test.Common/Language/IntegrationTests/RazorIntegrationTestBase.cs @@ -393,10 +393,12 @@ protected INamedTypeSymbol CompileToComponent(CompileToAssemblyResult assemblyRe return componentType; } - protected static CSharpSyntaxTree Parse(string text, CSharpParseOptions? parseOptions = null, string path = null) +#nullable enable + protected static CSharpSyntaxTree Parse(string text, CSharpParseOptions? parseOptions = null, string path = "") { return (CSharpSyntaxTree)CSharpSyntaxTree.ParseText(text, parseOptions ?? CSharpParseOptions, path: path); } +#nullable disable protected static void AssertSourceEquals(string expected, CompileToCSharpResult generated) {