@@ -48,7 +48,7 @@ generator DoublyLinked(A: Class, B: Class, cascadeDelete:bool = false,
48
48
if isnull(prevChild) {
49
49
self.insert$labelB$B(child)
50
50
} else {
51
- nextChild = prevChild.next$A$labelB$B
51
+ nextChild = prevChild! .next$A$labelB$B
52
52
if isnull(nextChild) {
53
53
self.append$labelB$B(child)
54
54
} else {
@@ -124,21 +124,21 @@ generator DoublyLinked(A: Class, B: Class, cascadeDelete:bool = false,
124
124
}
125
125
126
126
iterator $labelB$pluralB(self) {
127
- for child = self.first$labelB$B, !isnull(child), child = child.next$A$labelB$B {
127
+ for child = self.first$labelB$B, !isnull(child), child = child! .next$A$labelB$B {
128
128
yield child!
129
129
}
130
130
}
131
131
132
132
iterator reverse$labelB$pluralB(self) {
133
- for child = self.last$labelB$B, !isnull(child), child = child.prev$A$labelB$B {
133
+ for child = self.last$labelB$B, !isnull(child), child = child! .prev$A$labelB$B {
134
134
yield child!
135
135
}
136
136
}
137
137
138
138
iterator safe$labelB$pluralB(self) {
139
139
child = self.first$labelB$B
140
140
while !isnull(child) {
141
- next$A$labelB$B = child.next$A$labelB$B
141
+ next$A$labelB$B = child! .next$A$labelB$B
142
142
yield child!
143
143
child = next$A$labelB$B
144
144
}
@@ -147,7 +147,7 @@ generator DoublyLinked(A: Class, B: Class, cascadeDelete:bool = false,
147
147
iterator safeReverse$labelB$pluralB(self) {
148
148
child = self.last$labelB$B
149
149
while !isnull(child) {
150
- prev$A$labelB$B = child.prev$A$labelB$B
150
+ prev$A$labelB$B = child! .prev$A$labelB$B
151
151
yield child!
152
152
child = prev$A$labelB$B
153
153
}
0 commit comments