예제 #1
0
파일: OpAnd.cs 프로젝트: kimbell/Steeltoe
        public override bool IsCompilable()
        {
            var left  = LeftOperand;
            var right = RightOperand;

            return(left.IsCompilable() && right.IsCompilable() &&
                   CodeFlow.IsBooleanCompatible(left.ExitDescriptor) &&
                   CodeFlow.IsBooleanCompatible(right.ExitDescriptor));
        }
예제 #2
0
        public override bool IsCompilable()
        {
            var condition = _children[0];
            var left      = _children[1];
            var right     = _children[2];

            return(condition.IsCompilable() && left.IsCompilable() && right.IsCompilable() &&
                   CodeFlow.IsBooleanCompatible(condition.ExitDescriptor) &&
                   left.ExitDescriptor != null && right.ExitDescriptor != null);
        }
예제 #3
0
        public override bool IsCompilable()
        {
            var child = _children[0];

            return(child.IsCompilable() && CodeFlow.IsBooleanCompatible(child.ExitDescriptor));
        }