Example #1
0
        public override void Visit(WhileAST whileStatement)
        {
            var exprType = _exprTypeVisitor.GetAstNodeType(_currentFileName,
                                                           _currentScopeId, _currentNodePosition,
                                                           whileStatement.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()));
            }
        }
Example #2
0
 public override void Visit(WhileAST whileStatement)
 {
 }
Example #3
0
 public virtual void Visit(WhileAST whileStatement)
 {
 }