Lines Matching refs:scope
96 scope: *const Entry,
118 scope: &EMPTY_ENTRY.0,
126 unsafe fn create(mut ptr: *const Entry, scope: *const Entry) -> Self {
128 // past it, unless `ptr == scope`, which means that we're at the edge of
129 // our cursor's scope. We should only have `ptr != scope` at the exit
132 if ptr == scope {
140 scope,
155 /// point at the first token in the group (with the same scope end).
157 unsafe { Cursor::create(self.ptr.offset(1), self.scope) }
176 /// scope.
178 // We're at eof if we're at the end of our scope.
179 self.ptr == self.scope
197 let after_group = unsafe { Cursor::create(end_of_group, self.scope) };
211 let after_group = unsafe { Cursor::create(end_of_group, self.scope) };
221 let after_group = unsafe { Cursor::create(end_of_group, self.scope) };
306 let rest = unsafe { Cursor::create(self.ptr.add(len), self.scope) };
369 Some(unsafe { Cursor::create(self.ptr.add(len), self.scope) })
400 a.scope == b.scope
409 match &*cursor.scope {
410 Entry::End(offset) => cursor.scope.offset(*offset),