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

Method returnTokenToPool

php5/parser.go:218–226  ·  view source on GitHub ↗
(yyDollar []yySymType, yyVAL *yySymType)

Source from the content-addressed store, hash-verified

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

Callers 1

ParseMethod · 0.45

Implementers 2

Parserphp7/parser.go
Parserphp5/parser.go

Calls 1

ReturnTokenToPoolMethod · 0.65

Tested by

no test coverage detected