MCPcopy Index your code
hub / github.com/nodejs/node / describe_token

Function describe_token

tools/inspector_protocol/jinja2/lexer.py:171–175  ·  view source on GitHub ↗

Returns a description of the token.

(token)

Source from the content-addressed store, hash-verified

169
170
171def describe_token(token):
172 """Returns a description of the token."""
173 if token.type == 'name':
174 return token.value
175 return _describe_token_type(token.type)
176
177
178def describe_token_expr(expr):

Callers 3

parse_primaryMethod · 0.90
parse_tupleMethod · 0.90
expectMethod · 0.70

Calls 1

_describe_token_typeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…