some work on expect comment regions

This commit is contained in:
Folkert 2022-07-19 00:32:04 +02:00 committed by Richard Feldman
parent 7597d11b59
commit 5a93da5a11
No known key found for this signature in database
GPG key ID: 7E4127D1E4241798
3 changed files with 20 additions and 4 deletions

View file

@ -5014,6 +5014,10 @@ fn build_pending_specializations<'a>(
is_self_recursive: false,
};
// TODO use the region of the preceding comment (stored as the Symbol's regino)
// let name_region = declarations.symbols[index].region;
// let expr_region = declarations.expressions[index].region;
// let region = Region::span_across(&name_region, &expr_region);
let region = declarations.expressions[index].region;
toplevel_expects.insert(symbol, region);