@@ -99,12 +99,12 @@ impl<'db> File {
9999 pub ( crate ) fn definition (
100100 self ,
101101 db : & ' db dyn Db ,
102- scope : ScopeId ,
102+ scope_id : ScopeId ,
103103 def_id : DefinitionId ,
104104 ) -> Option < Definition < ' db > > {
105105 self . definitions ( db)
106106 . by_site
107- . get ( & DefinitionSite { scope , def_id } )
107+ . get ( & DefinitionSite { scope_id , def_id } )
108108 . copied ( )
109109 }
110110
@@ -121,12 +121,12 @@ impl<'db> File {
121121 let index = self . semantic_index ( db) ;
122122 let mut by_site = FxHashMap :: default ( ) ;
123123
124- for scope in index. scope_ids ( ) {
125- let symbols = index. symbols ( scope ) ;
126- for ( def_id, def) in index. definitions ( scope ) . iter ( ) {
124+ for scope_id in index. scope_ids ( ) {
125+ let symbols = index. symbols ( scope_id ) ;
126+ for ( def_id, def) in index. definitions ( scope_id ) . iter ( ) {
127127 let name = Name :: new ( db, symbols. symbol ( def. symbol ( ) ) . name ( ) ) ;
128- let definition = Definition :: new ( db, self , scope , name, def. kind ( ) . clone ( ) ) ;
129- by_site. insert ( DefinitionSite { scope , def_id } , definition) ;
128+ let definition = Definition :: new ( db, self , scope_id , name, def. kind ( ) . clone ( ) ) ;
129+ by_site. insert ( DefinitionSite { scope_id , def_id } , definition) ;
130130 }
131131 }
132132
@@ -145,6 +145,6 @@ struct FileDefinitions<'db> {
145145/// Mirrors ty's `DefinitionNodeKey`.
146146#[ derive( Debug , Clone , Copy , PartialEq , Eq , Hash , salsa:: Update ) ]
147147struct DefinitionSite {
148- scope : ScopeId ,
148+ scope_id : ScopeId ,
149149 def_id : DefinitionId ,
150150}
0 commit comments