authorgravatar for vallahor91@gmail.comVallahor <vallahor91@gmail.com> 2022-05-28 21:01:37-03:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-07-19 19:10:11-07:00
logc0c992525597a1e74768cdcc67cf2a61181cb72b
tree0081f1ec435e166fdd4d6b22fd8e6f4c80902910
parentd55761f07e58e128e6b1fa3ae033706875e5989c

fix: apparently doing this the `@as` problem is solved @check


1 files changed, 4 insertions(+), 3 deletions(-)

lib/docs/main.js+4-3
......@@ -1147,10 +1147,11 @@ var zigAnalysis;
11471147 return payloadHtml;
11481148 }
11491149 case "as": {
1150 const typeRefArg = zigAnalysis.exprs[expr.as.typeRefArg];
1150 // const typeRefArg = zigAnalysis.exprs[expr.as.typeRefArg];
11511151 const exprArg = zigAnalysis.exprs[expr.as.exprArg];
1152 return "@as(" + exprName(typeRefArg, opts) +
1153 ", " + exprName(exprArg, opts) + ")";
1152 // return "@as(" + exprName(typeRefArg, opts) +
1153 // ", " + exprName(exprArg, opts) + ")";
1154 return exprName(exprArg, opts);
11541155 }
11551156 case "declRef": {
11561157 return zigAnalysis.decls[expr.declRef].name;