Lines Matching refs:token
290 zval token; in add_token() local
293 ZVAL_OBJ(&token, obj); in add_token()
310 array_init_size(&token, 3); in add_token()
311 zend_hash_real_init_packed(Z_ARRVAL(token)); in add_token()
312 ZEND_HASH_FILL_PACKED(Z_ARRVAL(token)) { in add_token()
321 ZVAL_STR(&token, make_str(text, leng, interned_strings)); in add_token()
323 zend_hash_next_index_insert_new(Z_ARRVAL_P(return_value), &token); in add_token()
330 zval token; in tokenize() local
345 while ((token_type = lex_scan(&token, NULL))) { in tokenize()
352 if (Z_TYPE(token) != IS_UNDEF) { in tokenize()
353 zval_ptr_dtor_nogc(&token); in tokenize()
354 ZVAL_UNDEF(&token); in tokenize()
418 zend_php_scanner_event event, int token, int line, in on_event() argument
425 if (token == END) break; in on_event()
427 if (token == ';' && LANG_SCNG(yy_leng) > 1) { /* ?> or ?>\n or ?>\r\n */ in on_event()
428 token = T_CLOSE_TAG; in on_event()
429 } else if (token == T_ECHO && LANG_SCNG(yy_leng) == sizeof("<?=") - 1) { in on_event()
430 token = T_OPEN_TAG_WITH_ECHO; in on_event()
433 ctx->tokens, token, (unsigned char *) text, length, line, ctx->token_class, NULL); in on_event()
445 ZVAL_LONG(id_zv, token); in on_event()