Rename loadFromVariables to loadVariable

This commit is contained in:
Iaroslav 2020-06-14 23:01:34 +07:00
parent 4e28ad7d4e
commit a8fa385497
No known key found for this signature in database
GPG Key ID: 46E15E4A31B3BCD7
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ internal class AsmBinaryOperation<T>(
internal class AsmVariableExpression<T>(private val name: String, private val default: T? = null) :
AsmNode<T>() {
override fun compile(gen: AsmGenerator<T>): Unit = gen.loadFromVariables(name, default)
override fun compile(gen: AsmGenerator<T>): Unit = gen.loadVariable(name, default)
}
internal class AsmConstantExpression<T>(private val value: T) :

View File

@ -228,7 +228,7 @@ internal class AsmGenerator<T> @PublishedApi internal constructor(
loadConstant(value, c)
}
internal fun loadFromVariables(name: String, defaultValue: T? = null): Unit = invokeMethodVisitor.run {
internal fun loadVariable(name: String, defaultValue: T? = null): Unit = invokeMethodVisitor.run {
visitLoadObjectVar(invokeArgumentsVar)
if (defaultValue != null) {