@@ -573,7 +573,7 @@ import Foundation
573
573
""" ) ,
574
574
. init( name: " Coding.generated.swift " , content:
575
575
"""
576
- // Generated using Sourcery 1.6.1 — https://github.com/krzysztofzablocki/Sourcery
576
+ // Generated using Sourcery 1.7.0 — https://github.com/krzysztofzablocki/Sourcery
577
577
// DO NOT EDIT
578
578
// swiftlint:disable vertical_whitespace trailing_newline
579
579
@@ -1416,7 +1416,7 @@ public protocol Definition: AnyObject {
1416
1416
""" ) ,
1417
1417
. init( name: " Description.generated.swift " , content:
1418
1418
"""
1419
- // Generated using Sourcery 1.6.1 — https://github.com/krzysztofzablocki/Sourcery
1419
+ // Generated using Sourcery 1.7.0 — https://github.com/krzysztofzablocki/Sourcery
1420
1420
// DO NOT EDIT
1421
1421
// swiftlint:disable vertical_whitespace
1422
1422
@@ -1730,7 +1730,8 @@ extension Type {
1730
1730
string += " parentName = \\ (String(describing: self.parentName)), "
1731
1731
string += " parentTypes = \\ (String(describing: self.parentTypes)), "
1732
1732
string += " attributes = \\ (String(describing: self.attributes)), "
1733
- string += " modifiers = \\ (String(describing: self.modifiers)) "
1733
+ string += " modifiers = \\ (String(describing: self.modifiers)), "
1734
+ string += " fileName = \\ (String(describing: self.fileName)) "
1734
1735
return string
1735
1736
}
1736
1737
}
@@ -1853,7 +1854,7 @@ import Foundation
1853
1854
""" ) ,
1854
1855
. init( name: " Diffable.generated.swift " , content:
1855
1856
"""
1856
- // Generated using Sourcery 1.6.1 — https://github.com/krzysztofzablocki/Sourcery
1857
+ // Generated using Sourcery 1.7.0 — https://github.com/krzysztofzablocki/Sourcery
1857
1858
// DO NOT EDIT
1858
1859
import Foundation
1859
1860
@@ -2233,6 +2234,7 @@ extension Type: Diffable {
2233
2234
results.append(contentsOf: DiffableResult(identifier: " parentName " ).trackDifference(actual: self.parentName, expected: castObject.parentName))
2234
2235
results.append(contentsOf: DiffableResult(identifier: " attributes " ).trackDifference(actual: self.attributes, expected: castObject.attributes))
2235
2236
results.append(contentsOf: DiffableResult(identifier: " modifiers " ).trackDifference(actual: self.modifiers, expected: castObject.modifiers))
2237
+ results.append(contentsOf: DiffableResult(identifier: " fileName " ).trackDifference(actual: self.fileName, expected: castObject.fileName))
2236
2238
return results
2237
2239
}
2238
2240
}
@@ -2776,7 +2778,7 @@ import Foundation
2776
2778
""" ) ,
2777
2779
. init( name: " Equality.generated.swift " , content:
2778
2780
"""
2779
- // Generated using Sourcery 1.6.1 — https://github.com/krzysztofzablocki/Sourcery
2781
+ // Generated using Sourcery 1.7.0 — https://github.com/krzysztofzablocki/Sourcery
2780
2782
// DO NOT EDIT
2781
2783
// swiftlint:disable vertical_whitespace
2782
2784
@@ -3095,6 +3097,7 @@ extension Type {
3095
3097
if self.parentName != rhs.parentName { return false }
3096
3098
if self.attributes != rhs.attributes { return false }
3097
3099
if self.modifiers != rhs.modifiers { return false }
3100
+ if self.fileName != rhs.fileName { return false }
3098
3101
if self.kind != rhs.kind { return false }
3099
3102
return true
3100
3103
}
@@ -3477,6 +3480,7 @@ extension Type {
3477
3480
hasher.combine(self.parentName)
3478
3481
hasher.combine(self.attributes)
3479
3482
hasher.combine(self.modifiers)
3483
+ hasher.combine(self.fileName)
3480
3484
hasher.combine(kind)
3481
3485
return hasher.finalize()
3482
3486
}
@@ -4053,7 +4057,7 @@ import Foundation
4053
4057
""" ) ,
4054
4058
. init( name: " JSExport.generated.swift " , content:
4055
4059
"""
4056
- // Generated using Sourcery 1.6.1 — https://github.com/krzysztofzablocki/Sourcery
4060
+ // Generated using Sourcery 1.7.0 — https://github.com/krzysztofzablocki/Sourcery
4057
4061
// DO NOT EDIT
4058
4062
// swiftlint:disable vertical_whitespace trailing_newline
4059
4063
@@ -4150,6 +4154,7 @@ extension BytesRange: BytesRangeAutoJSExport {}
4150
4154
var supertype: Type? { get }
4151
4155
var attributes: AttributeList { get }
4152
4156
var modifiers: [SourceryModifier] { get }
4157
+ var fileName: String? { get }
4153
4158
}
4154
4159
4155
4160
extension Class: ClassAutoJSExport {}
@@ -4248,6 +4253,7 @@ extension DictionaryType: DictionaryTypeAutoJSExport {}
4248
4253
var supertype: Type? { get }
4249
4254
var attributes: AttributeList { get }
4250
4255
var modifiers: [SourceryModifier] { get }
4256
+ var fileName: String? { get }
4251
4257
}
4252
4258
4253
4259
extension Enum: EnumAutoJSExport {}
@@ -4407,6 +4413,7 @@ extension Modifier: ModifierAutoJSExport {}
4407
4413
var supertype: Type? { get }
4408
4414
var attributes: AttributeList { get }
4409
4415
var modifiers: [SourceryModifier] { get }
4416
+ var fileName: String? { get }
4410
4417
}
4411
4418
4412
4419
extension Protocol: ProtocolAutoJSExport {}
@@ -4456,6 +4463,7 @@ extension Protocol: ProtocolAutoJSExport {}
4456
4463
var supertype: Type? { get }
4457
4464
var attributes: AttributeList { get }
4458
4465
var modifiers: [SourceryModifier] { get }
4466
+ var fileName: String? { get }
4459
4467
}
4460
4468
4461
4469
extension Struct: StructAutoJSExport {}
@@ -4555,6 +4563,7 @@ extension TupleType: TupleTypeAutoJSExport {}
4555
4563
var supertype: Type? { get }
4556
4564
var attributes: AttributeList { get }
4557
4565
var modifiers: [SourceryModifier] { get }
4566
+ var fileName: String? { get }
4558
4567
}
4559
4568
4560
4569
extension Type: TypeAutoJSExport {}
@@ -6314,10 +6323,18 @@ public typealias AttributeList = [String: [Attribute]]
6314
6323
/// Type modifiers, i.e. `private`, `final`
6315
6324
public var modifiers: [SourceryModifier]
6316
6325
6317
- // Path to file where the type is defined
6326
+ /// Path to file where the type is defined
6318
6327
// sourcery: skipDescription, skipEquality, skipJSExport
6319
- /// :nodoc:
6320
- public var path: String?
6328
+ public var path: String? {
6329
+ didSet {
6330
+ if let path = path {
6331
+ fileName = (path as NSString).lastPathComponent
6332
+ }
6333
+ }
6334
+ }
6335
+
6336
+ /// File name where the type was defined
6337
+ public var fileName: String?
6321
6338
6322
6339
/// :nodoc:
6323
6340
public init(name: String = " " ,
@@ -6411,6 +6428,7 @@ public typealias AttributeList = [String: [Attribute]]
6411
6428
guard let attributes: AttributeList = aDecoder.decode(forKey: " attributes " ) else { NSException.raise(NSExceptionName.parseErrorException, format: " Key '%@' not found. " , arguments: getVaList([ " attributes " ])); fatalError() }; self.attributes = attributes
6412
6429
guard let modifiers: [SourceryModifier] = aDecoder.decode(forKey: " modifiers " ) else { NSException.raise(NSExceptionName.parseErrorException, format: " Key '%@' not found. " , arguments: getVaList([ " modifiers " ])); fatalError() }; self.modifiers = modifiers
6413
6430
self.path = aDecoder.decode(forKey: " path " )
6431
+ self.fileName = aDecoder.decode(forKey: " fileName " )
6414
6432
}
6415
6433
6416
6434
/// :nodoc:
@@ -6442,6 +6460,7 @@ public typealias AttributeList = [String: [Attribute]]
6442
6460
aCoder.encode(self.attributes, forKey: " attributes " )
6443
6461
aCoder.encode(self.modifiers, forKey: " modifiers " )
6444
6462
aCoder.encode(self.path, forKey: " path " )
6463
+ aCoder.encode(self.fileName, forKey: " fileName " )
6445
6464
}
6446
6465
// sourcery:end
6447
6466
}
@@ -6776,7 +6795,7 @@ import Foundation
6776
6795
""" ) ,
6777
6796
. init( name: " Typed.generated.swift " , content:
6778
6797
"""
6779
- // Generated using Sourcery 1.6.1 — https://github.com/krzysztofzablocki/Sourcery
6798
+ // Generated using Sourcery 1.7.0 — https://github.com/krzysztofzablocki/Sourcery
6780
6799
// DO NOT EDIT
6781
6800
// swiftlint:disable vertical_whitespace
6782
6801
0 commit comments