public override bool Visit(AstClass node)
 {
     table.UseChildScope();
     return true;
 }
 public override bool Visit(AstClass node)
 {
     ErrorIfIsNull(node.Body);
     ErrorIfIsNull(node.Name);
     return true;
 }
Exemplo n.º 3
0
 public AstProgram(AstClass klass)
 {
     Class = klass;
 }
Exemplo n.º 4
0
        // #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);
        }
Exemplo n.º 5
0
 public override bool Visit(AstClass node)
 {
     table.UseChildScope();
     node.Body.Accept(this);
     return false;
 }
 public override bool Visit(AstClass node)
 {
     return true;
 }
Exemplo n.º 7
0
 public abstract bool Visit(AstClass node);