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

Method tokens

Tools/cases_generator/parsing.py:56–63  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

54
55 @property
56 def tokens(self) -> list[lx.Token]:
57 context = self.context
58 if not context:
59 return []
60 tokens = context.owner.tokens
61 begin = context.begin
62 end = context.end
63 return tokens[begin:end]
64
65 @property
66 def first_token(self) -> lx.Token:

Callers 10

is_superMethod · 0.45
variable_usedFunction · 0.45
is_largeFunction · 0.45
tokensMethod · 0.45
tokensMethod · 0.45
tokensMethod · 0.45
tokensMethod · 0.45
tokensMethod · 0.45
uses_thisFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected