Lines Matching +full:github +full:- +full:token
42 $classinfo = $this->getClassUses($context);
58 $class = $this->resolve($classalias, $context);
61 if (isset($this->classDocs[$class])) {
63 $this->classDocs[$class] = new DocBlockClass($reflector);
66 return $this->classDocs[$class];
77 if (!isset($this->classUses[$class])) {
79 $source = $this->readSource($reflector->getFileName(), $reflector->getStartLine());
80 $this->classUses[$class] = [
81 'ownNS' => $reflector->getNamespaceName(),
82 'uses' => $this->tokenizeSource($source)
85 return $this->classUses[$class];
91 * This is a simplified version of the code by @jasondmoss - we do not support multiple
94 * @link https://gist.github.com/jasondmoss/6200807
110 foreach ($tokens as $token) {
111 if (!is_array($token)) {
123 $tokenname = token_name($token[0]);
125 if ($token[0] === T_CLASS) {
129 if ($token[0] === T_USE) {
134 if ($token[0] === T_AS) {
140 switch ($token[0]) {
143 … case defined('T_NAME_QUALIFIED') ? T_NAME_QUALIFIED : -1: // PHP 7.4 compatibility
144 $currentUse[$record] .= $token[1];