Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit 59a555b

Browse files
feat: remove generation of Safe-DS stubs (#1396)
### Summary of Changes Remove the generation of Safe-DS stubs since it's based on the old Xtext implementation of the DSL. This will instead become a [standalone command line tool](https://github.com/Safe-DS/Stub-Generator). --------- Co-authored-by: megalinter-bot <[email protected]>
1 parent 341a1bf commit 59a555b

File tree

4 files changed

+2
-1597
lines changed

4 files changed

+2
-1597
lines changed

api-editor/backend/src/main/kotlin/com/safeds/apiEditor/codegen/CodeGenerationPlan.kt

-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.safeds.apiEditor.codegen
22

3-
import com.larsreimann.safeds.constant.SdsFileExtension
43
import com.safeds.apiEditor.mutableModel.PythonModule
54
import com.safeds.apiEditor.mutableModel.PythonPackage
65
import java.io.BufferedInputStream
@@ -18,7 +17,6 @@ fun PythonPackage.generateCode(): File {
1817
for (module in modules) {
1918
try {
2019
createPythonFile(workingDirectory, module)
21-
createStubFile(workingDirectory, module)
2220
} catch (e: Exception) {
2321
e.printStackTrace()
2422
}
@@ -37,14 +35,6 @@ private fun createPythonFile(workingDirectory: File, module: PythonModule) {
3735
.createFile(module.toPythonCode())
3836
}
3937

40-
private fun createStubFile(workingDirectory: File, module: PythonModule) {
41-
workingDirectory
42-
.resolve("stub")
43-
.resolve(module.name.replace('.', '/'))
44-
.resolve(module.name.split(".").last() + "." + SdsFileExtension.Stub)
45-
.createFile(module.toStubCode())
46-
}
47-
4838
private fun File.createFile(content: String) {
4939
parentFile.mkdirs()
5040
createNewFile()

api-editor/backend/src/main/kotlin/com/safeds/apiEditor/codegen/StubCodeGenerator.kt

-335
This file was deleted.

0 commit comments

Comments
 (0)