@@ -84,7 +84,7 @@ class UserProvidedValidationExceptionConversionGenerator(
8484) : ValidationExceptionConversionGenerator {
8585 private val maybeValidationField = userProvidedValidationField()
8686
87- private val codegenCtx =
87+ private val codegenScope =
8888 listOfNotNull(maybeValidationField)
8989 .map {
9090 " UserProvidedValidationExceptionField" to codegenContext.symbolProvider.toSymbol(it)
@@ -243,7 +243,7 @@ class UserProvidedValidationExceptionConversionGenerator(
243243 }
244244 """ ,
245245 * preludeScope,
246- * codegenCtx ,
246+ * codegenScope ,
247247 " ValidationExceptionFields" to
248248 writable {
249249 stringConstraintsInfo.forEach { stringTraitInfo ->
@@ -260,7 +260,7 @@ class UserProvidedValidationExceptionConversionGenerator(
260260 #{FieldAssignments}
261261 },
262262 """ ,
263- * codegenCtx ,
263+ * codegenScope ,
264264 " FieldAssignments" to
265265 fieldAssignments(
266266 " path.clone()" ,
@@ -283,7 +283,7 @@ class UserProvidedValidationExceptionConversionGenerator(
283283 #{FieldAssignments}
284284 },
285285 """ ,
286- * codegenCtx ,
286+ * codegenScope ,
287287 " FieldAssignments" to
288288 fieldAssignments(
289289 " path.clone()" ,
@@ -313,7 +313,7 @@ class UserProvidedValidationExceptionConversionGenerator(
313313 }
314314 """ ,
315315 * preludeScope,
316- * codegenCtx ,
316+ * codegenScope ,
317317 " ValidationExceptionFields" to
318318 writable {
319319 val fieldAssignments = generateUserProvidedValidationFieldAssignments(validationField)
@@ -324,7 +324,7 @@ class UserProvidedValidationExceptionConversionGenerator(
324324 #{FieldAssignments}
325325 },
326326 """ ,
327- * codegenCtx ,
327+ * codegenScope ,
328328 " FieldAssignments" to
329329 fieldAssignments(
330330 " path.clone()" ,
@@ -354,7 +354,7 @@ class UserProvidedValidationExceptionConversionGenerator(
354354 rustBlockTemplate(
355355 " pub(crate) fn as_validation_exception_field(self, path: #{String}) -> #{UserProvidedValidationExceptionField}" ,
356356 * preludeScope,
357- * codegenCtx ,
357+ * codegenScope ,
358358 ) {
359359 rustBlock(" match self" ) {
360360 shape.getTrait<LengthTrait >()?.also {
@@ -363,7 +363,7 @@ class UserProvidedValidationExceptionConversionGenerator(
363363 Self::Length(length) => #{UserProvidedValidationExceptionField} {
364364 #{FieldAssignments}
365365 },""" ,
366- * codegenCtx ,
366+ * codegenScope ,
367367 " FieldAssignments" to
368368 fieldAssignments(
369369 " path.clone()" ,
@@ -398,7 +398,7 @@ class UserProvidedValidationExceptionConversionGenerator(
398398 }
399399 """ ,
400400 * preludeScope,
401- * codegenCtx ,
401+ * codegenScope ,
402402 " FieldAssignments" to fieldAssignments(" path.clone()" , """ format!(r##"$message "##, &path)""" ),
403403 )
404404 }
@@ -421,7 +421,7 @@ class UserProvidedValidationExceptionConversionGenerator(
421421 }
422422 """ ,
423423 * preludeScope,
424- * codegenCtx ,
424+ * codegenScope ,
425425 " FieldAssignments" to
426426 fieldAssignments(
427427 " path.clone()" ,
@@ -440,7 +440,7 @@ class UserProvidedValidationExceptionConversionGenerator(
440440 rustBlockTemplate(
441441 " pub(crate) fn as_validation_exception_field(self, path: #{String}) -> #{UserProvidedValidationExceptionField}" ,
442442 * preludeScope,
443- * codegenCtx ,
443+ * codegenScope ,
444444 ) {
445445 rustBlock(" match self" ) {
446446 constraintViolations.forEach {
@@ -453,7 +453,7 @@ class UserProvidedValidationExceptionConversionGenerator(
453453 #{FieldAssignments}
454454 },
455455 """ .trimIndent(),
456- * codegenCtx ,
456+ * codegenScope ,
457457 " FieldAssignments" to
458458 fieldAssignments(
459459 """ path.clone() + "/${it.forMember.memberName} """" ,
@@ -485,7 +485,7 @@ class UserProvidedValidationExceptionConversionGenerator(
485485 }
486486 """ ,
487487 * preludeScope,
488- * codegenCtx ,
488+ * codegenScope ,
489489 " ValidationExceptionFields" to
490490 writable {
491491 collectionConstraintsInfo.forEach { collectionTraitInfo ->
@@ -497,7 +497,7 @@ class UserProvidedValidationExceptionConversionGenerator(
497497 #{FieldAssignments}
498498 },
499499 """ ,
500- * codegenCtx ,
500+ * codegenScope ,
501501 " FieldAssignments" to
502502 fieldAssignments(
503503 " path.clone()" ,
@@ -516,7 +516,7 @@ class UserProvidedValidationExceptionConversionGenerator(
516516 #{FieldAssignments}
517517 },
518518 """ ,
519- * codegenCtx ,
519+ * codegenScope ,
520520 " FieldAssignments" to
521521 fieldAssignments(
522522 " path.clone()" ,
@@ -551,7 +551,7 @@ class UserProvidedValidationExceptionConversionGenerator(
551551 rustBlockTemplate(
552552 " pub(crate) fn as_validation_exception_field(self, path: #{String}) -> #{UserProvidedValidationExceptionField}" ,
553553 * preludeScope,
554- * codegenCtx ,
554+ * codegenScope ,
555555 ) {
556556 withBlock(" match self {" , " }" ) {
557557 for (constraintViolation in unionConstraintTraitInfo) {
0 commit comments