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

This commit is contained in:
Vallahor 2022-05-28 21:01:37 -03:00 committed by Andrew Kelley
parent d55761f07e
commit c0c9925255

View File

@ -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;