public override bool Visit(AstExternalMethodCallStatement node)
 {
     ErrorIfIsNull(node.Expr);
     return true;
 }
Example #2
0
 // #STATEMENT #FUNC_CALL LINE_END
 private void ConstructFuncCallStatement()
 {
     var funcCallExpr = nodes.Pop() as AstFunctionCallExpression;
     if (funcCallExpr is AstThisMethodCallExpression)
     {
         var stmt = new AstThisMethodCallStatement(funcCallExpr as AstThisMethodCallExpression);
         PushNode(stmt);
     }
     else if (funcCallExpr is AstExternalMethodCallExpression)
     {
         var stmt = new AstExternalMethodCallStatement(funcCallExpr as AstExternalMethodCallExpression);
         PushNode(stmt);
     }
     else
     {
         throw new Exception("bad code detected again.");
     }
 }
 public override bool Visit(AstExternalMethodCallStatement node)
 {
     return true;
 }
 public abstract bool Visit(AstExternalMethodCallStatement node);