Commit e5c72a32a7

Loris Cro <kappaloris@gmail.com>
2023-09-03 18:30:29
autodoc: fix rendering of std.json.ObjectMap
closes #17014 supersedes #17022 follow up issue #17061
1 parent 5550280
Changed files (1)
lib
docs
lib/docs/main.js
@@ -1327,7 +1327,7 @@ Happy writing!
       case "refPath": {
         for (let i = 0; i < expr.refPath.length; i += 1) {
           if (i > 0) yield Tok.period;
-          yield* ex(expr.refPath[i]);
+          yield* ex(expr.refPath[i], opts);
         }
         return;
       }
@@ -2662,6 +2662,10 @@ Happy writing!
       resolvedValue.expr.call !== undefined ||
       resolvedValue.expr.comptimeExpr !== undefined
     ) {
+      // TODO: we're using the resolved value but 
+      //       not keeping track of how we got there
+      //       that's important context that should
+      //       be shown to the user!
       domFnProtoCode.innerHTML = renderTokens(
         (function*() {
           yield Tok.const;
@@ -2675,7 +2679,7 @@ Happy writing!
           yield Tok.space;
           yield Tok.eql;
           yield Tok.space;
-          yield* ex(decl.value.expr, {});
+          yield* ex(resolvedValue.expr, {});
           yield Tok.semi;
         })());
     } else if (resolvedValue.expr.compileError) {