Inheritance: System.Compiler.Statement
Beispiel #1
0
 private AcceptStatement VisitAccept(AcceptStatement accept)
 {
     accept.booleanExpr = this.VisitExpression(accept.booleanExpr);
     return accept;
 }
Beispiel #2
0
        private AcceptStatement VisitAccept(AcceptStatement accept)
        {
            WriteStart("accept");
            this.VisitParenthesizedExpression(accept.booleanExpr);
            WriteFinish(";");

            return accept;
        }
Beispiel #3
0
 private Statement VisitAccept(AcceptStatement accept)
 {
     Statement acceptStmt;
     acceptStmt = Templates.GetStatementTemplate("Accept");
     Replacer.Replace(acceptStmt, "_expr", this.VisitExpression(accept.booleanExpr));
     return acceptStmt;
 }
Beispiel #4
0
 private AcceptStatement VisitAccept(AcceptStatement accept)
 {
     if (accept == null) return null;
     AcceptStatement result = (AcceptStatement)accept.Clone();
     result.booleanExpr = this.VisitExpression(accept.booleanExpr);
     return result;
 }
Beispiel #5
0
        private AcceptStatement VisitAccept(AcceptStatement accept)
        {
            BasicBlock block = AddBlock(new BasicBlock(accept, CurrentContinuation));
            CurrentContinuation = block;

            return accept;
        }
Beispiel #6
0
        private AcceptStatement VisitAccept(AcceptStatement accept)
        {
            if (accept == null) return null;
            accept.booleanExpr = this.VisitExpression(accept.booleanExpr);

            if (accept.booleanExpr == null)
                return null;

            if (accept.booleanExpr.Type != SystemTypes.Boolean)
            {
                this.HandleError(accept, Error.BooleanExpressionRequired);
                return null;
            }
            return accept;
        }
Beispiel #7
0
 private AcceptStatement VisitAccept(AcceptStatement accept)
 {
     if (accept == null) return null;
     accept.booleanExpr = this.VisitExpression(accept.booleanExpr);
     return accept;
 }