Esempio n. 1
0
        public override void Visit(DoWhileAST doWhileStatement)
        {
            var exprType = _exprTypeVisitor.GetAstNodeType(_currentFileName,
                                                           _currentScopeId, _currentNodePosition,
                                                           doWhileStatement.ConditionExpr);

            if (exprType.ToString() != Enum.GetName(typeof(Keyword), Keyword.BOOL).ToLower())
            {
                throw new Exception(string.Format("Type mismatch : Condition must be of type 'bool', but it's a '{0}' ...",
                                                  exprType.ToString()));
            }
        }
Esempio n. 2
0
 public override void Visit(DoWhileAST doWhileStatement)
 {
 }
Esempio n. 3
0
 public virtual void Visit(DoWhileAST doWhileStatement)
 {
 }