"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "plugins/kapt3/kapt3-compiler/src/org/jetbrains/kotlin/kapt3/stubs/SignatureParserVisitor.kt" between
kotlin-1.3.20.tar.gz and kotlin-1.3.21.tar.gz

About: Kotlin is a Java like statically typed programming language for the JVM, Android and the browser. Source code.

SignatureParserVisitor.kt  (kotlin-1.3.20):SignatureParserVisitor.kt  (kotlin-1.3.21)
skipping to change at line 317 skipping to change at line 317
when (kind) { when (kind) {
e1 -> l1 += child e1 -> l1 += child
e2 -> l2 += child e2 -> l2 += child
e3 -> l3 += child e3 -> l3 += child
e4 -> l4 += child e4 -> l4 += child
else -> error("Unknown kind: $kind") else -> error("Unknown kind: $kind")
} }
} }
} }
private class SignatureParserVisitor : SignatureVisitor(Opcodes.ASM5) { private class SignatureParserVisitor : SignatureVisitor(Opcodes.API_VERSION) {
val root = SignatureNode(Root) val root = SignatureNode(Root)
private val stack = ArrayDeque<SignatureNode>(5).apply { add(root) } private val stack = ArrayDeque<SignatureNode>(5).apply { add(root) }
private fun popUntil(kind: ElementKind?) { private fun popUntil(kind: ElementKind?) {
if (kind != null) { if (kind != null) {
while (stack.peek().kind != kind) { while (stack.peek().kind != kind) {
stack.pop() stack.pop()
} }
} }
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)