Пример #1
0
        private void ApplyRuleForMoveBoolLiteral(ref bool appliedRule, Core.InstructionMoveLiteralBool inst)
        {
            var destType = TypeResolver.GetDataAccessType(session, funct, inst.destination);
            var srcType  = Core.TypeStruct.Of(session.PrimitiveBool);

            var inferredDest = TypeInferencer.Try(session, srcType, ref destType);

            if (inferredDest)
            {
                appliedRule = ApplyToDataAccess(inst.destination, destType);
            }
        }
Пример #2
0
 private void CheckMoveBoolLiteral(List <InitStatus> statusList, Core.InstructionMoveLiteralBool inst)
 {
     CheckAndInitDestination(statusList, inst.destination);
 }
Пример #3
0
        private void CheckMoveBoolLiteral(Core.InstructionMoveLiteralBool inst)
        {
            var destType = TypeResolver.GetDataAccessType(this.session, this.funct, inst.destination);

            CheckMove(inst.destination, Core.TypeStruct.Of(session.PrimitiveBool), inst.span);
        }