diff --git a/modules/core/src/main/scala/playground/smithyql/RangeIndex.scala b/modules/core/src/main/scala/playground/smithyql/RangeIndex.scala index c5a98561..144fd96e 100644 --- a/modules/core/src/main/scala/playground/smithyql/RangeIndex.scala +++ b/modules/core/src/main/scala/playground/smithyql/RangeIndex.scala @@ -45,8 +45,7 @@ object RangeIndex { } override def onStruct(node: playground.generated.nodes.Struct): List[ContextRange] = - ContextRange(node.range, base) :: - ContextRange(node.range.shrink1, base.inStructBody) :: + ContextRange(node.range.shrink1, base.inStructBody) :: node.bindings.toList.flatMap { binding => (binding.key, binding.value).tupled.toList.flatMap { (key, value) => ContextRange(value.range, base.inStructBody.inStructValue(key.source)) ::