mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-08-03 13:11:32 +00:00
java go byebye
This commit is contained in:
@ -1,6 +1,7 @@
|
|||||||
package gay.pizza.pork.buildext.ast
|
package gay.pizza.pork.buildext.ast
|
||||||
|
|
||||||
enum class AstPrimitive(val id: String) {
|
@Suppress("RemoveRedundantQualifierName")
|
||||||
|
enum class AstPrimitive(val id: kotlin.String) {
|
||||||
Boolean("Boolean"),
|
Boolean("Boolean"),
|
||||||
String("String"),
|
String("String"),
|
||||||
Int("Int"),
|
Int("Int"),
|
||||||
|
@ -1,11 +1,9 @@
|
|||||||
package gay.pizza.pork.common
|
package gay.pizza.pork.common
|
||||||
|
|
||||||
import java.util.stream.IntStream
|
|
||||||
|
|
||||||
class IndentBuffer(
|
class IndentBuffer(
|
||||||
val buffer: StringBuilder = StringBuilder(),
|
val buffer: StringBuilder = StringBuilder(),
|
||||||
indent: String = " "
|
indent: String = " "
|
||||||
) : IndentTracked(indent), Appendable by buffer, CharSequence by buffer {
|
) : IndentTracked(indent), Appendable by buffer {
|
||||||
override fun emit(text: String) {
|
override fun emit(text: String) {
|
||||||
append(text)
|
append(text)
|
||||||
}
|
}
|
||||||
@ -15,12 +13,4 @@ class IndentBuffer(
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun toString(): String = buffer.toString()
|
override fun toString(): String = buffer.toString()
|
||||||
|
|
||||||
override fun chars(): IntStream {
|
|
||||||
return buffer.chars()
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun codePoints(): IntStream {
|
|
||||||
return buffer.codePoints()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user