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

Method read

tools/gyp/pylib/packaging/_tokenizer.py:143–151  ·  view source on GitHub ↗

Consume the next token and return it.

(self)

Source from the content-addressed store, hash-verified

141 return self.read()
142
143 def read(self) -> Token:
144 """Consume the next token and return it."""
145 token = self.next_token
146 assert token is not None
147
148 self.position += len(token.text)
149 self.next_token = None
150
151 return token
152
153 def raise_syntax_error(
154 self,

Callers 15

consumeMethod · 0.95
expectMethod · 0.95
enclosing_tokensMethod · 0.95
ExecuteFunction · 0.45
hasInvalidHashBangFunction · 0.45
pipeFunction · 0.45
parse_optionsFunction · 0.45
mainFunction · 0.45
ProcessFileFunction · 0.45
getnodeversion.pyFile · 0.45
LoadPythonDictionaryFunction · 0.45

Calls

no outgoing calls

Tested by 4

ExecuteFunction · 0.36
run_testMethod · 0.36
_ExpectedWarningsMethod · 0.36
assert_fileFunction · 0.36