File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ final class Glob: Collection {
153153 let includeDirectories = behavior. includesDirectoriesInResults
154154
155155 for i in 0 ..< Int ( gt. gl_matchc) {
156- if let path = String ( validatingUTF8 : gt. gl_pathv [ i] !) {
156+ if let path = String ( validatingCString : gt. gl_pathv [ i] !) {
157157 if !includeFiles || !includeDirectories {
158158 let isDirectory = self . isDirectory ( path: path)
159159 if ( !includeFiles && !isDirectory) || ( !includeDirectories && isDirectory) {
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ struct GeneratorHelper {
7676 private static func openNestedClosure( for method: Method ) -> String {
7777 var fullString = " "
7878 for (index, parameter) in method. signature. parameters. enumerated ( ) {
79- if !parameter. type. containsAttribute ( named: " @escaping " ) , let closure = parameter. type. findClosure ( ) {
79+ if !parameter. type. containsAttribute ( named: " @escaping " ) , parameter. type. findClosure ( ) != nil {
8080 if fullString. isEmpty {
8181 fullString = " \n "
8282 }
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ extension SyntaxProtocol {
4444 )
4545 )
4646 }
47- return identifierType . as ( Self . self ) !
47+ return Self . init ( identifierType ) ?? mutableSelf
4848 } else {
4949 return mutableSelf
5050 }
Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ extension HasGenerics {
5050 " genericArguments " : genericArgumentsString,
5151 " hasPrimaryAssociatedTypes " : hasPrimaryAssociatedTypes,
5252 " hasOnlyPrimaryAssociatedTypes " : hasOnlyPrimaryAssociatedTypes,
53- " genericProtocolIdentity " : genericProtocolIdentity,
54- " genericPrimaryAssociatedTypeArguments " : genericPrimaryAssociatedTypeArguments,
53+ " genericProtocolIdentity " : genericProtocolIdentity as Any ,
54+ " genericPrimaryAssociatedTypeArguments " : genericPrimaryAssociatedTypeArguments as Any ,
5555 ]
5656 . compactMapValues { $0 }
5757 }
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ enum ComplexType {
2020 self = . attributed(
2121 attributes: [
2222 attributedType. attributes. map { $0. trimmedDescription } ,
23- attributedType. specifier . map { [ $0. trimmedDescription] } ?? [ ] ,
23+ attributedType. specifiers . map { $0. trimmedDescription } ,
2424 ] . flatMap { $0 } ,
2525 baseType: ComplexType ( syntax: attributedType. baseType)
2626 )
You can’t perform that action at this time.
0 commit comments