This repository was archived by the owner on Jan 19, 2025. It is now read-only.
File tree 5 files changed +8
-12
lines changed
main/kotlin/com/larsreimann/api_editor/transformation
test/kotlin/com/larsreimann/api_editor/transformation
5 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 22
22
}
23
23
}
24
24
25
-
26
25
// Subprojects ---------------------------------------------------------------------------------------------------------
27
26
28
27
subprojects {
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ tasks.withType<KotlinCompile> {
26
26
kotlinOptions.jvmTarget = javaVersion
27
27
}
28
28
29
-
30
29
// Dependencies --------------------------------------------------------------------------------------------------------
31
30
32
31
val ktorVersion = " 1.6.7"
Original file line number Diff line number Diff line change 1
1
package com.larsreimann.api_editor.transformation
2
2
3
3
import com.larsreimann.api_editor.model.EnumAnnotation
4
- import com.larsreimann.api_editor.model.PythonParameterAssignment
5
4
import com.larsreimann.api_editor.mutable_model.PythonArgument
6
5
import com.larsreimann.api_editor.mutable_model.PythonAttribute
7
6
import com.larsreimann.api_editor.mutable_model.PythonEnum
Original file line number Diff line number Diff line change @@ -74,14 +74,14 @@ private fun PythonFunction.addOriginalDeclarations() {
74
74
arguments = this .parameters
75
75
.filter { ! it.isImplicit() }
76
76
.map {
77
- PythonArgument (
78
- name = when (it.assignedBy) {
79
- PythonParameterAssignment .NAME_ONLY -> it.name
80
- else -> null
81
- },
82
- value = PythonReference (it)
83
- )
84
- }
77
+ PythonArgument (
78
+ name = when (it.assignedBy) {
79
+ PythonParameterAssignment .NAME_ONLY -> it.name
80
+ else -> null
81
+ },
82
+ value = PythonReference (it)
83
+ )
84
+ }
85
85
)
86
86
}
87
87
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ package com.larsreimann.api_editor.transformation
2
2
3
3
import com.larsreimann.api_editor.model.EnumAnnotation
4
4
import com.larsreimann.api_editor.model.EnumPair
5
- import com.larsreimann.api_editor.model.PythonParameterAssignment
6
5
import com.larsreimann.api_editor.mutable_model.PythonArgument
7
6
import com.larsreimann.api_editor.mutable_model.PythonCall
8
7
import com.larsreimann.api_editor.mutable_model.PythonDeclaration
You can’t perform that action at this time.
0 commit comments