Re-arrange source code and tests

This commit is contained in:
Guille Gonzalez
2026-01-04 07:01:24 +01:00
parent 0e865739f5
commit fe6df90c4a
18 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
import Foundation
extension Math {
final class Underline: Atom {
var innerList: AtomList?
override var finalized: Math.Atom {
let finalized = super.finalized
if let underline = finalized as? Underline {
underline.innerList = underline.innerList?.finalized
}
return finalized
}
init(_ underline: Underline) {
self.innerList = underline.innerList.map { AtomList($0) }
super.init(underline)
}
init(innerList: AtomList? = nil) {
self.innerList = innerList
super.init(type: .underline)
}
}
}