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

Method look

tools/inspector_protocol/jinja2/lexer.py:325–331  ·  view source on GitHub ↗

Look at the next token.

(self)

Source from the content-addressed store, hash-verified

323 self._pushed.append(token)
324
325 def look(self):
326 """Look at the next token."""
327 old_token = next(self)
328 result = self.current
329 self.push(result)
330 self.current = old_token
331 return result
332
333 def skip(self, n=1):
334 """Got n tokens ahead."""

Callers 6

parse_import_contextMethod · 0.45
parse_includeMethod · 0.45
parse_contextMethod · 0.45
parse_assign_targetMethod · 0.45
parse_compareMethod · 0.45
parse_callMethod · 0.45

Calls 2

pushMethod · 0.95
nextFunction · 0.50

Tested by

no test coverage detected