Exemple #1
0
        public ConversionModel(CachedGraph oldGraph, CachedGraph newGraph, AnalysisModel oldModel)
        {
            OldGraph = oldGraph;
            OldModel = oldModel;

            NewGraph          = newGraph;
            ConvertedNewModel = new AnalysisModel(NewGraph)
            {
                LookupHashFunction = ConvertedLookupHash,
            };
        }
Exemple #2
0
 public PipCachingInfo(PipId pipId, AnalysisModel model)
 {
     PipId         = pipId;
     Model         = model;
     OriginalPipId = pipId;
 }
Exemple #3
0
 public static IReadOnlyList <FileData> ToFileDataList(this IReadOnlyList <FileArtifact> files, uint workerId, AnalysisModel model)
 {
     return(files.SelectList(f => new FileData()
     {
         File = f,
         Hash = model.LookupHash(workerId, f).Hash,
     }));
 }