File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
core/src/main/kotlin/com/fractalwrench/json2kotlin Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 33
44Ordered roughly in priority:
55
6- - Write Readme
7- - Add GH topics/description
6+ - Writeup
87- Test command line tool
9- - Make website tool prettier
8+ - Make website tool prettier/better
109- Throttle website tool/prepare for HN
11- - Writeup
10+ - Write Readme
11+ - Add GH topics/description
1212
1313## Rough architecture
1414
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import com.squareup.kotlinpoet.TypeSpec
88/* *
99 * A build delegate which alters the generated source code to include GSON annotations
1010 */
11- class GsonBuildDelegate : SourceBuildDelegate {
11+ internal class GsonBuildDelegate : SourceBuildDelegate {
1212
1313 private val regex = " %" .toRegex()
1414
Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ package com.fractalwrench.json2kotlin
33internal fun nameForArrayField (index : Int , identifier : String ): String =
44 if (index == 0 ) identifier else " $identifier${index + 1 } "
55
6- fun String.standardiseNewline (): String {
6+ internal fun String.standardiseNewline (): String {
77 return this .replace(" \r\n " , " \n " )
88}
99
10- fun String.toKotlinIdentifier (): String {
10+ internal fun String.toKotlinIdentifier (): String {
1111 return when {
1212 keywords.contains(this ) -> " `$this `" // escape
1313 else -> {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import java.io.InputStreamReader
1212 *
1313 * If the root element is an array, a wrapper object will be added to the tree.
1414 */
15- class JsonReader (private val jsonParser : JsonParser ) {
15+ internal class JsonReader (private val jsonParser : JsonParser ) {
1616
1717 /* *
1818 * Reads a JSON string using GSON.
You can’t perform that action at this time.
0 commit comments