Skip to content

Commit

Permalink
Rename from *Generator to *StructGenerator
Browse files Browse the repository at this point in the history
  • Loading branch information
mac-cain13 committed Oct 6, 2016
1 parent ec00585 commit d16f723
Show file tree
Hide file tree
Showing 11 changed files with 63 additions and 63 deletions.
72 changes: 36 additions & 36 deletions R.swift.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// ColorGenerator.swift
// ColorStructGenerator.swift
// R.swift
//
// Created by Tom Lokhorst on 2016-03-13.
Expand All @@ -9,7 +9,7 @@
import Foundation
import AppKit.NSColor

struct ColorGenerator: ExternalOnlyStructGenerator {
struct ColorStructGenerator: ExternalOnlyStructGenerator {
private let palettes: [ColorPalette]

init(colorPalettes palettes: [ColorPalette]) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Font.swift
// FontStructGenerator.swift
// R.swift
//
// Created by Mathijs Kadijk on 10-12-15.
Expand All @@ -8,7 +8,7 @@

import Foundation

struct FontGenerator: ExternalOnlyStructGenerator {
struct FontStructGenerator: ExternalOnlyStructGenerator {
private let fonts: [Font]

init(fonts: [Font]) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Image.swift
// ImageStructGenerator.swift
// R.swift
//
// Created by Mathijs Kadijk on 10-12-15.
Expand All @@ -8,7 +8,7 @@

import Foundation

struct ImageGenerator: ExternalOnlyStructGenerator {
struct ImageStructGenerator: ExternalOnlyStructGenerator {
private let assetFolders: [AssetFolder]
private let images: [Image]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Nib.swift
// NibStructGenerator.swift
// R.swift
//
// Created by Mathijs Kadijk on 10-12-15.
Expand Down Expand Up @@ -31,7 +31,7 @@ private let Ordinals = [
(number: 20, word: "twentieth"),
]

struct NibGenerator: StructGenerator {
struct NibStructGenerator: StructGenerator {
private let nibs: [Nib]

init(nibs: [Nib]) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// ResourceFile.swift
// ResourceFileStructGenerator.swift
// R.swift
//
// Created by Mathijs Kadijk on 10-12-15.
Expand All @@ -8,7 +8,7 @@

import Foundation

struct ResourceFileGenerator: ExternalOnlyStructGenerator {
struct ResourceFileStructGenerator: ExternalOnlyStructGenerator {
private let resourceFiles: [ResourceFile]

init(resourceFiles: [ResourceFile]) {
Expand Down
4 changes: 2 additions & 2 deletions R.swift/Generators/ReuseIdentifierGenerator.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// ReuseIdentifier.swift
// ReuseIdentifierStructGenerator.swift
// R.swift
//
// Created by Mathijs Kadijk on 10-12-15.
Expand All @@ -8,7 +8,7 @@

import Foundation

struct ReuseIdentifierGenerator: ExternalOnlyStructGenerator {
struct ReuseIdentifierStructGenerator: ExternalOnlyStructGenerator {
private let reusables: [Reusable]

init(reusables: [Reusable]) {
Expand Down
4 changes: 2 additions & 2 deletions R.swift/Generators/SegueGenerator.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Segue.swift
// SegueStructGenerator.swift
// R.swift
//
// Created by Mathijs Kadijk on 10-12-15.
Expand All @@ -10,7 +10,7 @@ import Foundation

typealias SegueWithInfo = (segue: Storyboard.Segue, sourceType: Type, destinationType: Type)

struct SegueGenerator: ExternalOnlyStructGenerator {
struct SegueStructGenerator: ExternalOnlyStructGenerator {
private let storyboards: [Storyboard]

init(storyboards: [Storyboard]) {
Expand Down
4 changes: 2 additions & 2 deletions R.swift/Generators/StoryboardGenerator.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Storyboard.swift
// StoryboardStructGenerator.swift
// R.swift
//
// Created by Mathijs Kadijk on 10-12-15.
Expand All @@ -8,7 +8,7 @@

import Foundation

struct StoryboardGenerator: StructGenerator {
struct StoryboardStructGenerator: StructGenerator {
private let storyboards: [Storyboard]

init(storyboards: [Storyboard]) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// StringsGenerator.swift
// StringsStructGenerator.swift
// R.swift
//
// Created by Nolan Warner on 2016/02/23.
Expand All @@ -8,7 +8,7 @@

import Foundation

struct StringsGenerator: ExternalOnlyStructGenerator {
struct StringsStructGenerator: ExternalOnlyStructGenerator {
private let localizableStrings: [LocalizableStrings]

init(localizableStrings: [LocalizableStrings]) {
Expand Down
18 changes: 9 additions & 9 deletions R.swift/Generators/StructGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ extension ExternalOnlyStructGenerator {
func generateResourceStructs(with resources: Resources, at externalAccessLevel: AccessLevel, forBundleIdentifier bundleIdentifier: String) -> StructGenerator.Result {

let generators: [StructGenerator] = [
ImageGenerator(assetFolders: resources.assetFolders, images: resources.images),
ColorGenerator(colorPalettes: resources.colors),
FontGenerator(fonts: resources.fonts),
SegueGenerator(storyboards: resources.storyboards),
StoryboardGenerator(storyboards: resources.storyboards),
NibGenerator(nibs: resources.nibs),
ReuseIdentifierGenerator(reusables: resources.reusables),
ResourceFileGenerator(resourceFiles: resources.resourceFiles),
StringsGenerator(localizableStrings: resources.localizableStrings),
ImageStructGenerator(assetFolders: resources.assetFolders, images: resources.images),
ColorStructGenerator(colorPalettes: resources.colors),
FontStructGenerator(fonts: resources.fonts),
SegueStructGenerator(storyboards: resources.storyboards),
StoryboardStructGenerator(storyboards: resources.storyboards),
NibStructGenerator(nibs: resources.nibs),
ReuseIdentifierStructGenerator(reusables: resources.reusables),
ResourceFileStructGenerator(resourceFiles: resources.resourceFiles),
StringsStructGenerator(localizableStrings: resources.localizableStrings),
]

let aggregatedResult = AggregatedStructGenerator(subgenerators: generators)
Expand Down

0 comments on commit d16f723

Please sign in to comment.