Lines Matching refs:token
130 foreach ($this as $token) {
131 $buffer .= $token;
161 $token = $tokens[$i];
164 if (is_array($token)) {
165 $name = substr(token_name($token[0]), 2);
166 $text = $token[1];
178 $text = $token;
179 $tokenClass = self::$customTokens[$token];
305 foreach ($this->tokens as $token) {
306 switch (get_class($token)) {
311 $this->includes[$token->getType()][] = $token->getName();
360 foreach ($this->tokens as $token) {
361 switch (get_class($token)) {
366 $interface = $token->getName();
367 $interfaceEndLine = $token->getEndLine();
371 'parent' => $token->getParent(),
372 'keywords' => $token->getKeywords(),
373 'docblock' => $token->getDocblock(),
374 'startLine' => $token->getLine(),
376 'package' => $token->getPackage(),
385 'parent' => $token->getParent(),
386 'interfaces'=> $token->getInterfaces(),
387 'keywords' => $token->getKeywords(),
388 'docblock' => $token->getDocblock(),
389 'startLine' => $token->getLine(),
390 'endLine' => $token->getEndLine(),
391 'package' => $token->getPackage(),
395 if ($token instanceof PHP_Token_CLASS) {
396 $class[] = $token->getName();
397 $classEndLine[] = $token->getEndLine();
401 $trait = $token->getName();
402 $traitEndLine = $token->getEndLine();
408 $name = $token->getName();
410 'docblock' => $token->getDocblock(),
411 'keywords' => $token->getKeywords(),
412 'visibility'=> $token->getVisibility(),
413 'signature' => $token->getSignature(),
414 'startLine' => $token->getLine(),
415 'endLine' => $token->getEndLine(),
416 'ccn' => $token->getCCN(),
453 $classEndLine[count($classEndLine) - 1] == $token->getLine()) {
457 $traitEndLine == $token->getLine()) {
461 $interfaceEndLine == $token->getLine()) {