MCPcopy Create free account
hub / github.com/z7zmey/php-parser / returnTokenToPool

Method returnTokenToPool

php7/parser.go:217–225  ·  view source on GitHub ↗
(yyDollar []yySymType, yyVAL *yySymType)

Source from the content-addressed store, hash-verified

215}
216
217func (p *Parser) returnTokenToPool(yyDollar []yySymType, yyVAL *yySymType) {
218 for i := 1; i < len(yyDollar); i++ {
219 if yyDollar[i].token != nil {
220 p.Lexer.ReturnTokenToPool(yyDollar[i].token)
221 }
222 yyDollar[i].token = nil
223 }
224 yyVAL.token = nil
225}

Callers 1

ParseMethod · 0.45

Implementers 2

Parserphp7/parser.go
Parserphp5/parser.go

Calls 1

ReturnTokenToPoolMethod · 0.65

Tested by

no test coverage detected