public override Completion LabelledEvaluate(Interpreter interpreter, List <string> labels)
        {
            var varDecls = variableDeclarations.Evaluate(interpreter);

            if (varDecls.IsAbrupt())
            {
                return(varDecls);
            }
            return(ForBodyEvaluation(conditionExpression, endExpression, doStatement, Utils.EmptyList <string>(), labels));
        }
Esempio n. 2
0
        public override Completion Evaluate(Interpreter interpreter)
        {
            var comp = variableDeclarations.Evaluate(interpreter);

            if (comp.IsAbrupt())
            {
                return(comp);
            }
            return(Completion.NormalCompletion());
        }