Returns the scope where the unpack target expression belongs to.
(self, db: &'db dyn Db)
| 72 | |
| 73 | /// Returns the scope where the unpack target expression belongs to. |
| 74 | pub fn target_scope(self, db: &'db dyn Db) -> ScopeId<'db> { |
| 75 | self.target_file_scope(db) |
| 76 | .to_scope_id(db, self.program_file(db)) |
| 77 | } |
| 78 | |
| 79 | pub fn program(self, db: &'db dyn Db) -> Program<'db> { |
| 80 | self.target_scope(db).program(db) |
no test coverage detected