示例#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)
 {
 }