File tree Expand file tree Collapse file tree 2 files changed +18
-12
lines changed Expand file tree Collapse file tree 2 files changed +18
-12
lines changed Original file line number Diff line number Diff line change @@ -611,18 +611,21 @@ extension _CocoaDictionary {
611
611
}
612
612
613
613
extension _CocoaDictionary . Index {
614
- @inlinable
614
+ @usableFromInline // FIXME(cocoa-index): Make inlinable
615
615
@nonobjc
616
616
internal var key : AnyObject {
617
- _precondition ( currentKeyIndex < allKeys. value,
618
- " Attempting to access Dictionary elements using an invalid index " )
619
- return allKeys [ currentKeyIndex]
617
+ @_effects ( readonly)
618
+ get {
619
+ _precondition ( currentKeyIndex < allKeys. value,
620
+ " Attempting to access Dictionary elements using an invalid index " )
621
+ return allKeys [ currentKeyIndex]
622
+ }
620
623
}
621
624
622
- @usableFromInline
625
+ @usableFromInline // FIXME(cocoa-index): Make inlinable
623
626
@nonobjc
624
627
internal var age : Int32 {
625
- @_effects ( releasenone )
628
+ @_effects ( readonly )
626
629
get {
627
630
return _HashTable. age ( for: base. object)
628
631
}
Original file line number Diff line number Diff line change @@ -391,7 +391,7 @@ extension _CocoaSet: _SetBuffer {
391
391
return object. member ( element) != nil
392
392
}
393
393
394
- @usableFromInline
394
+ @usableFromInline // FIXME(cocoa-index): Make inlinable
395
395
@_effects ( releasenone)
396
396
internal func element( at i: Index ) -> AnyObject {
397
397
let element : AnyObject ? = i. element
@@ -447,15 +447,18 @@ extension _CocoaSet {
447
447
}
448
448
449
449
extension _CocoaSet . Index {
450
- @inlinable
450
+ @usableFromInline // FIXME(cocoa-index): Make inlinable
451
451
@nonobjc
452
452
internal var element : AnyObject {
453
- _precondition ( currentKeyIndex < allKeys. value,
454
- " Attempting to access Set elements using an invalid index " )
455
- return allKeys [ currentKeyIndex]
453
+ @_effects ( readonly)
454
+ get {
455
+ _precondition ( currentKeyIndex < allKeys. value,
456
+ " Attempting to access Set elements using an invalid index " )
457
+ return allKeys [ currentKeyIndex]
458
+ }
456
459
}
457
460
458
- @usableFromInline
461
+ @usableFromInline // FIXME(cocoa-index): Make inlinable
459
462
@nonobjc
460
463
internal var age : Int32 {
461
464
@_effects ( releasenone)
You can’t perform that action at this time.
0 commit comments