コード例 #1
0
ファイル: WrenchProject.cs プロジェクト: retahc/old-code
            // 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);
            }
コード例 #2
0
ファイル: FileStateTable.cs プロジェクト: emtees/old-code
		public static FileStateTable Load (string path, IWarningLogger log) {
			FileStateTable fst;

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

			return fst;
		}
コード例 #3
0
ファイル: FileStateTable.cs プロジェクト: retahc/old-code
        public static FileStateTable Load(string path, IWarningLogger log)
        {
            FileStateTable fst;

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

            return(fst);
        }