Lines Matching refs:stmt
72 public function addStmt($stmt) { argument
73 $stmt = BuilderHelpers::normalizeNode($stmt);
75 if ($stmt instanceof Stmt\EnumCase) {
76 $this->enumCases[] = $stmt;
77 } elseif ($stmt instanceof Stmt\ClassMethod) {
78 $this->methods[] = $stmt;
79 } elseif ($stmt instanceof Stmt\TraitUse) {
80 $this->uses[] = $stmt;
81 } elseif ($stmt instanceof Stmt\ClassConst) {
82 $this->constants[] = $stmt;
84 throw new \LogicException(sprintf('Unexpected node of type "%s"', $stmt->getType()));