authorgravatar for kappaloris@gmail.comLoris Cro <kappaloris@gmail.com> 2023-09-03 18:30:29+02:00
committergravatar for kappaloris@gmail.comLoris Cro <kappaloris@gmail.com> 2023-09-03 18:32:26+02:00
loge5c72a32a766df00e56b18e5da1a335277c79321
tree8a45e1041e5284d87a7180e762a9e7df51d8eb07
parent555028086a60792145c6d8cc751646f7bcf5515a

autodoc: fix rendering of std.json.ObjectMap

closes #17014 supersedes #17022 follow up issue #17061

1 files changed, 6 insertions(+), 2 deletions(-)

lib/docs/main.js+6-2
......@@ -1327,7 +1327,7 @@ Happy writing!
13271327 case "refPath": {
13281328 for (let i = 0; i < expr.refPath.length; i += 1) {
13291329 if (i > 0) yield Tok.period;
1330 yield* ex(expr.refPath[i]);
1330 yield* ex(expr.refPath[i], opts);
13311331 }
13321332 return;
13331333 }
......@@ -2662,6 +2662,10 @@ Happy writing!
26622662 resolvedValue.expr.call !== undefined ||
26632663 resolvedValue.expr.comptimeExpr !== undefined
26642664 ) {
2665 // TODO: we're using the resolved value but
2666 // not keeping track of how we got there
2667 // that's important context that should
2668 // be shown to the user!
26652669 domFnProtoCode.innerHTML = renderTokens(
26662670 (function*() {
26672671 yield Tok.const;
......@@ -2675,7 +2679,7 @@ Happy writing!
26752679 yield Tok.space;
26762680 yield Tok.eql;
26772681 yield Tok.space;
2678 yield* ex(decl.value.expr, {});
2682 yield* ex(resolvedValue.expr, {});
26792683 yield Tok.semi;
26802684 })());
26812685 } else if (resolvedValue.expr.compileError) {