public override void Visit(ForAST forStatement) { var fromExprType = _exprTypeVisitor.GetAstNodeType(_currentFileName, _currentScopeId, _currentNodePosition, forStatement.FromExpr); var toExprType = _exprTypeVisitor.GetAstNodeType(_currentFileName, _currentScopeId, _currentNodePosition, forStatement.ToExpr); if (!Vocabulary.Ints.Contains(fromExprType.ToString()) || !Vocabulary.Ints.Contains(toExprType.ToString())) { throw new Exception(string.Format("Type mismatch : For statement expression must be an integer type", fromExprType.ToString())); } }
public override void Visit(ForAST forStatement) { }
public virtual void Visit(ForAST forStatement) { }