Skip to content

Commit

Permalink
updated generated boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyapuchka committed May 28, 2017
1 parent 2c968d7 commit 6bbafe3
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 24 deletions.
8 changes: 1 addition & 7 deletions SourceryRuntime/Sources/Coding.generated.swift
@@ -1,9 +1,8 @@
// Generated using Sourcery 0.6.0 — https://github.com/krzysztofzablocki/Sourcery
// Generated using Sourcery 0.6.1 — https://github.com/krzysztofzablocki/Sourcery
// DO NOT EDIT

import Foundation


extension NSCoder {

@nonobjc func decode(forKey: String) -> String? {
Expand Down Expand Up @@ -46,12 +45,10 @@ extension AssociatedValue: NSCoding {}

extension Attribute: NSCoding {}


extension ClosureType: NSCoding {}

extension DictionaryType: NSCoding {}


extension EnumCase: NSCoding {}

extension FileParserResult: NSCoding {}
Expand All @@ -60,8 +57,6 @@ extension Method: NSCoding {}

extension MethodParameter: NSCoding {}



extension TemplateContext: NSCoding {}

extension TupleElement: NSCoding {}
Expand All @@ -77,4 +72,3 @@ extension Typealias: NSCoding {}
extension Types: NSCoding {}

extension Variable: NSCoding {}

4 changes: 1 addition & 3 deletions SourceryRuntime/Sources/Description.generated.swift
@@ -1,7 +1,6 @@
// Generated using Sourcery 0.6.0 — https://github.com/krzysztofzablocki/Sourcery
// Generated using Sourcery 0.6.1 — https://github.com/krzysztofzablocki/Sourcery
// DO NOT EDIT


extension ArrayType {
/// :nodoc:
override public var description: String {
Expand Down Expand Up @@ -105,7 +104,6 @@ extension Method {
string += "isClass = \(String(describing: self.isClass)), "
string += "isInitializer = \(String(describing: self.isInitializer)), "
string += "isFailableInitializer = \(String(describing: self.isFailableInitializer)), "
string += "isConvenienceInitialiser = \(String(describing: self.isConvenienceInitialiser)), "
string += "isConvenienceInitializer = \(String(describing: self.isConvenienceInitializer)), "
string += "isRequired = \(String(describing: self.isRequired)), "
string += "annotations = \(String(describing: self.annotations)), "
Expand Down
2 changes: 1 addition & 1 deletion SourceryRuntime/Sources/Diffable.generated.swift
@@ -1,4 +1,4 @@
// Generated using Sourcery 0.6.0 — https://github.com/krzysztofzablocki/Sourcery
// Generated using Sourcery 0.6.1 — https://github.com/krzysztofzablocki/Sourcery
// DO NOT EDIT

extension ArrayType: Diffable {
Expand Down
3 changes: 1 addition & 2 deletions SourceryRuntime/Sources/Equality.generated.swift
@@ -1,7 +1,6 @@
// Generated using Sourcery 0.6.0 — https://github.com/krzysztofzablocki/Sourcery
// Generated using Sourcery 0.6.1 — https://github.com/krzysztofzablocki/Sourcery
// DO NOT EDIT


extension ArrayType {
/// :nodoc:
override public func isEqual(_ object: Any?) -> Bool {
Expand Down
2 changes: 1 addition & 1 deletion SourceryRuntime/Sources/JSExport.generated.swift
@@ -1,4 +1,4 @@
// Generated using Sourcery 0.6.0 — https://github.com/krzysztofzablocki/Sourcery
// Generated using Sourcery 0.6.1 — https://github.com/krzysztofzablocki/Sourcery
// DO NOT EDIT

import JavaScriptCore
Expand Down
4 changes: 2 additions & 2 deletions SourceryRuntime/Sources/TemplateContext.swift
Expand Up @@ -19,7 +19,7 @@ public final class TemplateContext: NSObject, SourceryModel {
self.types = types
self.arguments = arguments
}

// sourcery:inline:TemplateContext.AutoCoding
/// :nodoc:
required public init?(coder aDecoder: NSCoder) {
Expand Down Expand Up @@ -80,7 +80,7 @@ public final class Types: NSObject, SourceryModel {
public init(types: [Type]) {
self.types = types
}

// sourcery:inline:Types.AutoCoding
/// :nodoc:
required public init?(coder aDecoder: NSCoder) {
Expand Down
13 changes: 6 additions & 7 deletions SourceryRuntime/Sources/Typed.generated.swift
@@ -1,7 +1,6 @@
// Generated using Sourcery 0.6.0 — https://github.com/krzysztofzablocki/Sourcery
// Generated using Sourcery 0.6.1 — https://github.com/krzysztofzablocki/Sourcery
// DO NOT EDIT


extension AssociatedValue {
/// Whether type is optional. Shorthand for `typeName.isOptional`
public var isOptional: Bool { return typeName.isOptional }
Expand Down Expand Up @@ -65,15 +64,15 @@ extension Typealias {
/// Type name without attributes and optional type information. Shorthand for `typeName.unwrappedTypeName`
public var unwrappedTypeName: String { return typeName.unwrappedTypeName }
/// Actual type name if declaration uses typealias, otherwise just a `typeName`. Shorthand for `typeName.actualTypeName`
internal var actualTypeName: TypeName? { return typeName.actualTypeName ?? typeName }
public var actualTypeName: TypeName? { return typeName.actualTypeName ?? typeName }
/// Whether type is a tuple. Shorthand for `typeName.isTuple`
internal var isTuple: Bool { return typeName.isTuple }
public var isTuple: Bool { return typeName.isTuple }
/// Whether type is a closure. Shorthand for `typeName.isClosure`
internal var isClosure: Bool { return typeName.isClosure }
public var isClosure: Bool { return typeName.isClosure }
/// Whether type is an array. Shorthand for `typeName.isArray`
internal var isArray: Bool { return typeName.isArray }
public var isArray: Bool { return typeName.isArray }
/// Whether type is a dictionary. Shorthand for `typeName.isDictionary`
internal var isDictionary: Bool { return typeName.isDictionary }
public var isDictionary: Bool { return typeName.isDictionary }
}
extension Variable {
/// Whether type is optional. Shorthand for `typeName.isOptional`
Expand Down
2 changes: 1 addition & 1 deletion SourceryTests/Models/TypedSpec.generated.swift
@@ -1,4 +1,4 @@
// Generated using Sourcery 0.6.0 — https://github.com/krzysztofzablocki/Sourcery
// Generated using Sourcery 0.6.1 — https://github.com/krzysztofzablocki/Sourcery
// DO NOT EDIT

import Quick
Expand Down

0 comments on commit 6bbafe3

Please sign in to comment.