public void AcceptVisitor(IDependencyVisitor visitor) { if (Dependencies != null) { Dependencies.Each(x => { x.AcceptVisitor(visitor); }); } }
public override bool VisitDependencies (IDependencyVisitor<string,string> idv) { if (deps != null) for (int i = 0; i < deps.Length; i++) if (idv.VisitUnnamedTarget (deps[i])) return true; if (cdeps != null) for (int i = 0; i < cdeps.Length; i++) if (idv.VisitUnnamedResult (cdeps[i])) return true; if (named_deps != null) { foreach (string arg in named_deps.Keys) { bool res; object o = named_deps[arg]; if (o is string) res = idv.VisitNamedTarget (arg, (string) o); else res = idv.VisitNamedResult (arg, (Result) o); if (res) return true; } } return false; }
public bool VisitDependencies (IDependencyVisitor idv) { foreach (SingleValue<TargetBuilder> sv in UnnamedDeps) { if (idv.VisitUnnamed (sv)) return true; } foreach (SingleValue<TargetBuilder> sv in DefaultOrderedDeps) { if (idv.VisitDefaultOrdered (sv)) return true; } Rule rinst = (Rule) Activator.CreateInstance (Rule); Dictionary<string,int> argmap = rinst.MakeArgNameMap (); foreach (string arg in ArgsWithDeps) { int argid = argmap[arg]; foreach (SingleValue<TargetBuilder> sv in GetArgDeps (arg)) { if (idv.VisitNamed (argid, sv)) return true; } } foreach (string arg in ArgsWithDefaults) { if (idv.VisitDefaultValue (argmap[arg], GetArgDefault (arg))) return true; } return false; }
public override bool VisitDependencies(IDependencyVisitor <string, string> idv) { if (deps != null) { for (int i = 0; i < deps.Length; i++) { if (idv.VisitUnnamedTarget(deps[i])) { return(true); } } } if (cdeps != null) { for (int i = 0; i < cdeps.Length; i++) { if (idv.VisitUnnamedResult(cdeps[i])) { return(true); } } } if (named_deps != null) { foreach (string arg in named_deps.Keys) { bool res; object o = named_deps[arg]; if (o is string) { res = idv.VisitNamedTarget(arg, (string)o); } else { res = idv.VisitNamedResult(arg, (Result)o); } if (res) { return(true); } } } return(false); }
public bool VisitDependencies(IDependencyVisitor idv) { foreach (SingleValue <TargetBuilder> sv in UnnamedDeps) { if (idv.VisitUnnamed(sv)) { return(true); } } foreach (SingleValue <TargetBuilder> sv in DefaultOrderedDeps) { if (idv.VisitDefaultOrdered(sv)) { return(true); } } Rule rinst = (Rule)Activator.CreateInstance(Rule); Dictionary <string, int> argmap = rinst.MakeArgNameMap(); foreach (string arg in ArgsWithDeps) { int argid = argmap[arg]; foreach (SingleValue <TargetBuilder> sv in GetArgDeps(arg)) { if (idv.VisitNamed(argid, sv)) { return(true); } } } foreach (string arg in ArgsWithDefaults) { if (idv.VisitDefaultValue(argmap[arg], GetArgDefault(arg))) { return(true); } } return(false); }
public void AcceptVisitor(IDependencyVisitor visitor) { visitor.Constant(this); }
public void AcceptVisitor(IDependencyVisitor visitor) { visitor.Referenced(this); }
public Dependency_Visiting_Tester() { theVisitor = Substitute.For <IDependencyVisitor>(); }
public void AcceptVisitor(IDependencyVisitor visitor) { visitor.InlineEnumerable(this); }
public void AcceptVisitor(IDependencyVisitor visitor) { visitor.Dependency(this); }
public void AcceptVisitor(IDependencyVisitor visitor) { visitor.Configured(this); }
public void AcceptVisitor(IDependencyVisitor visitor) { visitor.AllPossibleOf(_elementType); }
public void SetUp() { theVisitor = MockRepository.GenerateMock <IDependencyVisitor>(); }
public void AcceptVisitor(IDependencyVisitor visitor) { visitor.Lifecycled(this); }
public void AcceptVisitor(IDependencyVisitor visitor) { visitor.Problem(this); }
void IDependencySource.AcceptVisitor(IDependencyVisitor visitor) { visitor.Dependency(this); }
public Dependency_Visiting_Tester() { theVisitor = Substitute.For<IDependencyVisitor>(); }
public void AcceptVisitor(IDependencyVisitor visitor) { visitor.Default(_dependencyType); }
public void SetUp() { visitor = MockRepository.GenerateMock<IDependencyVisitor>(); }
public void AcceptVisitor(IDependencyVisitor visitor) { visitor.Concrete(this); }
public Dependency_Visiting_Tester() { theVisitor = MockRepository.GenerateMock<IDependencyVisitor>(); }
public Dependency_Visiting_Tester() { theVisitor = MockRepository.GenerateMock <IDependencyVisitor>(); }
public bool VisitDependencies (IDependencyVisitor<string,string> idv) { return idv.VisitUnnamedResult (result); }
public bool VisitDependencies(IDependencyVisitor <string, string> idv) { return(idv.VisitUnnamedResult(result)); }