mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-03 07:04:53 +00:00
![]() We currently keep two separate pieces of state regarding the current loop on `SemanticIndexBuilder`. One is an enum simply reflecting whether we are currently inside a loop, and the other is the saved flow states for `break` statements found in the current loop. For adding loopy control flow, I'll need to add some additional loop state (`continue` states, for example). Prepare for this by consolidating our existing loop state into a single struct and simplifying the API for pushing and popping a loop. This is purely a refactor, so tests are not changed. --------- Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> |
||
---|---|---|
.. | ||
module_resolver | ||
semantic_index | ||
types | ||
util | ||
ast_node_ref.rs | ||
db.rs | ||
lib.rs | ||
lint.rs | ||
module_name.rs | ||
node_key.rs | ||
program.rs | ||
python_platform.rs | ||
semantic_index.rs | ||
semantic_model.rs | ||
site_packages.rs | ||
suppression.rs | ||
symbol.rs | ||
types.rs | ||
unpack.rs |