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;...@@ -1147,10 +1147,11 @@ var zigAnalysis;
1147 return payloadHtml;1147 return payloadHtml;
1148 }1148 }
1149 case "as": {1149 case "as": {
1150 const typeRefArg = zigAnalysis.exprs[expr.as.typeRefArg];1150 // const typeRefArg = zigAnalysis.exprs[expr.as.typeRefArg];
1151 const exprArg = zigAnalysis.exprs[expr.as.exprArg];1151 const exprArg = zigAnalysis.exprs[expr.as.exprArg];
1152 return "@as(" + exprName(typeRefArg, opts) +1152 // return "@as(" + exprName(typeRefArg, opts) +
1153 ", " + exprName(exprArg, opts) + ")";1153 // ", " + exprName(exprArg, opts) + ")";
1154 return exprName(exprArg, opts);
1154 }1155 }
1155 case "declRef": {1156 case "declRef": {
1156 return zigAnalysis.decls[expr.declRef].name;1157 return zigAnalysis.decls[expr.declRef].name;