Lines Matching refs:stmt
106 public function addStmt($stmt) { argument
107 $stmt = BuilderHelpers::normalizeNode($stmt);
109 if ($stmt instanceof Stmt\Property) {
110 $this->properties[] = $stmt;
111 } elseif ($stmt instanceof Stmt\ClassMethod) {
112 $this->methods[] = $stmt;
113 } elseif ($stmt instanceof Stmt\TraitUse) {
114 $this->uses[] = $stmt;
115 } elseif ($stmt instanceof Stmt\ClassConst) {
116 $this->constants[] = $stmt;
118 throw new \LogicException(sprintf('Unexpected node of type "%s"', $stmt->getType()));