Skip to content

Commit

Permalink
Update ClassCodegen.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
LPeter1997 committed Dec 17, 2023
1 parent 44468e8 commit 8d9bda3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Draco.Compiler/Internal/OptimizingIr/ClassCodegen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,11 @@ public override void VisitField(FieldSymbol fieldSymbol)
}

// TODO: Copypasta from ModuleCodegen
// TODO: Except we check for syntax not being null because we can have synthetized symbols
private BoundNode RewriteBody(BoundNode body)
{
// If needed, inject sequence points
if (this.EmitSequencePoints) body = SequencePointInjector.Inject(body);
if (body.Syntax is not null && this.EmitSequencePoints) body = SequencePointInjector.Inject(body);
// Desugar it
return body.Accept(new LocalRewriter(this.Compilation));
}
Expand Down

0 comments on commit 8d9bda3

Please sign in to comment.