Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fe93338

Browse files
tamasvajkigfoo
authored andcommitted
Minor code quality improvements
1 parent f12bcc5 commit fe93338

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3043,7 +3043,7 @@ open class KotlinFileExtractor(
30433043
val getterReturnType = parameterTypes.last()
30443044

30453045
if (getter != null) {
3046-
val getLabels = addFunctionManual(tw.getFreshIdLabel(), "get", getterParameterTypes, getterReturnType, classId, locId)
3046+
val getLabels = addFunctionManual(tw.getFreshIdLabel(), OperatorNameConventions.GET.asString(), getterParameterTypes, getterReturnType, classId, locId)
30473047
val getterCallableId = useFunction<DbCallable>(getter.owner.realOverrideTarget, classTypeArguments)
30483048

30493049
helper.extractCallToReflectionTarget(
@@ -3064,7 +3064,7 @@ open class KotlinFileExtractor(
30643064
return
30653065
}
30663066

3067-
val getLabels = addFunctionManual(tw.getFreshIdLabel(), "get", getterParameterTypes, getterReturnType, classId, locId)
3067+
val getLabels = addFunctionManual(tw.getFreshIdLabel(), OperatorNameConventions.GET.asString(), getterParameterTypes, getterReturnType, classId, locId)
30683068
val fieldId = useField(backingField.owner)
30693069

30703070
helper.extractFieldReturnOfReflectionTarget(
@@ -3077,7 +3077,7 @@ open class KotlinFileExtractor(
30773077
}
30783078

30793079
if (setter != null) {
3080-
val setLabels = addFunctionManual(tw.getFreshIdLabel(), "set", parameterTypes, pluginContext.irBuiltIns.unitType, classId, locId)
3080+
val setLabels = addFunctionManual(tw.getFreshIdLabel(), OperatorNameConventions.SET.asString(), parameterTypes, pluginContext.irBuiltIns.unitType, classId, locId)
30813081

30823082
val setterCallableId = useFunction<DbCallable>(setter.owner.realOverrideTarget, classTypeArguments)
30833083

@@ -3092,7 +3092,7 @@ open class KotlinFileExtractor(
30923092
tw.writePropertyRefSetBinding(idPropertyRef, setterCallableId)
30933093
} else {
30943094
if (backingField != null && !backingField.owner.isFinal) {
3095-
val setLabels = addFunctionManual(tw.getFreshIdLabel(), "set", parameterTypes, pluginContext.irBuiltIns.unitType, classId, locId)
3095+
val setLabels = addFunctionManual(tw.getFreshIdLabel(), OperatorNameConventions.SET.asString(), parameterTypes, pluginContext.irBuiltIns.unitType, classId, locId)
30963096
val fieldId = useField(backingField.owner)
30973097

30983098
helper.extractFieldWriteOfReflectionTarget(

0 commit comments

Comments
 (0)