示例#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()));
            }
        }
示例#2
0
 public override void Visit(ForeachAST foreachStatement)
 {
 }
示例#3
0
 public virtual void Visit(ForeachAST foreachStatement)
 {
 }