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); }
private int GetExpressionResultSize(IExpressionNode node) { IType expressionType = _module.ExpressionResultTypes[node]; return(_typeSizeManager.GetSize(expressionType)); }