mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
some work on expect comment regions
This commit is contained in:
parent
7597d11b59
commit
5a93da5a11
3 changed files with 20 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue