mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SDK] Rename several small overlay source files. (#4520)
...to remove the temptation to put everything in one file with the same name as the module. This doesn't do anything for overlays that /already/ have everything in one file with the same name as the module, except for a few easy cases; we can unpack the rest later.
This commit is contained in:
29
stdlib/public/SDK/AVFoundation/NSValue.swift.gyb
Normal file
29
stdlib/public/SDK/AVFoundation/NSValue.swift.gyb
Normal file
@@ -0,0 +1,29 @@
|
||||
@_exported import AVFoundation // Clang module
|
||||
import CoreMedia
|
||||
import Foundation
|
||||
|
||||
%{
|
||||
from gyb_foundation_support import \
|
||||
ObjectiveCBridgeableImplementationForNSValueWithCategoryMethods
|
||||
}%
|
||||
|
||||
// Bridge CoreMedia structs to NSValue.
|
||||
// AVFoundation provides internal NSValue subclasses for these structures that
|
||||
// are incompatible with the NSConcreteValue subclasses you get using
|
||||
// -[NSValue valueWithBytes:objCType:].
|
||||
|
||||
${ ObjectiveCBridgeableImplementationForNSValueWithCategoryMethods(
|
||||
Type="CMTime",
|
||||
initializer="{ NSValue(time: $0) }",
|
||||
getter="{ $0.timeValue }",
|
||||
) }
|
||||
${ ObjectiveCBridgeableImplementationForNSValueWithCategoryMethods(
|
||||
Type="CMTimeRange",
|
||||
initializer="{ NSValue(timeRange: $0) }",
|
||||
getter="{ $0.timeRangeValue }",
|
||||
) }
|
||||
${ ObjectiveCBridgeableImplementationForNSValueWithCategoryMethods(
|
||||
Type="CMTimeMapping",
|
||||
initializer="{ NSValue(timeMapping: $0) }",
|
||||
getter="{ $0.timeMappingValue }",
|
||||
) }
|
||||
Reference in New Issue
Block a user