Author: Elliot Levin (elliotlevin@hotmail.com)
Inheritance: extends Expression
示例#1
0
 public function visitCast(O\CastExpression $expression)
 {
     $this->walk($expression->getCastValue());
     $this->addTypeOperation($expression, $this->analysis[$expression->getCastValue()]->getCast($expression));
 }
示例#2
0
文件: Type.php 项目: timetoogo/pinq
 public function getCast(O\CastExpression $expression)
 {
     if (isset($this->castOperations[$expression->getCastType()])) {
         return $this->castOperations[$expression->getCastType()];
     }
     return $this->parentType->getCast($expression);
 }