From a42b49f87a2e0a4e86b9ccfaecfeb1417f6c10e0 Mon Sep 17 00:00:00 2001 From: LPeter1997 Date: Wed, 13 Nov 2024 15:53:44 +0100 Subject: [PATCH] Update MetadataCodegen.cs --- src/Draco.Compiler/Internal/Codegen/MetadataCodegen.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Draco.Compiler/Internal/Codegen/MetadataCodegen.cs b/src/Draco.Compiler/Internal/Codegen/MetadataCodegen.cs index 0709d8b17..f326d1777 100644 --- a/src/Draco.Compiler/Internal/Codegen/MetadataCodegen.cs +++ b/src/Draco.Compiler/Internal/Codegen/MetadataCodegen.cs @@ -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