MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / arrow_at

Function arrow_at

codegraph-kernel/src/cfnptr.rs:817–825  ·  view source on GitHub ↗
(s: &[u8], i: usize)

Source from the content-addressed store, hash-verified

815}
816
817#[inline]
818fn arrow_at(s: &[u8], i: usize) -> Option<usize> {
819 if s.get(i) == Some(&b'-') && s.get(i + 1) == Some(&b'>') {
820 Some(i + 2)
821 } else if s.get(i) == Some(&b'.') {
822 Some(i + 1)
823 } else {
824 None
825 }
826}
827
828type Range = (usize, usize);

Callers 2

field_assign_atFunction · 0.85
arrow_tailFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected