Foxoft.Ci.GenCs.GetPriority C# (CSharp) 메소드

GetPriority() 보호된 메소드

protected GetPriority ( CiExpr expr ) : CiPriority
expr CiExpr
리턴 CiPriority
        protected override CiPriority GetPriority(CiExpr expr)
        {
            if (expr is CiPropertyAccess) {
            CiProperty prop = ((CiPropertyAccess) expr).Property;
            if (prop == CiLibrary.SByteProperty || prop == CiLibrary.LowByteProperty)
                return CiPriority.Prefix;
            }
            else if (expr is CiCoercion) {
            CiCoercion c = (CiCoercion) expr;
            if (c.ResultType == CiByteType.Value && c.Inner.Type == CiIntType.Value)
                return CiPriority.Prefix;
            }
            return base.GetPriority(expr);
        }