@@ -264,7 +264,7 @@ func parsePercentageRatio(source string, range_ Range) *RatioLiteral {
264
264
}
265
265
}
266
266
267
- func parseAllotment (allotmentCtx parser.IAllotmentContext ) SourceAllotmentValue {
267
+ func parseAllotment (allotmentCtx parser.IAllotmentContext ) AllotmentValue {
268
268
switch allotmentCtx := allotmentCtx .(type ) {
269
269
case * parser.PortionedAllotmentContext :
270
270
return parsePortionSource (allotmentCtx .Portion ())
@@ -281,7 +281,7 @@ func parseAllotment(allotmentCtx parser.IAllotmentContext) SourceAllotmentValue
281
281
return nil
282
282
283
283
default :
284
- return utils.NonExhaustiveMatchPanic [SourceAllotmentValue ](allotmentCtx .GetText ())
284
+ return utils.NonExhaustiveMatchPanic [AllotmentValue ](allotmentCtx .GetText ())
285
285
}
286
286
}
287
287
@@ -446,7 +446,7 @@ func parseKeptOrDestination(clauseCtx parser.IKeptOrDestinationContext) KeptOrDe
446
446
447
447
}
448
448
449
- func parseDestinationAllotment (allotmentCtx parser.IAllotmentContext ) DestinationAllotmentValue {
449
+ func parseDestinationAllotment (allotmentCtx parser.IAllotmentContext ) AllotmentValue {
450
450
switch allotmentCtx := allotmentCtx .(type ) {
451
451
case * parser.RemainingAllotmentContext :
452
452
return & RemainingAllotment {
@@ -463,11 +463,11 @@ func parseDestinationAllotment(allotmentCtx parser.IAllotmentContext) Destinatio
463
463
return nil
464
464
465
465
default :
466
- return utils.NonExhaustiveMatchPanic [DestinationAllotmentValue ](allotmentCtx .GetText ())
466
+ return utils.NonExhaustiveMatchPanic [AllotmentValue ](allotmentCtx .GetText ())
467
467
}
468
468
}
469
469
470
- func parseDestinationPortion (portionCtx parser.IPortionContext ) DestinationAllotmentValue {
470
+ func parseDestinationPortion (portionCtx parser.IPortionContext ) AllotmentValue {
471
471
switch portionCtx .(type ) {
472
472
case * parser.RatioContext :
473
473
return parseRatio (portionCtx .GetText (), ctxToRange (portionCtx ))
@@ -479,7 +479,7 @@ func parseDestinationPortion(portionCtx parser.IPortionContext) DestinationAllot
479
479
return nil
480
480
481
481
default :
482
- return utils.NonExhaustiveMatchPanic [DestinationAllotmentValue ](portionCtx .GetText ())
482
+ return utils.NonExhaustiveMatchPanic [AllotmentValue ](portionCtx .GetText ())
483
483
}
484
484
}
485
485
0 commit comments