summaryrefslogtreecommitdiff
path: root/dhall
diff options
context:
space:
mode:
authorNadrieril Feneanar2020-01-16 18:20:51 +0000
committerGitHub2020-01-16 18:20:51 +0000
commit001ba99abcd84a83fb6f63b86792af3569d6c68d (patch)
tree4e19a23be2205cc2a2267eada6aabf79b631c9df /dhall
parent20be0a856a8e317418b6674262baa05653f79832 (diff)
parentbc12f1179143f20a54664ba8ce51d24834d2f1ff (diff)
Merge pull request #125 from Nadrieril/improve-api
Improve API
Diffstat (limited to '')
-rw-r--r--dhall/src/syntax/ast/text.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/dhall/src/syntax/ast/text.rs b/dhall/src/syntax/ast/text.rs
index fb390ee..83aaf9a 100644
--- a/dhall/src/syntax/ast/text.rs
+++ b/dhall/src/syntax/ast/text.rs
@@ -97,6 +97,10 @@ impl<SubExpr> InterpolatedText<SubExpr> {
&self.head
}
+ pub fn tail(&self) -> &Vec<(SubExpr, String)> {
+ &self.tail
+ }
+
pub fn head_mut(&mut self) -> &mut String {
&mut self.head
}