From e0a83511b24f08f3db1af8ce18b55e2a6a4f8f82 Mon Sep 17 00:00:00 2001 From: Richard Van Tassel Date: Sun, 23 Feb 2025 15:10:19 -0500 Subject: [PATCH] marks ExpressionContext.DMProc as nullable as DMMParser.ParseCellDefinition can leave it null --- DMCompiler/DM/DMExpression.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DMCompiler/DM/DMExpression.cs b/DMCompiler/DM/DMExpression.cs index 73de3895ba..41c7448bfc 100644 --- a/DMCompiler/DM/DMExpression.cs +++ b/DMCompiler/DM/DMExpression.cs @@ -138,10 +138,10 @@ private void VerifyArgType(DMCompiler compiler, DMProc targetProc, int index, st } } -internal readonly struct ExpressionContext(DMCompiler compiler, DMObject type, DMProc proc) { +internal readonly struct ExpressionContext(DMCompiler compiler, DMObject type, DMProc? proc) { public readonly DMCompiler Compiler = compiler; public readonly DMObject Type = type; - public readonly DMProc Proc = proc; + public readonly DMProc? Proc = proc; public DMObjectTree ObjectTree => Compiler.DMObjectTree; }