Example #1
0
            // TODO: Use varying persistence storages; right now
            // we only ever use FileStateTable.

            public ProviderInfo(short id, WrenchProject proj)
            {
                this.id = id;

                pp = FileStateTable.Load(GetStatePath(proj), proj.Log);

                context = new InfoContext(proj.Graph.GetProviderDeclarationLoc(id), proj);
            }
Example #2
0
		public static FileStateTable Load (string path, IWarningLogger log) {
			FileStateTable fst;

			fst = (FileStateTable) SafeFileSerializer.Load (path, log);
			if (fst == null)
				fst = new FileStateTable ();

			return fst;
		}
Example #3
0
        public static FileStateTable Load(string path, IWarningLogger log)
        {
            FileStateTable fst;

            fst = (FileStateTable)SafeFileSerializer.Load(path, log);
            if (fst == null)
            {
                fst = new FileStateTable();
            }

            return(fst);
        }