MCPcopy Index your code
hub / github.com/python/cpython / replaceText

Method replaceText

Tools/cases_generator/lexer.py:281–283  ·  view source on GitHub ↗
(self, txt: str)

Source from the content-addressed store, hash-verified

279 return self.end[1] - self.begin[1]
280
281 def replaceText(self, txt: str) -> "Token":
282 assert isinstance(txt, str)
283 return Token(self.filename, self.kind, txt, self.begin, self.end)
284
285 def __repr__(self) -> str:
286 b0, b1 = self.begin

Callers

nothing calls this directly

Calls 1

TokenClass · 0.70

Tested by

no test coverage detected