예제 #1
0
파일: TypeVisitor.cs 프로젝트: Ryuuke/Ryu
        public override void Visit(PtrDerefAST ptrDerefAST)
        {
            ptrDerefAST.Expression.Accept(this);

            var PointerType = _stateInfo.currentType as PtrTypeAST;

            if (PointerType == null)
            {
                throw new Exception("Cannot dereference a non-pointer type");
            }

            _stateInfo.currentType = PointerType.Type;
        }
예제 #2
0
 public override void Visit(PtrDerefAST ptrDerefAST)
 {
 }
예제 #3
0
 public virtual void Visit(PtrDerefAST ptrDerefAST)
 {
 }