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

Method span

libs/@local/hashql/ast/src/node/path.rs:33–38  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

31impl PathSegmentArgument<'_> {
32 #[must_use]
33 pub const fn span(&self) -> SpanId {
34 match self {
35 PathSegmentArgument::Argument(argument) => argument.span,
36 PathSegmentArgument::Constraint(constraint) => constraint.span,
37 }
38 }
39}
40
41/// A segment in a path expression.

Callers 6

emitMethod · 0.45
expandFunction · 0.45
expand_deriveFunction · 0.45
expand_defineFunction · 0.45
filter_labelsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected