From c0c992525597a1e74768cdcc67cf2a61181cb72b Mon Sep 17 00:00:00 2001 From: Vallahor Date: Sat, 28 May 2022 21:01:37 -0300 Subject: [PATCH] fix: apparently doing this the `@as` problem is solved @check --- lib/docs/main.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/docs/main.js b/lib/docs/main.js index a804da0c1c..ee2d8ac4b4 100644 --- a/lib/docs/main.js +++ b/lib/docs/main.js @@ -1147,10 +1147,11 @@ var zigAnalysis; return payloadHtml; } case "as": { - const typeRefArg = zigAnalysis.exprs[expr.as.typeRefArg]; + // const typeRefArg = zigAnalysis.exprs[expr.as.typeRefArg]; const exprArg = zigAnalysis.exprs[expr.as.exprArg]; - return "@as(" + exprName(typeRefArg, opts) + - ", " + exprName(exprArg, opts) + ")"; + // return "@as(" + exprName(typeRefArg, opts) + + // ", " + exprName(exprArg, opts) + ")"; + return exprName(exprArg, opts); } case "declRef": { return zigAnalysis.decls[expr.declRef].name;