Example #1
0
        public static UxlDeprecate Read(CacheReader f)
        {
            var src     = f.ReadSource();
            var oldName = f.ReadGlobalString();
            var newName = f.ReadGlobalString();

            return(new UxlDeprecate(src, oldName, newName));
        }
Example #2
0
        public static UxlImplementation Read(CacheReader r)
        {
            var         flags = (UxlImplementationFlags)r.ReadByte();
            var         src   = r.ReadSource();
            var         body  = r.ReadGlobalValue();
            SourceValue?cond  = null;

            if (flags.HasFlag(UxlImplementationFlags.HasCondition))
            {
                cond = r.ReadGlobalValue();
            }

            return(new UxlImplementation(src, (ImplementationType)(flags & UxlImplementationFlags.TypeMask), body, cond, flags.HasFlag(UxlImplementationFlags.IsDefault)));
        }
Example #3
0
        public static UxlDeclare Read(CacheReader f)
        {
            var flags = (UxlDeclareFlags)f.ReadByte();
            var src   = f.ReadSource();
            var key   = f.ReadGlobalValue();

            SourceValue?cond = null;

            if (flags.HasFlag(UxlDeclareFlags.HasCondition))
            {
                cond = f.ReadGlobalValue();
            }

            return(new UxlDeclare(src, (UxlDeclareType)(flags & UxlDeclareFlags.TypeMask), key, cond));
        }