add this keyword refers to thing in immediate scope

See #169
This commit is contained in:
Andrew Kelley
2016-09-26 23:47:30 -04:00
parent f4d7c91363
commit 183976b242
16 changed files with 167 additions and 16 deletions

View File

@@ -173,6 +173,8 @@ static const char *node_type_str(NodeType node_type) {
return "UndefinedLiteral";
case NodeTypeZeroesLiteral:
return "ZeroesLiteral";
case NodeTypeThisLiteral:
return "ThisLiteral";
case NodeTypeIfBoolExpr:
return "IfBoolExpr";
case NodeTypeIfVarExpr:
@@ -597,6 +599,8 @@ static void render_node(AstRender *ar, AstNode *node) {
zig_panic("TODO");
case NodeTypeZeroesLiteral:
zig_panic("TODO");
case NodeTypeThisLiteral:
zig_panic("TODO");
case NodeTypeIfBoolExpr:
zig_panic("TODO");
case NodeTypeIfVarExpr: