Skip to content

Commit

Permalink
Nullable annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
333fred committed Oct 8, 2024
1 parent 3450d02 commit b74ceed
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit b74ceed

Please sign in to comment.