Lines Matching refs:stmt
39 public function addStmt($stmt) { argument
40 $stmt = BuilderHelpers::normalizeNode($stmt);
42 if ($stmt instanceof Stmt\Property) {
43 $this->properties[] = $stmt;
44 } elseif ($stmt instanceof Stmt\ClassMethod) {
45 $this->methods[] = $stmt;
46 } elseif ($stmt instanceof Stmt\TraitUse) {
47 $this->uses[] = $stmt;
48 } elseif ($stmt instanceof Stmt\ClassConst) {
49 $this->constants[] = $stmt;
51 throw new \LogicException(sprintf('Unexpected node of type "%s"', $stmt->getType()));