| @@ 157-166 (lines=10) @@ | ||
| 154 | /** |
|
| 155 | * @inheritdocs |
|
| 156 | */ |
|
| 157 | public function _method_reference($name, $file, $line) { |
|
| 158 | assert('is_string($name)'); |
|
| 159 | assert('$file->type() == "file"'); |
|
| 160 | assert('is_int($line)'); |
|
| 161 | ||
| 162 | $method = $this->create_node("method reference", ["name" => $name]); |
|
| 163 | $this->add_relation($method, "referenced at", ["line" => $line], $file); |
|
| 164 | ||
| 165 | return $method; |
|
| 166 | } |
|
| 167 | ||
| 168 | /** |
|
| 169 | * @inheritdocs |
|
| @@ 171-180 (lines=10) @@ | ||
| 168 | /** |
|
| 169 | * @inheritdocs |
|
| 170 | */ |
|
| 171 | public function _function_reference($name, $file, $line) { |
|
| 172 | assert('is_string($name)'); |
|
| 173 | assert('$file->type() == "file"'); |
|
| 174 | assert('is_int($line)'); |
|
| 175 | ||
| 176 | $function = $this->create_node("function reference", ["name" => $name]); |
|
| 177 | $this->add_relation($function, "referenced at", ["line" => $line], $file); |
|
| 178 | ||
| 179 | return $function; |
|
| 180 | } |
|
| 181 | ||
| 182 | /** |
|
| 183 | * @inheritdocs |
|