Skip to content

Commit

Permalink
refactor: remove codegen support functions (#50)
Browse files Browse the repository at this point in the history
Related to Safe-DS/DSL#831 and
Safe-DS/DSL#836

### Summary of Changes

- remove `eager_or`, `eager_and`, `eager_elvis`, `safe_access` codegen
functions
  • Loading branch information
WinPlay02 authored Feb 3, 2024
1 parent a675b60 commit 022ca7a
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 234 deletions.
5 changes: 0 additions & 5 deletions src/safeds_runner/codegen/__init__.py

This file was deleted.

21 changes: 0 additions & 21 deletions src/safeds_runner/codegen/_operators.py

This file was deleted.

Empty file.
51 changes: 0 additions & 51 deletions tests/safeds_runner/codegen/test_eager_and.py

This file was deleted.

58 changes: 0 additions & 58 deletions tests/safeds_runner/codegen/test_eager_elvis.py

This file was deleted.

51 changes: 0 additions & 51 deletions tests/safeds_runner/codegen/test_eager_or.py

This file was deleted.

46 changes: 0 additions & 46 deletions tests/safeds_runner/codegen/test_safe_access.py

This file was deleted.

3 changes: 1 addition & 2 deletions tests/safeds_runner/server/test_websocket_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,13 +467,12 @@ async def test_should_execute_pipeline_return_valid_placeholder(
"code": {
"": {
"gen_b": (
"import safeds_runner.codegen\n"
"from a.stub import u\n"
"from v.u.s.testing import add1\n"
"\n"
"def c():\n"
"\ta1 = 1\n"
"\ta2 = safeds_runner.codegen.eager_or(True, False)\n"
"\ta2 = True or False\n"
"\tprint('test2')\n"
"\tprint('new dynamic output')\n"
"\tprint(f'Add1: {add1(1, 2)}')\n"
Expand Down

0 comments on commit 022ca7a

Please sign in to comment.