Commit c0c9925255

Vallahor <vallahor91@gmail.com>
2022-05-29 02:01:37
fix: apparently doing this the `@as` problem is solved @check
1 parent d55761f
Changed files (1)
lib
docs
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;