File tree Expand file tree Collapse file tree 1 file changed +14
-13
lines changed Expand file tree Collapse file tree 1 file changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -205,19 +205,20 @@ extension Metadata {
205
205
206
206
func propertyDescriptions( ) -> [ Property . Description ] ? {
207
207
let propsAndStp = _propertyDescriptionsAndStartPoint ( )
208
- if let firstInstanceStart = propsAndStp? . 1 ,
209
- let firstProperty = propsAndStp? . 0 . first? . offset {
210
- return propsAndStp? . 0 . map ( { ( propertyDesc) -> Property . Description in
211
- if firstInstanceStart >= firstProperty {
212
- let offset = propertyDesc. offset - firstProperty + Int( firstInstanceStart)
213
- return Property . Description ( key: propertyDesc. key, type: propertyDesc. type, offset: offset)
214
- } else {
215
- return propertyDesc
216
- }
217
- } )
218
- } else {
219
- return propsAndStp? . 0
220
- }
208
+ // if let firstInstanceStart = propsAndStp?.1,
209
+ // let firstProperty = propsAndStp?.0.first?.offset {
210
+ // return propsAndStp?.0.map({ (propertyDesc) -> Property.Description in
211
+ // if firstInstanceStart >= firstProperty {
212
+ // let offset = propertyDesc.offset - firstProperty + Int(firstInstanceStart)
213
+ // return Property.Description(key: propertyDesc.key, type: propertyDesc.type, offset: offset)
214
+ // } else {
215
+ // return propertyDesc
216
+ // }
217
+ // })
218
+ // } else {
219
+ // return propsAndStp?.0
220
+ // }
221
+ return propsAndStp? . 0
221
222
}
222
223
}
223
224
}
You can’t perform that action at this time.
0 commit comments