Remove separate ReferenceContext enum (#4631)

This commit is contained in:
Charlie Marsh 2023-05-24 11:12:38 -04:00 committed by GitHub
parent 86ced3516b
commit fcdc7bdd33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 30 additions and 61 deletions

View file

@ -7,6 +7,7 @@ use ruff_index::{newtype_index, IndexSlice, IndexVec};
use ruff_python_ast::helpers;
use ruff_python_ast::source_code::Locator;
use crate::context::ExecutionContext;
use crate::model::SemanticModel;
use crate::node::NodeId;
use crate::reference::ReferenceId;
@ -272,9 +273,3 @@ bitflags! {
const IMPORT_ERROR = 0b0000_0100;
}
}
#[derive(Copy, Debug, Clone, is_macro::Is)]
pub enum ExecutionContext {
Runtime,
Typing,
}