public override bool Visit(AstClass node) { table.UseChildScope(); return true; }
public override bool Visit(AstClass node) { ErrorIfIsNull(node.Body); ErrorIfIsNull(node.Name); return true; }
public AstProgram(AstClass klass) { Class = klass; }
// #CLASS_DEF CLASS ID #CLASS_BODY private void ConstructClass() { var classBody = nodes.Pop() as AstClassBody; var id = nodes.Pop() as AstIdExpression; var klass = new AstClass(id, classBody); PushNode(klass); }
public override bool Visit(AstClass node) { table.UseChildScope(); node.Body.Accept(this); return false; }
public override bool Visit(AstClass node) { return true; }
public abstract bool Visit(AstClass node);