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

Function describe_token_expr

tools/inspector_protocol/jinja2/lexer.py:178–186  ·  view source on GitHub ↗

Like `describe_token` but for token expressions.

(expr)

Source from the content-addressed store, hash-verified

176
177
178def describe_token_expr(expr):
179 """Like `describe_token` but for token expressions."""
180 if ':' in expr:
181 type, value = expr.split(':', 1)
182 if type == 'name':
183 return value
184 else:
185 type = expr
186 return _describe_token_type(type)
187
188
189def count_newlines(value):

Callers 2

_fail_ut_eofMethod · 0.90
expectMethod · 0.70

Calls 2

_describe_token_typeFunction · 0.70
splitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…