feat(RES-57): Add visibility to control scope of generated code #18

Merged
t.schmitt merged 3 commits from feat/RES-57-extension-visibility into master 2025-07-21 16:56:05 +02:00
62 changed files with 1526 additions and 794 deletions
Showing only changes of commit caa3295dce - Show all commits

View File

@@ -9,8 +9,6 @@ import ArgumentParser
import Foundation
import ToolCore
// swiftlint:disable no_grouping_extension
struct AnalyticsOptions: ParsableArguments {
@Flag(

View File

@@ -36,6 +36,7 @@ extension FontName {
Font.custom(FontName.\(fontNameSanitize).rawValue, size: size)
}
"""
case (true, false):
// SwiftUI, Not Static => func
"""
@@ -43,6 +44,7 @@ extension FontName {
Font.custom(FontName.\(fontNameSanitize).rawValue, size: size)
}
"""
case (false, true):
// UIKit, Static => let
"""
@@ -50,6 +52,7 @@ extension FontName {
UIFont(name: FontName.\(fontNameSanitize).rawValue, size: size)!
}
"""
case (false, false):
// UIKit, Not Static => func
"""

View File

@@ -20,10 +20,13 @@ package enum ExtensionVisibility: String, CustomStringConvertible, ExpressibleBy
switch self {
case .public:
"public"
case .private:
"private"
case .internal:
"internal"
case .package:
"package"
}