inline function call with builtin function instead...

...of special syntax.

partially reverts 41144a8566

closes #306
This commit is contained in:
Andrew Kelley
2017-05-09 22:54:23 -04:00
parent 01f066de37
commit 6237411716
9 changed files with 56 additions and 169 deletions

View File

@@ -236,8 +236,6 @@ static const char *node_type_str(NodeType node_type) {
return "TryExpr";
case NodeTypeTestExpr:
return "TestExpr";
case NodeTypeInlineExpr:
return "InlineExpr";
}
zig_unreachable();
}
@@ -927,12 +925,6 @@ static void render_node_extra(AstRender *ar, AstNode *node, bool grouped) {
render_node_ungrouped(ar, node->data.unwrap_err_expr.op2);
break;
}
case NodeTypeInlineExpr:
{
fprintf(ar->f, "inline ");
render_node_grouped(ar, node->data.inline_expr.body);
break;
}
case NodeTypeFnDecl:
case NodeTypeParamDecl:
case NodeTypeErrorValueDecl: