MCPcopy Create free account
hub / github.com/hashintel/hash / offset

Method offset

libs/@local/hashql/syntax-jexpr/src/lexer/number.rs:85–90  ·  view source on GitHub ↗
(self, offset: TextSize)

Source from the content-addressed store, hash-verified

83
84impl Parts {
85 fn offset(self, offset: TextSize) -> Self {
86 let dot = self.dot.map(|dot| dot + offset);
87 let exp = self.exp.map(|exp| exp + offset);
88
89 Self { dot, exp }
90 }
91}
92
93impl From<hifijson::num::Parts> for Parts {

Callers 7

parseMethod · 0.45
parse_expr_from_stringFunction · 0.45
parse_type_from_stringFunction · 0.45
parse_labelled_argumentFunction · 0.45
parse_structFunction · 0.45
transpile_offsetFunction · 0.45

Calls 1

mapMethod · 0.45

Tested by 1

transpile_offsetFunction · 0.36