Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diviner/atomizer/DivinerPHPAtomizer.php
Show First 20 Lines • Show All 122 Lines • ▼ Show 20 Lines | foreach ($class_types as $atom_type => $node_type) { | ||||
} | } | ||||
} | } | ||||
return $atoms; | return $atoms; | ||||
} | } | ||||
private function parseParams(DivinerAtom $atom, AASTNode $func) { | private function parseParams(DivinerAtom $atom, AASTNode $func) { | ||||
$params = $func | $params = $func | ||||
->getChildByIndex(3, 'n_DECLARATAION_PARAMETER_LIST') | ->getChildOfType(3, 'n_DECLARATAION_PARAMETER_LIST') | ||||
->selectDescendantsOfType('n_DECLARATION_PARAMETER'); | ->selectDescendantsOfType('n_DECLARATION_PARAMETER'); | ||||
$param_spec = array(); | $param_spec = array(); | ||||
if ($atom->getDocblockRaw()) { | if ($atom->getDocblockRaw()) { | ||||
$metadata = $atom->getDocblockMeta(); | $metadata = $atom->getDocblockMeta(); | ||||
} else { | } else { | ||||
$metadata = array(); | $metadata = array(); | ||||
▲ Show 20 Lines • Show All 199 Lines • Show Last 20 Lines |