Ejemplo n.º 1
0
        public static Return Return(MatchIterator iterator)
        {
            iterator.AssertKeyword(Keywords.Return);
            Token startToken = (Token)iterator.Current;

            Expression expression;

            iterator.NextIsExpression(out expression);

            iterator.AssertEnd();

            Return result = new Return(startToken, expression);

            return(result);
        }