Skip to content

Commit

Permalink
running diagnostics for destination oneof
Browse files Browse the repository at this point in the history
  • Loading branch information
ascandone committed Jan 20, 2025
1 parent 452d1cb commit 7e6572b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions internal/analysis/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,13 @@ func (res *CheckResult) checkDestination(destination parser.Destination) {
}
res.checkKeptOrDestination(destination.Remaining)

case *parser.DestinationOneof:
for _, clause := range destination.Clauses {
res.checkExpression(clause.Cap, TypeMonetary)
res.checkKeptOrDestination(clause.To)
}
res.checkKeptOrDestination(destination.Remaining)

Check warning on line 543 in internal/analysis/check.go

View check run for this annotation

Codecov / codecov/patch

internal/analysis/check.go#L538-L543

Added lines #L538 - L543 were not covered by tests

case *parser.DestinationAllotment:
var remainingAllotment *parser.RemainingAllotment
var variableLiterals []parser.Variable
Expand Down

0 comments on commit 7e6572b

Please sign in to comment.