File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
Sources/SwiftWarningControl
Tests/SwiftWarningControlTest Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ private class WarningControlRegionNode {
254254
255255 /// Add a child region that is directly nested within this region
256256 func addChild( _ node: WarningControlRegionNode ) {
257- precondition ( range. contains ( node. range) )
257+ precondition ( range. lowerBound <= node. range. lowerBound && range . upperBound >= node . range . upperBound )
258258 children. append ( node)
259259 children. sort ( )
260260 }
Original file line number Diff line number Diff line change @@ -386,8 +386,6 @@ private func assertWarningGroupControl(
386386 groupInheritanceTree: groupInheritanceTree
387387 )
388388
389- print ( warningControlRegions. debugDescription)
390-
391389 let groupControl = token. warningGroupControl (
392390 for: diagnosticGroupID,
393391 globalControls: globalControls,
You can’t perform that action at this time.
0 commit comments