Exemplo n.º 1
0
        public override void Visit(ForeachAST foreachStatement)
        {
            var arrayExprType = _exprTypeVisitor.GetAstNodeType(_currentFileName,
                                                                _currentScopeId, _currentNodePosition,
                                                                foreachStatement.ArrayExpr);

            if (!(arrayExprType is ArrayTypeAST))
            {
                throw new Exception(string.Format("Type mismatch : Foreach statement expression must be an array type",
                                                  arrayExprType.ToString()));
            }
        }
Exemplo n.º 2
0
 public override void Visit(ForeachAST foreachStatement)
 {
 }
Exemplo n.º 3
0
 public virtual void Visit(ForeachAST foreachStatement)
 {
 }