Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ extension SwiftInterfaceProducer {
newProjectDirectoryPath: String,
oldProjectDirectoryPath: String,
scheme: String
) async throws -> DerivedDataPaths { // TODO: Typed return type
) async throws -> DerivedDataPaths {

// We don't run them in parallel to not conflict with resolving dependencies concurrently

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,25 @@ extension SyntaxCollection {
}
}

extension AttributeListSyntax {

private var excludedAttributes: Set<String> {
[
"@_hasMissingDesignatedInitializers",
"@_inheritsConvenienceInitializers"
]
}

/// Produces a description where all elements in the list are mapped to their `trimmedDescription`
var sanitizedList: [String] {
self.compactMap {
let description = $0.trimmedDescription
if excludedAttributes.contains(description) { return nil }
return description
}
}
}

extension InheritedTypeListSyntax {

/// Produces a description where all elements in the list are mapped to their type's `trimmedDescription`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,27 +38,27 @@ public protocol SimpleProtocol
#### 🔀 Changed
```javascript
// From
@_hasMissingDesignatedInitializers public actor CustomActor
@_spi(SystemProgrammingInterface) open class OpenSpiConformingClass: ReferencePackage.CustomProtocol

// To
@_hasMissingDesignatedInitializers public actor CustomActor: ReferencePackage.SimpleProtocol
@_spi(SystemProgrammingInterface) open class OpenSpiConformingClass<T>: ReferencePackage.CustomProtocol where T : Swift.Strideable

/**
Changes:
- Added inheritance `ReferencePackage.SimpleProtocol`
- Added generic parameter description `<T>`
- Added generic where clause `where T : Swift.Strideable`
*/
```
```javascript
// From
@_spi(SystemProgrammingInterface) open class OpenSpiConformingClass: ReferencePackage.CustomProtocol
public actor CustomActor

// To
@_spi(SystemProgrammingInterface) open class OpenSpiConformingClass<T>: ReferencePackage.CustomProtocol where T : Swift.Strideable
public actor CustomActor: ReferencePackage.SimpleProtocol

/**
Changes:
- Added generic parameter description `<T>`
- Added generic where clause `where T : Swift.Strideable`
- Added inheritance `ReferencePackage.SimpleProtocol`
*/
```
```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ public protocol SimpleProtocol
#### 🔀 Changed
```javascript
// From
@_hasMissingDesignatedInitializers public actor CustomActor
public actor CustomActor

// To
@_hasMissingDesignatedInitializers public actor CustomActor: ReferencePackage.SimpleProtocol
public actor CustomActor: ReferencePackage.SimpleProtocol

/**
Changes:
Expand Down
Loading