mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 21:34:57 +00:00
Remove separate ReferenceContext
enum (#4631)
This commit is contained in:
parent
86ced3516b
commit
fcdc7bdd33
7 changed files with 30 additions and 61 deletions
7
crates/ruff_python_semantic/src/context.rs
Normal file
7
crates/ruff_python_semantic/src/context.rs
Normal file
|
@ -0,0 +1,7 @@
|
|||
#[derive(Debug, Copy, Clone, is_macro::Is)]
|
||||
pub enum ExecutionContext {
|
||||
/// The reference occurs in a runtime context.
|
||||
Runtime,
|
||||
/// The reference occurs in a typing-only context.
|
||||
Typing,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue