TraverseSplat Traverser placeholder

This will eventually deal with splats in traversals, but isn't yet
properly implemented.
This commit is contained in:
Martin Atkins 2017-05-22 18:48:06 -07:00
parent a2d829cafc
commit 73b5ba8089
1 changed files with 11 additions and 0 deletions

View File

@ -345,3 +345,14 @@ func (tn TraverseIndex) TraversalStep(val cty.Value) (cty.Value, Diagnostics) {
}
}
}
// TraverseSplat applies the splat operation to its initial value.
type TraverseSplat struct {
isTraverser
Each Traversal
SrcRange Range
}
func (tn TraverseSplat) TraversalStep(val cty.Value) (cty.Value, Diagnostics) {
panic("TraverseSplat not yet implemented")
}