示例#1
0
        private HashSet <BuildObject> getAvailableDeps(out DependencyDisposition ddisp)
        {
            TransitiveDepsVerb    depsVerb      = new DafnyTransitiveDepsVerb(this.displayRoot);
            HashSet <BuildObject> availableDeps = depsVerb.getAvailableDeps(out ddisp);

            availableDeps.Add(this.displayRoot);  //- TransitiveDeps *exclude* the root, so we need to add that in, too.
            return(availableDeps);
        }
示例#2
0
        public DafnyCompileOneVerb(SourcePath input)
        {
            if (input == null)
            {
                throw new ArgumentNullException("input");
            }

            this.abstractId         = new AbstractId(GetType().Name, Version, input.ToString());
            this.input              = input;
            this.output             = input.makeOutputObject(CSharpExt);
            this.transitiveDepsVerb = new DafnyTransitiveDepsVerb(input);
            this.verbs              = new IVerb[] { this.transitiveDepsVerb };
        }
示例#3
0
        public DafnyCompileOneVerb(SourcePath input)
        {
            if (input == null)
            {
                throw new ArgumentNullException("input");
            }

            this.abstractId = new AbstractId(GetType().Name, Version, input.ToString());
            this.input = input;
            this.output = input.makeOutputObject(CSharpExt);
            this.transitiveDepsVerb = new DafnyTransitiveDepsVerb(input);
            this.verbs = new IVerb[] { this.transitiveDepsVerb };
        }
示例#4
0
        public static HashSet <BuildObject> getForestDependencies(IEnumerable <BuildObject> roots, out DependencyDisposition ddisp)
        {
            HashSet <BuildObject> result = new HashSet <BuildObject>();

            ddisp = DependencyDisposition.Complete;
            foreach (BuildObject dfysource in roots)
            {
                TransitiveDepsVerb    depsVerb = new DafnyTransitiveDepsVerb(dfysource);
                DependencyDisposition localDDisp;
                result.UnionWith(depsVerb.getAvailableDeps(out localDDisp));
                ddisp = ddisp.combine(localDDisp);
                result.Add(dfysource);  //- TransitiveDeps *exclude* the root, so we need to add that in, too.
            }
            return(result);
        }
示例#5
0
        public static HashSet<BuildObject> getForestDependencies(IEnumerable<BuildObject> roots, out DependencyDisposition ddisp)
        {
            HashSet<BuildObject> result = new HashSet<BuildObject>();
            ddisp = DependencyDisposition.Complete;
            foreach (BuildObject dfysource in roots)
            {
                TransitiveDepsVerb depsVerb = new DafnyTransitiveDepsVerb(dfysource);
                DependencyDisposition localDDisp;
                result.UnionWith(depsVerb.getAvailableDeps(out localDDisp));
                ddisp = ddisp.combine(localDDisp);
                result.Add(dfysource);  // TransitiveDeps *exclude* the root, so we need to add that in, too.
            }

            return result;
        }
示例#6
0
 private HashSet<BuildObject> getAvailableDeps(out DependencyDisposition ddisp)
 {
     TransitiveDepsVerb depsVerb = new DafnyTransitiveDepsVerb(this.displayRoot);
     HashSet<BuildObject> availableDeps = depsVerb.getAvailableDeps(out ddisp);
     availableDeps.Add(this.displayRoot);  // TransitiveDeps *exclude* the root, so we need to add that in, too.
     return availableDeps;
 }