Skip to content

Commit

Permalink
marks ExpressionContext.DMProc as nullable as DMMParser.ParseCellDefi…
Browse files Browse the repository at this point in the history
…nition can leave it null
  • Loading branch information
Ruzihm committed Feb 23, 2025
1 parent fd1b6a7 commit e0a8351
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DMCompiler/DM/DMExpression.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit e0a8351

Please sign in to comment.