Skip to content

Commit

Permalink
Update MetadataCodegen.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
LPeter1997 committed Nov 13, 2024
1 parent 3429e63 commit a42b49f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Draco.Compiler/Internal/Codegen/MetadataCodegen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ Symbol GetContainingSymbol()
{
if (func.IsNested)
{
// TODO: This can be fixed by moving this structural responsibility to the IR
// We can't have nested functions represented in metadata directly, so we'll climb up the parent chain
// To find the first non-function container
return func.AncestorChain
Expand Down

0 comments on commit a42b49f

Please sign in to comment.