Beispiel #1
0
        //-----------------------------------------------------------------------------------------------------------------------------------------------------

        public HappilUnaryExpression(
            HappilMethod ownerMethod,
            IUnaryOperator <TOperand> @operator,
            IHappilOperand <TOperand> operand,
            UnaryOperatorPosition position = UnaryOperatorPosition.Prefix)
            : base(ownerMethod)
        {
            m_Operand  = operand;
            m_Operator = @operator;
            m_Position = position;

            var scope = StatementScope.Current;

            scope.Consume(operand as IHappilExpression);
            scope.RegisterExpressionStatement(this);
        }
Beispiel #2
0
 public VoidMethodBody(HappilMethod ownerMethod) : base(ownerMethod)
 {
 }
Beispiel #3
0
        //-----------------------------------------------------------------------------------------------------------------------------------------------------

        public MethodBody(HappilMethod ownerMethod)
        {
            m_OwnerMethod = ownerMethod;
        }