Add Context::position
This commit is contained in:
parent
53a964704f
commit
7ab8326cbf
|
@ -516,4 +516,9 @@ impl<'a> ContextBase<'a, &'a Positioned<Field>> {
|
||||||
.map(|alias| alias.node)
|
.map(|alias| alias.node)
|
||||||
.unwrap_or_else(|| self.item.name.node)
|
.unwrap_or_else(|| self.item.name.node)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Get the position of the current field in the query code.
|
||||||
|
pub fn position(&self) -> Pos {
|
||||||
|
self.pos
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user