Lines Matching refs:tokens
69 $tokens = $phpcsFile->getTokens();
75 if ($tokens[$commentEnd]['code'] === T_COMMENT) {
80 if ($tokens[$commentEnd]['code'] !== T_DOC_COMMENT_CLOSE_TAG
81 && $tokens[$commentEnd]['code'] !== T_COMMENT
87 $currScopeEnd = $tokens[$currScope]['scope_closer'];
112 if ($tokens[$nextToken]['code'] === T_NEW) {
139 $throwTokens[] = $tokens[$currException]['content'];
144 } else if ($tokens[$nextToken]['code'] === T_VARIABLE) {
149 $tokens[$currScope]['scope_opener'],
162 $tokens[$catch]['parenthesis_opener'],
163 $tokens[$catch]['parenthesis_closer'],
174 $tokens[$catch]['parenthesis_closer'],
185 $tokens[$catch]["parenthesis_closer"],
192 … if ($tokens[$thrownVar]['content'] === $tokens[$nextToken]['content']) {
212 $commentStart = $tokens[$commentEnd]['comment_opener'];
213 foreach ($tokens[$commentStart]['comment_tags'] as $tag) {
214 if ($tokens[$tag]['content'] !== '@throws') {
218 if ($tokens[($tag + 2)]['code'] === T_DOC_COMMENT_STRING) {
219 $exception = $tokens[($tag + 2)]['content'];