Permalink
Browse files

Support Passes for istring

  • Loading branch information...
ovr committed May 1, 2015
1 parent b6c99af commit 0f9207249d26548b9f5770c2769514c230ee536f
@@ -167,6 +167,7 @@ public function passExpression(array $expression)
case 'char':
case 'uchar':
case 'string':
case 'istring':
case 'static-constant-access':
case 'variable':
case 'constant':
@@ -161,6 +161,7 @@ public function passExpression(array $expression)
case 'long':
case 'ulong':
case 'string':
case 'istring':
case 'null':
case 'char':
case 'uchar':
@@ -186,7 +186,7 @@ public function reduce()
{
$pass = false;
foreach ($this->variables as $variable => $type) {
if ($type == 'variable' || $type == 'string' || $type == 'array' || $type == 'null' || $type == 'numeric') {
if ($type == 'variable' || $type == 'string' || $type == 'istring' || $type == 'array' || $type == 'null' || $type == 'numeric') {
unset($this->variables[$variable]);
} else {
$pass = true;
@@ -206,7 +206,7 @@ public function getInferedType($variable)
{
if (isset($this->variables[$variable])) {
$type = $this->variables[$variable];
if ($type != 'variable' && $type != 'undefined' && $type != 'string' && $type != 'array' && $type != 'null' && $type != 'numeric') {
if ($type != 'variable' && $type != 'undefined' && $type != 'string' && $type != 'istring' && $type != 'array' && $type != 'null' && $type != 'numeric') {
//echo $variable, ' ', $type, PHP_EOL;
return $type;
}
@@ -294,6 +294,7 @@ public function passExpression(array $expression)
case 'null':
case 'char':
case 'uchar':
case 'istring':
return $expression['type'];
case 'string':

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 0f92072

Please sign in to comment.