Esempio n. 1
0
        public void VisitDereferenceUnaryOp(DereferenceUnaryOpNode node)
        {
            node.RHS.AcceptExpressionVisitor(_expressionVisitor);
            IType referencedType = _semanticModule.ExpressionResultTypes[node];
            int   size           = _typeSizeManager.GetSize(referencedType);
            int   startAddr      = _builder.AddInstruction(OpCode.DEREF, size: size);

            _builder.AddDebugSymbol(startAddr, node);
        }
Esempio n. 2
0
        private int GetExpressionResultSize(IExpressionNode node)
        {
            IType expressionType = _module.ExpressionResultTypes[node];

            return(_typeSizeManager.GetSize(expressionType));
        }