File tree 2 files changed +8
-7
lines changed
.golden/kotlinDeprecatedFieldSpec
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
1
data class Data(
2
2
val field0: Int,
3
- // Deprecated since build 500
4
- // val field1: Int? = null,
3
+ // Deprecated since build 500
4
+ // val field1: Int? = null,
5
5
)
Original file line number Diff line number Diff line change @@ -71,8 +71,7 @@ prettyStructFields indents fields deprecatedFields = go fields
71
71
where
72
72
deprecatedFieldsMap = Map. fromList deprecatedFields
73
73
prettyField (Field fieldName ty _) =
74
- indents
75
- ++ " val "
74
+ " val "
76
75
++ fieldName
77
76
++ " : "
78
77
++ prettyMoatType ty
@@ -84,11 +83,13 @@ prettyStructFields indents fields deprecatedFields = go fields
84
83
go (field@ (Field fieldName _ _) : fs) =
85
84
case Map. lookup fieldName deprecatedFieldsMap of
86
85
Just mComment ->
87
- maybe " " (\ comment -> " // " ++ comment ++ " \n " ) mComment
88
- ++ " //"
86
+ indents
87
+ ++ maybe " " (\ comment -> " // " ++ comment ++ " \n " ) mComment
88
+ ++ indents
89
+ ++ " // "
89
90
++ prettyField field
90
91
++ go fs
91
- Nothing -> prettyField field ++ go fs
92
+ Nothing -> indents ++ prettyField field ++ go fs
92
93
93
94
prettyEnumCases :: String -> [EnumCase ] -> String
94
95
prettyEnumCases indents = go
You can’t perform that action at this time.
0 commit comments