autodoc: fix rendering of std.json.ObjectMap
closes #17014 supersedes #17022 follow up issue #17061
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user