Changeset View
Changeset View
Standalone View
Standalone View
src/parser/aast/api/AASTTree.php
Context not available. | |||||
$this->stream[$ii] = $this->newToken( | $this->stream[$ii] = $this->newToken( | ||||
$ii, | $ii, | ||||
$token[0], | $token[0], | ||||
substr($source, $offset, $token[1]), | @substr($source, $offset, $token[1]), | ||||
$offset, | $offset, | ||||
$this); | $this); | ||||
$offset += $token[1]; | $offset += $token[1]; | ||||
Context not available. | |||||
public function getOffsetToLineNumberMap() { | public function getOffsetToLineNumberMap() { | ||||
if ($this->lineMap === null) { | if ($this->lineMap === null) { | ||||
$src = $this->rawSource; | $src = $this->rawSource; | ||||
$len = strlen($src); | $len = @strlen($src); | ||||
$lno = 1; | $lno = 1; | ||||
$map = array(); | $map = array(); | ||||
for ($ii = 0; $ii < $len; ++$ii) { | for ($ii = 0; $ii < $len; ++$ii) { | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0