Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistBaseXHPASTLinter.php
Show First 20 Lines • Show All 183 Lines • ▼ Show 20 Lines | final protected function getXHPASTTreeForPath($path) { | ||||
return $this->trees[$path]; | return $this->trees[$path]; | ||||
} | } | ||||
/** | /** | ||||
* Get a path's parse exception from the responsible linter. | * Get a path's parse exception from the responsible linter. | ||||
* | * | ||||
* @param string Path to retrieve exception for. | * @param string Path to retrieve exception for. | ||||
* @return Exeption|null Parse exception, if available. | * @return Exception|null Parse exception, if available. | ||||
* @task sharing | * @task sharing | ||||
*/ | */ | ||||
final protected function getXHPASTExceptionForPath($path) { | final protected function getXHPASTExceptionForPath($path) { | ||||
if ($this->getXHPASTLinter() !== $this) { | if ($this->getXHPASTLinter() !== $this) { | ||||
return $this->getXHPASTLinter()->getXHPASTExceptionForPath($path); | return $this->getXHPASTLinter()->getXHPASTExceptionForPath($path); | ||||
} | } | ||||
return idx($this->exceptions, $path); | return idx($this->exceptions, $path); | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |