mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-09 05:08:21 +00:00
Change model: &SemanticModel
to semantic: &SemanticModel
(#6406)
Use the same naming conventions everywhere. See: https://github.com/astral-sh/ruff/pull/6314/files#r1284457874.
This commit is contained in:
parent
404e334fec
commit
3d06fe743d
12 changed files with 42 additions and 41 deletions
|
@ -1113,7 +1113,7 @@ impl<'a> SemanticModel<'a> {
|
|||
exceptions
|
||||
}
|
||||
|
||||
/// Generate a [`Snapshot`] of the current model.
|
||||
/// Generate a [`Snapshot`] of the current semantic model.
|
||||
pub fn snapshot(&self) -> Snapshot {
|
||||
Snapshot {
|
||||
scope_id: self.scope_id,
|
||||
|
@ -1124,7 +1124,7 @@ impl<'a> SemanticModel<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
/// Restore the model to the given [`Snapshot`].
|
||||
/// Restore the semantic model to the given [`Snapshot`].
|
||||
pub fn restore(&mut self, snapshot: Snapshot) {
|
||||
let Snapshot {
|
||||
scope_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue