diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2023-08-12 11:34:57 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2023-08-12 11:34:57 +0100 |
commit | db8aef62e629b1bac2c72bb2590ba4caa90aa8d9 (patch) | |
tree | 9058546eb10974f2d4a61007b5395953a54ef06e /src/steps.rs | |
parent | 985ec2f83c9f679ff9b50c6d1e856db2502c3114 (diff) | |
download | subplot-db8aef62e629b1bac2c72bb2590ba4caa90aa8d9.tar.gz |
subplot: Enable passing of location into the template expansion
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'src/steps.rs')
-rw-r--r-- | src/steps.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/steps.rs b/src/steps.rs index 43e66e2..d9d1725 100644 --- a/src/steps.rs +++ b/src/steps.rs @@ -84,6 +84,10 @@ impl ScenarioStep { } Ok(ScenarioStep::new(kind, keyword, &joined, origin)) } + + pub(crate) fn origin(&self) -> &Location { + &self.origin + } } impl fmt::Display for ScenarioStep { |