MCPcopy Index your code
hub / github.com/andialbrecht/sqlparse / flatten

Method flatten

sqlparse/sql.py:207–216  ·  view source on GitHub ↗

Generator yielding ungrouped tokens. This method is recursively called for all child tokens.

(self)

Source from the content-addressed store, hash-verified

205 idx = end
206
207 def flatten(self):
208 """Generator yielding ungrouped tokens.
209
210 This method is recursively called for all child tokens.
211 """
212 for token in self.tokens:
213 if token.is_group:
214 yield from token.flatten()
215 else:
216 yield token
217
218 def get_sublists(self):
219 for token in self.tokens:

Callers 2

__str__Method · 0.95
get_token_at_offsetMethod · 0.95

Calls 1

flattenMethod · 0.45

Tested by

no test coverage detected