@@ -57,16 +57,16 @@ struct BuildPluginConfig: Codable {
5757 /// Whether imports should have explicit access levels.
5858 ///
5959 /// Defaults to `false`.
60- var useAccessLevelOnImports : Bool
60+ var accessLevelOnImports : Bool
6161
6262 static let defaults = Self (
6363 accessLevel: . internal,
64- useAccessLevelOnImports : false
64+ accessLevelOnImports : false
6565 )
6666
67- private init ( accessLevel: GenerationConfig . AccessLevel , useAccessLevelOnImports : Bool ) {
67+ private init ( accessLevel: GenerationConfig . AccessLevel , accessLevelOnImports : Bool ) {
6868 self . accessLevel = accessLevel
69- self . useAccessLevelOnImports = useAccessLevelOnImports
69+ self . accessLevelOnImports = accessLevelOnImports
7070 }
7171 }
7272
@@ -159,7 +159,7 @@ extension BuildPluginConfig.GeneratedSource: Codable {
159159 // Codable conformance with defaults
160160 enum CodingKeys : String , CodingKey {
161161 case accessLevel
162- case useAccessLevelOnImports
162+ case accessLevelOnImports
163163 }
164164
165165 init ( from decoder: any Decoder ) throws {
@@ -168,9 +168,9 @@ extension BuildPluginConfig.GeneratedSource: Codable {
168168 self . accessLevel =
169169 try container. decodeIfPresent ( GenerationConfig . AccessLevel. self, forKey: . accessLevel)
170170 ?? Self . defaults. accessLevel
171- self . useAccessLevelOnImports =
172- try container. decodeIfPresent ( Bool . self, forKey: . useAccessLevelOnImports )
173- ?? Self . defaults. useAccessLevelOnImports
171+ self . accessLevelOnImports =
172+ try container. decodeIfPresent ( Bool . self, forKey: . accessLevelOnImports )
173+ ?? Self . defaults. accessLevelOnImports
174174 }
175175}
176176
@@ -199,7 +199,7 @@ extension GenerationConfig {
199199 // hard-code full-path to avoid collisions since this goes into a temporary directory anyway
200200 self . fileNaming = . fullPath
201201 self . visibility = buildPluginConfig. generatedSource. accessLevel
202- self . useAccessLevelOnImports = buildPluginConfig. generatedSource. useAccessLevelOnImports
202+ self . accessLevelOnImports = buildPluginConfig. generatedSource. accessLevelOnImports
203203 // Generate absolute paths for the imports relative to the config file in which they are specified
204204 self . importPaths = buildPluginConfig. protoc. importPaths. map { relativePath in
205205 configFilePath. deletingLastPathComponent ( ) . absoluteStringNoScheme + " / " + relativePath
0 commit comments