public static UxlDeprecate Read(CacheReader f) { var src = f.ReadSource(); var oldName = f.ReadGlobalString(); var newName = f.ReadGlobalString(); return(new UxlDeprecate(src, oldName, newName)); }
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))); }
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)); }