MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / PopToken

Function PopToken

tests/external/gmock-1.7.0/gtest/scripts/pump.py:453–460  ·  view source on GitHub ↗
(a_list, token_type=None)

Source from the content-addressed store, hash-verified

451
452
453def PopToken(a_list, token_type=None):
454 token = PopFront(a_list)
455 if token_type is not None and token.token_type != token_type:
456 print 'ERROR: %s expected at %s' % (token_type, token.start)
457 print 'ERROR: %s found instead' % (token,)
458 sys.exit(1)
459
460 return token
461
462
463def PeekToken(a_list):

Callers 1

PopFunction · 0.85

Calls 1

PopFrontFunction · 0.85

Tested by

no test coverage detected