mirror of
https://github.com/nushell/nushell.git
synced 2025-08-15 16:03:17 +02:00
Nushell internal commands. Anchor locations tracker surveying. (#2635)
This commit is contained in:
committed by
GitHub
parent
0adf2accdd
commit
ae1d4bdb4c
@ -314,6 +314,13 @@ impl Tag {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn anchored(self, anchor: Option<AnchorLocation>) -> Tag {
|
||||
Tag {
|
||||
anchor,
|
||||
span: self.span,
|
||||
}
|
||||
}
|
||||
|
||||
/// Creates a `Tag` from the given `Span` with no `AnchorLocation`
|
||||
pub fn unknown_anchor(span: Span) -> Tag {
|
||||
Tag { anchor: None, span }
|
||||
|
Reference in New Issue
Block a user