mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
First pass at semantic tokens
This commit is contained in:
parent
0437645293
commit
ce6c340ebc
10 changed files with 981 additions and 34 deletions
|
@ -30,6 +30,10 @@ impl Region {
|
|||
self.start == self.end
|
||||
}
|
||||
|
||||
pub const fn len(&self) -> u32 {
|
||||
self.end.offset - self.start.offset
|
||||
}
|
||||
|
||||
pub fn span_across(start: &Region, end: &Region) -> Self {
|
||||
Region {
|
||||
start: start.start,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue