Lines Matching refs:name
8 protected $name = NULL; variable in MakeNode
18 public function name() { return $this->name; } function in MakeNode
23 if (!in_array($node->name(), array_keys($this->links)))
24 $this->links[$node->name()] = $node;
27 public function __construct($name, $is_target) { argument
28 $this->name = $name;
37 if (in_array($this->name, $path)) {
38 $loop = array($this->name);
40 while ($next != $name) {
44 add_error($errors, $this->name, array('loop' => $loop));
49 $path[] = $this->name;
54 $affect[] = $link->name();
65 add_error($errors, $link->name(),
66 array('dependency' => $this->name));
86 if ($node_refs && isset($node_refs[$link->name()]))
87 $node_refs[$link->name()] = $link->ref;
128 foreach ($files as $name => $file)
129 $this->files[$name] = &$file;
133 foreach ($this->files as $name => $file) {
138 $this->add_error($name, "undefined");
141 $this->files[$name] = $file;
144 $this->nodes[$name] = new MakeNode($name, $file->is_target());
148 while ((list($name, $node) = each($this->nodes)) != false) {
149 $deps = $this->files[$name]->dependency();
158 $this->add_error($name, array('dependency' => $dep));
174 foreach ($errors as $name)
175 $this->nodes[$name]->mark_invalid($this->errors);
180 foreach ($this->nodes as $name => $node)
182 $nodes[$name] = new MakeNode($name, $node->is_target());
183 foreach ($nodes as $name => $node) {
184 $deps = array_diff($this->files[$name]->dependency(), $invalid);
205 foreach ($this->nodes as $name => $node)
207 $nodes[$name] = $node->ref;
214 foreach ($this->errors as $name => $error)
215 if (isset($this->files[$name])) {
216 $file = $this->files[$name];
229 $name = key($nodes);
231 $node = $this->nodes[$name];
233 unset($nodes[$name]);
237 unset($nodes[$name]);
240 $file = $this->files[$name];
260 $this->pid[$name] = $this->make_target($file);
284 $name = array_search($pid, $this->pid);
285 unset($this->pid[$name]);
286 $time = $this->times[$name];
287 unset($this->times[$name]);
288 $node = $this->nodes[$name];
292 $this->add_error($name, array("failure" => $result));
298 $time == $this->files[$name]->time($this->project->path()))
303 $name = $file->name();
304 $this->times[$name] = $file->time($this->project->path());
318 private function add_error($name, $error) { argument
319 add_error($this->errors, $name, $error);
331 function add_error(&$errors, $name, $error) { argument
332 if (!isset($errors[$name]))
333 $errors[$name] = array($error);
335 $errors[$name][] = $error;