From 0d27e33e198e9a1d21169dc5a2e66fbe61428e09 Mon Sep 17 00:00:00 2001 From: Lars Reimann Date: Thu, 31 Oct 2024 14:28:57 +0100 Subject: [PATCH] fix: generate code for receivers outside of block lambdas (#1246) ### Summary of Changes The code that was generated for the following example was wrong: ``` rawData.removeRows((row) { yield result = row.getValue("age").eq(22).^not(); }); ``` The code that was created for `rawData` was inside the body of the function created for the block lambda. Later references to `rawData` were, thus, unresolved. --- .../python/safe-ds-python-generator.ts | 10 +++-- .../tests/generator/blockLambda/gen_input.py | 4 +- .../generator/blockLambda/gen_input.py.map | 2 +- .../expressions/typeCasts/gen_input.py | 2 +- .../expressions/typeCasts/gen_input.py.map | 2 +- .../tests/generator/safeds/gen_input.py | 2 +- .../tests/generator/safeds/gen_input.py.map | 2 +- .../python/macros/strings/gen_input.py | 4 +- .../python/macros/strings/gen_input.py.map | 2 +- .../python/macros/strings/gen_input.py | 36 +++++++-------- .../python/macros/strings/gen_input.py.map | 2 +- .../gen_input.py | 14 +++--- .../gen_input.py.map | 2 +- .../gen_input.py | 8 ++-- .../gen_input.py.map | 2 +- .../partialImpureDependency/gen_input.py | 14 +++--- .../partialImpureDependency/gen_input.py.map | 2 +- .../partialPureDependency/gen_input.py | 44 +++++++++---------- .../partialPureDependency/gen_input.py.map | 2 +- .../partialRedundantImpurity/gen_input.py | 4 +- .../partialRedundantImpurity/gen_input.py.map | 2 +- .../blockLambdas/gen_input.py | 40 +++++++++++++++-- .../blockLambdas/gen_input.py.map | 2 +- .../expressions/block lambdas/input.sdsdev | 13 +++++- .../expressions/calls/ofClasses/gen_input.py | 4 +- .../calls/ofClasses/gen_input.py.map | 2 +- .../expressionLambdas/gen_input.py | 39 ++++++++++++++-- .../expressionLambdas/gen_input.py.map | 2 +- .../expression lambdas/input.sdsdev | 11 ++++- .../expressions/this/gen_input.py | 4 +- .../expressions/this/gen_input.py.map | 2 +- .../gen_input.py | 42 +++++++++--------- .../gen_input.py.map | 2 +- .../generator/assignment/main/gen_input.py | 32 +++++++------- .../assignment/main/gen_input.py.map | 2 +- .../assignment/rhsIsClassCall/gen_input.py | 2 +- .../rhsIsClassCall/gen_input.py.map | 2 +- .../rhsIsEnumVariantCall/gen_input.py | 2 +- .../rhsIsEnumVariantCall/gen_input.py.map | 2 +- 39 files changed, 228 insertions(+), 139 deletions(-) diff --git a/packages/safe-ds-lang/src/language/generation/python/safe-ds-python-generator.ts b/packages/safe-ds-lang/src/language/generation/python/safe-ds-python-generator.ts index d7b8f87b2..0ab5a540d 100644 --- a/packages/safe-ds-lang/src/language/generation/python/safe-ds-python-generator.ts +++ b/packages/safe-ds-lang/src/language/generation/python/safe-ds-python-generator.ts @@ -117,6 +117,7 @@ import { SafeDsSlicer } from '../../flow/safe-ds-slicer.js'; const LAMBDA_PREFIX = `${CODEGEN_PREFIX}lambda_`; const BLOCK_LAMBDA_RESULT_PREFIX = `${CODEGEN_PREFIX}block_lambda_result_`; +const PLACEHOLDER_PREFIX = `${CODEGEN_PREFIX}placeholder_`; const RECEIVER_PREFIX = `${CODEGEN_PREFIX}receiver_`; const YIELD_PREFIX = `${CODEGEN_PREFIX}yield_`; @@ -538,7 +539,7 @@ export class SafeDsPythonGenerator { assignmentStatements.push( expandTracedToNode( savableAssignment, - )`${RUNNER_PACKAGE}.save_placeholder('${savableAssignment.name}', ${CODEGEN_PREFIX}${savableAssignment.name})`, + )`${RUNNER_PACKAGE}.save_placeholder('${savableAssignment.name}', ${PLACEHOLDER_PREFIX}${savableAssignment.name})`, ); } } @@ -557,7 +558,7 @@ export class SafeDsPythonGenerator { 'name', )(assignee.name)}`; } else if (isSdsPlaceholder(assignee)) { - return expandTracedToNode(assignee)`${CODEGEN_PREFIX}${assignee.name}`; + return expandTracedToNode(assignee)`${PLACEHOLDER_PREFIX}${assignee.name}`; } else if (isSdsWildcard(assignee)) { return traceToNode(assignee)('_'); } else if (isSdsYield(assignee)) { @@ -572,7 +573,8 @@ export class SafeDsPythonGenerator { private generateBlockLambda(blockLambda: SdsBlockLambda, frame: GenerationInfoFrame): Generated { const results = streamBlockLambdaResults(blockLambda).toArray(); - const lambdaBlock = this.generateBlock(blockLambda.body, frame, true); + const lambdaFrame = frame.newScope(); + const lambdaBlock = this.generateBlock(blockLambda.body, lambdaFrame, true); if (results.length !== 0) { lambdaBlock.appendNewLine(); lambdaBlock.append( @@ -815,7 +817,7 @@ export class SafeDsPythonGenerator { frame.addImport(referenceImport); if (isSdsPlaceholder(declaration)) { - return traceToNode(expression)(`${CODEGEN_PREFIX}${declaration.name}`); + return traceToNode(expression)(`${PLACEHOLDER_PREFIX}${declaration.name}`); } else { return traceToNode(expression)(referenceImport?.alias ?? this.getPythonNameOrDefault(declaration)); } diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/block lambda/generated/tests/generator/blockLambda/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/expressions/block lambda/generated/tests/generator/blockLambda/gen_input.py index ca0c62737..d87a1e61d 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/block lambda/generated/tests/generator/blockLambda/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/block lambda/generated/tests/generator/blockLambda/gen_input.py @@ -23,5 +23,5 @@ def __gen_lambda_3(a, b=2): def __gen_lambda_4(a, b=2): __gen_block_lambda_result_d = g() return __gen_block_lambda_result_d - __gen_c = f3(__gen_lambda_4) - g2(__gen_c) + __gen_placeholder_c = f3(__gen_lambda_4) + g2(__gen_placeholder_c) diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/block lambda/generated/tests/generator/blockLambda/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/expressions/block lambda/generated/tests/generator/blockLambda/gen_input.py.map index d3a808175..41e803619 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/block lambda/generated/tests/generator/blockLambda/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/block lambda/generated/tests/generator/blockLambda/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdsdev"],"names":["test","a","b","d","g","f1","f2","g2","f3","c"],"mappings":"AAAA;;;;;;AASA,IAASA,IAAI;IACN,mBAACC,CAAC,EAAOC,CAAC,CAAQ,CAAC;QAClB,0BAAMC,CAAC,GAAGC,CAAC;QADZ,OACC,0BAAMD,CAAC;IADXE,EAAE,CAAC;IAGA,mBAACJ,CAAC,EAAOC,CAAC;QACT,0BAAMC,CAAC,GAAGC,CAAC;QADZ,OACC,0BAAMD,CAAC;IADXE,EAAE,CAAC;IAGA;QAAG,IAAE;IAARC,EAAE,CAAC;IACG,mBAACL,CAAC,EAAOC,CAAC,CAAQ,CAAC;QACrB,0BAAMC,CAAC,GAAGC,CAAC;QADT,OACF,0BAAMD,CAAC;IADXI,EAAE,CAACC,EAAE,CAAC;IAGK,mBAACP,CAAC,EAAOC,CAAC,CAAQ,CAAC;QAC1B,0BAAMC,CAAC,GAAGC,CAAC;QADJ,OACP,0BAAMD,CAAC;IADX,UAAQK,EAAE,CAAC;IAGXD,EAAE,CAACE,OAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdsdev"],"names":["test","a","b","d","g","f1","f2","g2","f3","c"],"mappings":"AAAA;;;;;;AASA,IAASA,IAAI;IACN,mBAACC,CAAC,EAAOC,CAAC,CAAQ,CAAC;QAClB,0BAAMC,CAAC,GAAGC,CAAC;QADZ,OACC,0BAAMD,CAAC;IADXE,EAAE,CAAC;IAGA,mBAACJ,CAAC,EAAOC,CAAC;QACT,0BAAMC,CAAC,GAAGC,CAAC;QADZ,OACC,0BAAMD,CAAC;IADXE,EAAE,CAAC;IAGA;QAAG,IAAE;IAARC,EAAE,CAAC;IACG,mBAACL,CAAC,EAAOC,CAAC,CAAQ,CAAC;QACrB,0BAAMC,CAAC,GAAGC,CAAC;QADT,OACF,0BAAMD,CAAC;IADXI,EAAE,CAACC,EAAE,CAAC;IAGK,mBAACP,CAAC,EAAOC,CAAC,CAAQ,CAAC;QAC1B,0BAAMC,CAAC,GAAGC,CAAC;QADJ,OACP,0BAAMD,CAAC;IADX,sBAAQK,EAAE,CAAC;IAGXD,EAAE,CAACE,mBAAC","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/type casts/generated/tests/generation/expressions/typeCasts/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/expressions/type casts/generated/tests/generation/expressions/typeCasts/gen_input.py index e31ba952c..e83875203 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/type casts/generated/tests/generation/expressions/typeCasts/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/type casts/generated/tests/generation/expressions/typeCasts/gen_input.py @@ -1,4 +1,4 @@ # Segments --------------------------------------------------------------------- def mySegment(p): - __gen_a = p + __gen_placeholder_a = p diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/type casts/generated/tests/generation/expressions/typeCasts/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/expressions/type casts/generated/tests/generation/expressions/typeCasts/gen_input.py.map index 6a7fd1c4d..b7d1c2b41 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/type casts/generated/tests/generation/expressions/typeCasts/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/type casts/generated/tests/generation/expressions/typeCasts/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdsdev"],"names":["mysegment","p"],"mappings":"AAAA;;AAEA,IAAQA,SAAS,CAACC,CAAC;IACf,UAAQA,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdsdev"],"names":["mysegment","p"],"mappings":"AAAA;;AAEA,IAAQA,SAAS,CAACC,CAAC;IACf,sBAAQA,CAAC","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/imports/safeds/generated/tests/generator/safeds/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/imports/safeds/generated/tests/generator/safeds/gen_input.py index 58c8dc649..61b8a1617 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/imports/safeds/generated/tests/generator/safeds/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/imports/safeds/generated/tests/generator/safeds/gen_input.py @@ -5,4 +5,4 @@ # Pipelines -------------------------------------------------------------------- def test(): - __gen_a = Table() + __gen_placeholder_a = Table() diff --git a/packages/safe-ds-lang/tests/resources/generation/python/imports/safeds/generated/tests/generator/safeds/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/imports/safeds/generated/tests/generator/safeds/gen_input.py.map index f770230fa..fc20c1aa4 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/imports/safeds/generated/tests/generator/safeds/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/imports/safeds/generated/tests/generator/safeds/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdsdev"],"names":["test","table"],"mappings":"AAEA;;;;;;AAEA,IAASA,IAAI;IACT,UAAQC,KAAK","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdsdev"],"names":["test","table"],"mappings":"AAEA;;;;;;AAEA,IAASA,IAAI;IACT,sBAAQC,KAAK","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/macros/any/generated/tests/generation/python/macros/strings/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/macros/any/generated/tests/generation/python/macros/strings/gen_input.py index aff70d4a9..8a3e71a17 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/macros/any/generated/tests/generation/python/macros/strings/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/macros/any/generated/tests/generation/python/macros/strings/gen_input.py @@ -2,6 +2,6 @@ def myPipeline(): __gen_receiver_0 = 'Hello, world!' - __gen_toBoolean = (bool((__gen_receiver_0))) + __gen_placeholder_toBoolean = (bool((__gen_receiver_0))) __gen_receiver_1 = 'Hello, world!' - __gen_toString = (str((__gen_receiver_1))) + __gen_placeholder_toString = (str((__gen_receiver_1))) diff --git a/packages/safe-ds-lang/tests/resources/generation/python/macros/any/generated/tests/generation/python/macros/strings/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/macros/any/generated/tests/generation/python/macros/strings/gen_input.py.map index f626d10de..cab127b8b 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/macros/any/generated/tests/generation/python/macros/strings/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/macros/any/generated/tests/generation/python/macros/strings/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdsdev"],"names":["mypipeline"],"mappings":"AAAA;;AAEA,IAASA,UAAU;IACC,mBAAA;IAAhB,mBAAgB;IACD,mBAAA;IAAf,kBAAe","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdsdev"],"names":["mypipeline"],"mappings":"AAAA;;AAEA,IAASA,UAAU;IACC,mBAAA;IAAhB,+BAAgB;IACD,mBAAA;IAAf,8BAAe","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/macros/strings/generated/tests/generation/python/macros/strings/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/macros/strings/generated/tests/generation/python/macros/strings/gen_input.py index 8509998c7..d08735072 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/macros/strings/generated/tests/generation/python/macros/strings/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/macros/strings/generated/tests/generation/python/macros/strings/gen_input.py @@ -2,38 +2,38 @@ def myPipeline(): __gen_receiver_0 = 'Hello, world!' - __gen_contains = (('world') in (__gen_receiver_0)) + __gen_placeholder_contains = (('world') in (__gen_receiver_0)) __gen_receiver_1 = 'Hello, world!' - __gen_endsWith = ((__gen_receiver_1).endswith(('world!'))) + __gen_placeholder_endsWith = ((__gen_receiver_1).endswith(('world!'))) __gen_receiver_2 = 'Hello, world!' - __gen_indexOf = ((__gen_receiver_2).find(('o'))) + __gen_placeholder_indexOf = ((__gen_receiver_2).find(('o'))) __gen_receiver_3 = 'Hello, world!' - __gen_lastIndexOf = ((__gen_receiver_3).rfind(('o'))) + __gen_placeholder_lastIndexOf = ((__gen_receiver_3).rfind(('o'))) __gen_receiver_4 = 'Hello, world!' - __gen_length = (len((__gen_receiver_4))) + __gen_placeholder_length = (len((__gen_receiver_4))) __gen_receiver_5 = 'Hello, world!' - __gen_repeat = ((__gen_receiver_5) * (2)) + __gen_placeholder_repeat = ((__gen_receiver_5) * (2)) __gen_receiver_6 = 'Hello, world!' - __gen_replace = ((__gen_receiver_6).replace(('world'), ('planet'))) + __gen_placeholder_replace = ((__gen_receiver_6).replace(('world'), ('planet'))) __gen_receiver_7 = 'Hello, world!' - __gen_split = ((__gen_receiver_7).split((', '))) + __gen_placeholder_split = ((__gen_receiver_7).split((', '))) __gen_receiver_8 = 'Hello, world!' - __gen_startsWith = ((__gen_receiver_8).startswith(('Hello'))) + __gen_placeholder_startsWith = ((__gen_receiver_8).startswith(('Hello'))) __gen_receiver_9 = 'Hello, world!' - __gen_substring = ((__gen_receiver_9)[(7):()]) + __gen_placeholder_substring = ((__gen_receiver_9)[(7):()]) __gen_receiver_10 = 'Hello, world!' - __gen_casefolded = ((__gen_receiver_10).casefold()) + __gen_placeholder_casefolded = ((__gen_receiver_10).casefold()) __gen_receiver_11 = '3.14' - __gen_float = (float((__gen_receiver_11))) + __gen_placeholder_float = (float((__gen_receiver_11))) __gen_receiver_12 = '42' - __gen_int = (int((__gen_receiver_12), ())) + __gen_placeholder_int = (int((__gen_receiver_12), ())) __gen_receiver_13 = 'Hello, world!' - __gen_lowercase = ((__gen_receiver_13).lower()) + __gen_placeholder_lowercase = ((__gen_receiver_13).lower()) __gen_receiver_14 = 'Hello, world!' - __gen_uppercase = ((__gen_receiver_14).upper()) + __gen_placeholder_uppercase = ((__gen_receiver_14).upper()) __gen_receiver_15 = ' Hello, world! ' - __gen_trimmed = ((__gen_receiver_15).strip()) + __gen_placeholder_trimmed = ((__gen_receiver_15).strip()) __gen_receiver_16 = ' Hello, world! ' - __gen_trimmedEnd = ((__gen_receiver_16).rstrip()) + __gen_placeholder_trimmedEnd = ((__gen_receiver_16).rstrip()) __gen_receiver_17 = ' Hello, world! ' - __gen_trimmedStart = ((__gen_receiver_17).lstrip()) + __gen_placeholder_trimmedStart = ((__gen_receiver_17).lstrip()) diff --git a/packages/safe-ds-lang/tests/resources/generation/python/macros/strings/generated/tests/generation/python/macros/strings/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/macros/strings/generated/tests/generation/python/macros/strings/gen_input.py.map index cc4a50970..132ba6d68 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/macros/strings/generated/tests/generation/python/macros/strings/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/macros/strings/generated/tests/generation/python/macros/strings/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdsdev"],"names":["mypipeline"],"mappings":"AAAA;;AAEA,IAASA,UAAU;IACA,mBAAA;IAAf,kBAAe,CAAyB,OAAO;IAChC,mBAAA;IAAf,kBAAe,6BAAyB,QAAQ;IAClC,mBAAA;IAAd,iBAAc,yBAAwB,GAAG;IACvB,mBAAA;IAAlB,qBAAkB,0BAA4B,GAAG;IACpC,mBAAA;IAAb,gBAAa;IACA,mBAAA;IAAb,gBAAa,sBAAuB,CAAC;IACvB,mBAAA;IAAd,iBAAc,4BAAwB,OAAO,IAAE,QAAQ;IAC3C,mBAAA;IAAZ,eAAY,0BAAsB;IACjB,mBAAA;IAAjB,oBAAiB,+BAA2B,OAAO;IACnC,mBAAA;IAAhB,mBAAgB,oBAA0B,CAAC;IAC1B,oBAAA;IAAjB,oBAAiB;IACL,oBAAA,MAAM;IAAlB,eAAY,0BAAgB;IAClB,oBAAA,IAAI;IAAd,aAAU;IACM,oBAAA;IAAhB,mBAAgB;IACA,oBAAA;IAAhB,mBAAgB;IACF,oBAAA;IAAd,iBAAc;IACG,oBAAA;IAAjB,oBAAiB;IACE,oBAAA;IAAnB,sBAAmB","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdsdev"],"names":["mypipeline"],"mappings":"AAAA;;AAEA,IAASA,UAAU;IACA,mBAAA;IAAf,8BAAe,CAAyB,OAAO;IAChC,mBAAA;IAAf,8BAAe,6BAAyB,QAAQ;IAClC,mBAAA;IAAd,6BAAc,yBAAwB,GAAG;IACvB,mBAAA;IAAlB,iCAAkB,0BAA4B,GAAG;IACpC,mBAAA;IAAb,4BAAa;IACA,mBAAA;IAAb,4BAAa,sBAAuB,CAAC;IACvB,mBAAA;IAAd,6BAAc,4BAAwB,OAAO,IAAE,QAAQ;IAC3C,mBAAA;IAAZ,2BAAY,0BAAsB;IACjB,mBAAA;IAAjB,gCAAiB,+BAA2B,OAAO;IACnC,mBAAA;IAAhB,+BAAgB,oBAA0B,CAAC;IAC1B,oBAAA;IAAjB,gCAAiB;IACL,oBAAA,MAAM;IAAlB,2BAAY,0BAAgB;IAClB,oBAAA,IAAI;IAAd,yBAAU;IACM,oBAAA;IAAhB,+BAAgB;IACA,oBAAA;IAAhB,+BAAgB;IACF,oBAAA;IAAd,6BAAc;IACG,oBAAA;IAAjB,gCAAiB;IACE,oBAAA;IAAnB,kCAAmB","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/partial/impure dependency file constant/generated/tests/generator/partialImpureDependencyFileConstant/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/partial/impure dependency file constant/generated/tests/generator/partialImpureDependencyFileConstant/gen_input.py index eaa15a7da..996d8457e 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/partial/impure dependency file constant/generated/tests/generator/partialImpureDependencyFileConstant/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/partial/impure dependency file constant/generated/tests/generator/partialImpureDependencyFileConstant/gen_input.py @@ -5,10 +5,10 @@ # Pipelines -------------------------------------------------------------------- def testPipeline(): - __gen_impureFileWrite = iFileWriteA() - __gen_impureFileWrite2 = iFileWriteA() - __gen_impureFileReadAgain = iFileReadA() - __gen_impureFileWriteB = iFileWriteB() - __gen_impureFileWrite2B = iFileWriteB() - __gen_impureFileReadAgainB = iFileReadB() - __gen_result = (__gen_impureFileReadAgain) + (__gen_impureFileReadAgainB) + __gen_placeholder_impureFileWrite = iFileWriteA() + __gen_placeholder_impureFileWrite2 = iFileWriteA() + __gen_placeholder_impureFileReadAgain = iFileReadA() + __gen_placeholder_impureFileWriteB = iFileWriteB() + __gen_placeholder_impureFileWrite2B = iFileWriteB() + __gen_placeholder_impureFileReadAgainB = iFileReadB() + __gen_placeholder_result = (__gen_placeholder_impureFileReadAgain) + (__gen_placeholder_impureFileReadAgainB) diff --git a/packages/safe-ds-lang/tests/resources/generation/python/partial/impure dependency file constant/generated/tests/generator/partialImpureDependencyFileConstant/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/partial/impure dependency file constant/generated/tests/generator/partialImpureDependencyFileConstant/gen_input.py.map index 6b46c98c5..3c21e131f 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/partial/impure dependency file constant/generated/tests/generator/partialImpureDependencyFileConstant/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/partial/impure dependency file constant/generated/tests/generator/partialImpureDependencyFileConstant/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdsdev"],"names":["testpipeline","ifilewritea","ifilereada","ifilewriteb","ifilereadb","impurefilereadagain","impurefilereadagainb"],"mappings":"AAAA;;;;;;AAUA,IAASA,YAAY;IAEjB,wBAAsBC,WAAW;IACjC,yBAAuBA,WAAW;IAClC,4BAA0BC,UAAU;IAGpC,yBAAuBC,WAAW;IAClC,0BAAwBA,WAAW;IACnC,6BAA2BC,UAAU;IAGrC,eAAe,CAAAC,yBAAmB,EAAC,CAAC,EAACC,0BAAoB","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdsdev"],"names":["testpipeline","ifilewritea","ifilereada","ifilewriteb","ifilereadb","impurefilereadagain","impurefilereadagainb"],"mappings":"AAAA;;;;;;AAUA,IAASA,YAAY;IAEjB,oCAAsBC,WAAW;IACjC,qCAAuBA,WAAW;IAClC,wCAA0BC,UAAU;IAGpC,qCAAuBC,WAAW;IAClC,sCAAwBA,WAAW;IACnC,yCAA2BC,UAAU;IAGrC,2BAAe,CAAAC,qCAAmB,EAAC,CAAC,EAACC,sCAAoB","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/partial/impure dependency file parameter/generated/tests/generator/partialImpureDependencyFileParameter/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/partial/impure dependency file parameter/generated/tests/generator/partialImpureDependencyFileParameter/gen_input.py index 1462598a4..94f6b46d2 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/partial/impure dependency file parameter/generated/tests/generator/partialImpureDependencyFileParameter/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/partial/impure dependency file parameter/generated/tests/generator/partialImpureDependencyFileParameter/gen_input.py @@ -5,7 +5,7 @@ # Pipelines -------------------------------------------------------------------- def testPipeline(): - __gen_impureFileWrite = iFileWrite('b.txt') - __gen_impureFileWrite2 = iFileWrite('c.txt') - __gen_impureFileReadAgain = iFileRead('d.txt') - __gen_result = (__gen_impureFileReadAgain) + (2) + __gen_placeholder_impureFileWrite = iFileWrite('b.txt') + __gen_placeholder_impureFileWrite2 = iFileWrite('c.txt') + __gen_placeholder_impureFileReadAgain = iFileRead('d.txt') + __gen_placeholder_result = (__gen_placeholder_impureFileReadAgain) + (2) diff --git a/packages/safe-ds-lang/tests/resources/generation/python/partial/impure dependency file parameter/generated/tests/generator/partialImpureDependencyFileParameter/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/partial/impure dependency file parameter/generated/tests/generator/partialImpureDependencyFileParameter/gen_input.py.map index c89ae9078..248529607 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/partial/impure dependency file parameter/generated/tests/generator/partialImpureDependencyFileParameter/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/partial/impure dependency file parameter/generated/tests/generator/partialImpureDependencyFileParameter/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdsdev"],"names":["testpipeline","ifilewrite","ifileread","impurefilereadagain"],"mappings":"AAAA;;;;;;AAMA,IAASA,YAAY;IAEjB,wBAAsBC,UAAU,CAAC,OAAO;IACxC,yBAAuBA,UAAU,CAAC,OAAO;IACzC,4BAA0BC,SAAS,CAAC,OAAO;IAG3C,eAAe,CAAAC,yBAAmB,EAAC,CAAC,EAAC,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdsdev"],"names":["testpipeline","ifilewrite","ifileread","impurefilereadagain"],"mappings":"AAAA;;;;;;AAMA,IAASA,YAAY;IAEjB,oCAAsBC,UAAU,CAAC,OAAO;IACxC,qCAAuBA,UAAU,CAAC,OAAO;IACzC,wCAA0BC,SAAS,CAAC,OAAO;IAG3C,2BAAe,CAAAC,qCAAmB,EAAC,CAAC,EAAC,CAAC","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/partial/impure dependency/generated/tests/generator/partialImpureDependency/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/partial/impure dependency/generated/tests/generator/partialImpureDependency/gen_input.py index 49c20ad20..34662ddcc 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/partial/impure dependency/generated/tests/generator/partialImpureDependency/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/partial/impure dependency/generated/tests/generator/partialImpureDependency/gen_input.py @@ -6,17 +6,17 @@ def testPipeline(): i1(1) - __gen_impureFileWrite = iFileWrite() - __gen_impureFileWrite2 = iFileWrite() - __gen_pureValueForImpure2 = noPartialEvalInt(2) - __gen_pureValueForImpure3 = 3 + __gen_placeholder_impureFileWrite = iFileWrite() + __gen_placeholder_impureFileWrite2 = iFileWrite() + __gen_placeholder_pureValueForImpure2 = noPartialEvalInt(2) + __gen_placeholder_pureValueForImpure3 = 3 def __gen_lambda_0(): i1(1) __gen_block_lambda_result_r = 1 return __gen_block_lambda_result_r fp(__gen_lambda_0) i1(1) - __gen_impureA1 = i1(__gen_pureValueForImpure2) - __gen_impureA2 = i1(noPartialEvalInt(3)) + __gen_placeholder_impureA1 = i1(__gen_placeholder_pureValueForImpure2) + __gen_placeholder_impureA2 = i1(noPartialEvalInt(3)) i1(4) - __gen_result = i1(__gen_impureA2) + __gen_placeholder_result = i1(__gen_placeholder_impureA2) diff --git a/packages/safe-ds-lang/tests/resources/generation/python/partial/impure dependency/generated/tests/generator/partialImpureDependency/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/partial/impure dependency/generated/tests/generator/partialImpureDependency/gen_input.py.map index 33bd132b1..2af1b4b74 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/partial/impure dependency/generated/tests/generator/partialImpureDependency/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/partial/impure dependency/generated/tests/generator/partialImpureDependency/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdsdev"],"names":["testpipeline","i1","ifilewrite","nopartialevalint","r","fp","purevalueforimpure2","purevalueforimpure3","impurea2"],"mappings":"AAAA;;;;;;AAeA,IAASA,YAAY;IACjBC,EAAE,CAAC,CAAC;IAGJ,wBAAsBC,UAAU;IAChC,yBAAuBA,UAAU;IAEjC,4BAA0BC,gBAAgB,CAAC,CAAC;IAC5C,4BAA0B,CAAC;IAExB;QACCF,EAAE,CAAC,CAAC;QACJ,0BAAMG,CAAC,GAAG,CAAC;QAFZ,OAEC,0BAAMA,CAAC;IAFXC,EAAE,CAAC;IAIHJ,EAAE,CAAC,CAAC;IACJ,iBAAeA,EAAE,CAACK,yBAAmB;IACrC,iBAAeL,EAAE,CAACE,gBAAgB,CAACI,CAAmB;IACtDN,EAAE,CAAC,CAAC;IAGJ,eAAeA,EAAE,CAACO,cAAQ","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdsdev"],"names":["testpipeline","i1","ifilewrite","nopartialevalint","r","fp","purevalueforimpure2","purevalueforimpure3","impurea2"],"mappings":"AAAA;;;;;;AAeA,IAASA,YAAY;IACjBC,EAAE,CAAC,CAAC;IAGJ,oCAAsBC,UAAU;IAChC,qCAAuBA,UAAU;IAEjC,wCAA0BC,gBAAgB,CAAC,CAAC;IAC5C,wCAA0B,CAAC;IAExB;QACCF,EAAE,CAAC,CAAC;QACJ,0BAAMG,CAAC,GAAG,CAAC;QAFZ,OAEC,0BAAMA,CAAC;IAFXC,EAAE,CAAC;IAIHJ,EAAE,CAAC,CAAC;IACJ,6BAAeA,EAAE,CAACK,qCAAmB;IACrC,6BAAeL,EAAE,CAACE,gBAAgB,CAACI,CAAmB;IACtDN,EAAE,CAAC,CAAC;IAGJ,2BAAeA,EAAE,CAACO,0BAAQ","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/partial/pure dependency/generated/tests/generator/partialPureDependency/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/partial/pure dependency/generated/tests/generator/partialPureDependency/gen_input.py index 07cae0cae..82b7aa47e 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/partial/pure dependency/generated/tests/generator/partialPureDependency/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/partial/pure dependency/generated/tests/generator/partialPureDependency/gen_input.py @@ -5,30 +5,30 @@ # Pipelines -------------------------------------------------------------------- def testPipeline(): - __gen_lFalse = False - __gen_lDouble = -1.0 - __gen_lInt = 1 - __gen_lNull = None - __gen_lStrMulti = 'multi\nline' - __gen_boolean1 = True - __gen_value1 = g(True, -1.0, 1, None, 'multi\nline') + __gen_placeholder_lFalse = False + __gen_placeholder_lDouble = -1.0 + __gen_placeholder_lInt = 1 + __gen_placeholder_lNull = None + __gen_placeholder_lStrMulti = 'multi\nline' + __gen_placeholder_boolean1 = True + __gen_placeholder_value1 = g(True, -1.0, 1, None, 'multi\nline') def __gen_lambda_0(): - __gen_i = 1 - __gen_i2 = 3 - __gen_j = 6 - __gen_j2 = 4 + __gen_placeholder_i = 1 + __gen_placeholder_i2 = 3 + __gen_placeholder_j = 6 + __gen_placeholder_j2 = 4 __gen_block_lambda_result_z = 7 return __gen_block_lambda_result_z def __gen_lambda_1(): return 2 - __gen_o = (f(__gen_lambda_0)) + (f(__gen_lambda_1)) - __gen_mapKey = 'key' - __gen_mapValue = 'value' - __gen_mapResult = g2({'key': 'value'}) - __gen_listV1 = 1 - __gen_listV3 = noPartialEvalInt(1) - __gen_list = [1] - __gen_list3 = [__gen_listV3] - __gen_listValue = __gen_list3[0] - __gen_listResult = g3(__gen_list) - __gen_result = (((-(__gen_o)) + (1)) + (__gen_value1)) + (((__gen_mapResult) * (__gen_listResult)) / (g4(__gen_listValue))) + __gen_placeholder_o = (f(__gen_lambda_0)) + (f(__gen_lambda_1)) + __gen_placeholder_mapKey = 'key' + __gen_placeholder_mapValue = 'value' + __gen_placeholder_mapResult = g2({'key': 'value'}) + __gen_placeholder_listV1 = 1 + __gen_placeholder_listV3 = noPartialEvalInt(1) + __gen_placeholder_list = [1] + __gen_placeholder_list3 = [__gen_placeholder_listV3] + __gen_placeholder_listValue = __gen_placeholder_list3[0] + __gen_placeholder_listResult = g3(__gen_placeholder_list) + __gen_placeholder_result = (((-(__gen_placeholder_o)) + (1)) + (__gen_placeholder_value1)) + (((__gen_placeholder_mapResult) * (__gen_placeholder_listResult)) / (g4(__gen_placeholder_listValue))) diff --git a/packages/safe-ds-lang/tests/resources/generation/python/partial/pure dependency/generated/tests/generator/partialPureDependency/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/partial/pure dependency/generated/tests/generator/partialPureDependency/gen_input.py.map index 38394bc7a..63741e1ce 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/partial/pure dependency/generated/tests/generator/partialPureDependency/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/partial/pure dependency/generated/tests/generator/partialPureDependency/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdsdev"],"names":["testpipeline","false","null","g","boolean1","ldouble","lint","lnull","lstrmulti","z","f","g2","mapkey","mapvalue","nopartialevalint","listv1","listv3","list3","g3","list","o","value1","mapresult","listresult","g4","listvalue"],"mappings":"AAAA;;;;;;AAcA,IAASA,YAAY;IACjB,eAAaC,KAAK;IAGlB,gBAAc,IAAI;IAGlB,aAAW,CAAC;IAGZ,cAAYC,IAAI;IAGhB,kBAAgB;IAIhB,iBAAe;IAGf,eAAaC,CAAC,CAACC,IAAQ,EAAEC,IAAO,EAAEC,CAAI,EAAEC,IAAK,EAAEC,aAAS;IAG9C;QACN,UAAQ,CAAC;QACT,WAAS,CAAC;QACV,UAAQ;QACR,WAAS;QACT,0BAAMC,CAAC,GAAG;QALJ,OAKN,0BAAMA,CAAC;IACJ;eAAM,CAAC;IANd,UAAQ,CAAAC,CAAC,CAAC,iBAMP,CAAC,EAACA,CAAC,CAAC;IAcP,eAAa,KAAK;IAClB,iBAAe,OAAO;IACtB,kBAAgBC,EAAE,CAAC,CAACC,KAAM,EAAEC,OAAQ;IAMpC,eAAa,CAAC;IAEd,eAAaC,gBAAgB,CAACC,CAAM;IAEpC,aAAW,CAACA,CAAM;IAElB,cAAY,CAACC,YAAM;IACnB,kBAAgBC,WAAK,CAAC,CAAC;IAEvB,mBAAiBC,EAAE,CAACC,UAAI;IAIxB,eAAe,CAAO,CAAP,CAAA,CAAC,CAAAC,OAAC,GAAC,CAAC,EAAC,CAAC,GAAC,CAAC,EAACC,YAAM,GAAC,CAAC,EAAwB,CAAvB,CAAAC,eAAS,EAAC,CAAC,EAACC,gBAAU,GAAC,CAAC,EAACC,EAAE,CAACC,eAAS","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdsdev"],"names":["testpipeline","false","null","g","boolean1","ldouble","lint","lnull","lstrmulti","z","f","g2","mapkey","mapvalue","nopartialevalint","listv1","listv3","list3","g3","list","o","value1","mapresult","listresult","g4","listvalue"],"mappings":"AAAA;;;;;;AAcA,IAASA,YAAY;IACjB,2BAAaC,KAAK;IAGlB,4BAAc,IAAI;IAGlB,yBAAW,CAAC;IAGZ,0BAAYC,IAAI;IAGhB,8BAAgB;IAIhB,6BAAe;IAGf,2BAAaC,CAAC,CAACC,IAAQ,EAAEC,IAAO,EAAEC,CAAI,EAAEC,IAAK,EAAEC,aAAS;IAG9C;QACN,sBAAQ,CAAC;QACT,uBAAS,CAAC;QACV,sBAAQ;QACR,uBAAS;QACT,0BAAMC,CAAC,GAAG;QALJ,OAKN,0BAAMA,CAAC;IACJ;eAAM,CAAC;IANd,sBAAQ,CAAAC,CAAC,CAAC,iBAMP,CAAC,EAACA,CAAC,CAAC;IAcP,2BAAa,KAAK;IAClB,6BAAe,OAAO;IACtB,8BAAgBC,EAAE,CAAC,CAACC,KAAM,EAAEC,OAAQ;IAMpC,2BAAa,CAAC;IAEd,2BAAaC,gBAAgB,CAACC,CAAM;IAEpC,yBAAW,CAACA,CAAM;IAElB,0BAAY,CAACC,wBAAM;IACnB,8BAAgBC,uBAAK,CAAC,CAAC;IAEvB,+BAAiBC,EAAE,CAACC,sBAAI;IAIxB,2BAAe,CAAO,CAAP,CAAA,CAAC,CAAAC,mBAAC,GAAC,CAAC,EAAC,CAAC,GAAC,CAAC,EAACC,wBAAM,GAAC,CAAC,EAAwB,CAAvB,CAAAC,2BAAS,EAAC,CAAC,EAACC,4BAAU,GAAC,CAAC,EAACC,EAAE,CAACC,2BAAS","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/partial/redundant impurity/generated/tests/generator/partialRedundantImpurity/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/partial/redundant impurity/generated/tests/generator/partialRedundantImpurity/gen_input.py index d999eebff..cf12ac022 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/partial/redundant impurity/generated/tests/generator/partialRedundantImpurity/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/partial/redundant impurity/generated/tests/generator/partialRedundantImpurity/gen_input.py @@ -5,5 +5,5 @@ # Pipelines -------------------------------------------------------------------- def testPipeline(): - __gen_pureValue = noPartialEvalInt(2) - __gen_result = (__gen_pureValue) - (1) + __gen_placeholder_pureValue = noPartialEvalInt(2) + __gen_placeholder_result = (__gen_placeholder_pureValue) - (1) diff --git a/packages/safe-ds-lang/tests/resources/generation/python/partial/redundant impurity/generated/tests/generator/partialRedundantImpurity/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/partial/redundant impurity/generated/tests/generator/partialRedundantImpurity/gen_input.py.map index ba973c3bc..ca437c58d 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/partial/redundant impurity/generated/tests/generator/partialRedundantImpurity/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/partial/redundant impurity/generated/tests/generator/partialRedundantImpurity/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdsdev"],"names":["testpipeline","nopartialevalint","purevalue"],"mappings":"AAAA;;;;;;AAeA,IAASA,YAAY;IAMjB,kBAAgBC,gBAAgB,CAAC,CAAC;IAalC,eAAe,CAAAC,eAAS,EAAC,CAAC,EAAC,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdsdev"],"names":["testpipeline","nopartialevalint","purevalue"],"mappings":"AAAA;;;;;;AAeA,IAASA,YAAY;IAMjB,8BAAgBC,gBAAgB,CAAC,CAAC;IAalC,2BAAe,CAAAC,2BAAS,EAAC,CAAC,EAAC,CAAC","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/block lambdas/generated/tests/generation/python/runnerIntegration/blockLambdas/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/block lambdas/generated/tests/generation/python/runnerIntegration/blockLambdas/gen_input.py index f6e6c26ee..28cefd227 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/block lambdas/generated/tests/generation/python/runnerIntegration/blockLambdas/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/block lambdas/generated/tests/generation/python/runnerIntegration/blockLambdas/gen_input.py @@ -1,7 +1,7 @@ # Imports ---------------------------------------------------------------------- import safeds_runner -from tests.generation.python.runnerIntegration.blockLambdas import f +from tests.generation.python.runnerIntegration.blockLambdas import C, f # Pipelines -------------------------------------------------------------------- @@ -16,11 +16,45 @@ def __gen_lambda_1(p): [] ) return __gen_block_lambda_result_r - __gen_result = safeds_runner.memoized_static_call( + __gen_placeholder__result = safeds_runner.memoized_static_call( "tests.generation.python.runnerIntegration.blockLambdas.f", f, [__gen_lambda_1], {}, [] ) - safeds_runner.save_placeholder('result', __gen_result) + safeds_runner.save_placeholder('_result', __gen_placeholder__result) + __gen_receiver_2 = safeds_runner.memoized_static_call( + "tests.generation.python.runnerIntegration.blockLambdas.C", + C, + [], + {}, + [] + ) + def __gen_lambda_4(a): + __gen_receiver_3 = a + __gen_block_lambda_result_result = safeds_runner.memoized_dynamic_call( + __gen_receiver_3, + "parent", + [], + {}, + [] + ) + return __gen_block_lambda_result_result + __gen_placeholder_result2 = safeds_runner.memoized_dynamic_call( + __gen_receiver_2, + "f1", + [__gen_lambda_4], + {}, + [] + ) + safeds_runner.save_placeholder('result2', __gen_placeholder_result2) + __gen_receiver_5 = __gen_placeholder_result2 + __gen_placeholder_result3 = safeds_runner.memoized_dynamic_call( + __gen_receiver_5, + "parent", + [], + {}, + [] + ) + safeds_runner.save_placeholder('result3', __gen_placeholder_result3) diff --git a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/block lambdas/generated/tests/generation/python/runnerIntegration/blockLambdas/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/block lambdas/generated/tests/generation/python/runnerIntegration/blockLambdas/gen_input.py.map index 95354d311..9553bb803 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/block lambdas/generated/tests/generation/python/runnerIntegration/blockLambdas/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/block lambdas/generated/tests/generation/python/runnerIntegration/blockLambdas/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdsdev"],"names":["mypipeline","p","r","f"],"mappings":"AAEA;;;;;;;AAYA,IAASA,UAAU;IAEX,mBAACC,CAAC;QACYA,mBAAAA,CAAC;QAAX,0BAAMC,CAAC,GAAG;;;;;;;QADd,OACI,0BAAMA,CAAC;IAFf,eAAa;;QAAAC,CAAC;SACV;;;;IADJ","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdsdev"],"names":["mypipeline","p","r","f","c","a","result","result2"],"mappings":"AAEA;;;;;;;AAkBA,IAASA,UAAU;IAEX,mBAACC,CAAC;QACYA,mBAAAA,CAAC;QAAX,0BAAMC,CAAC,GAAG;;;;;;;QADd,OACI,0BAAMA,CAAC;IAFf,4BAAc;;QAAAC,CAAC;SACX;;;;IADJ;IAMc,mBAAA;;QAAAC,CAAC;;;;;IAAM,mBAACC,CAAC;QACJA,mBAAAA,CAAC;QAAhB,0BAAMC,MAAM,GAAG;;;;;;;QADE,OACjB,0BAAMA,MAAM;IADhB,4BAAc;;;SAAO;;;;IAArB;IAGcC,mBAAAA,yBAAO;IAArB,4BAAc;;;;;;;IAAd","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/block lambdas/input.sdsdev b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/block lambdas/input.sdsdev index a238b88ae..4090b71bd 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/block lambdas/input.sdsdev +++ b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/block lambdas/input.sdsdev @@ -12,10 +12,21 @@ fun f( callback: (p: MyClass) -> (r: Int) ) -> result: Any +class C() { + @Pure fun parent() -> parent: C + + @Pure fun f1(param: (a: C) -> ()) -> parent: C +} + pipeline myPipeline { - val result = f( + val _result = f( (p) { yield r = p.g(); } ); + + val result2 = C().f1((a) { + yield result = a.parent(); + }); + val result3 = result2.parent(); } diff --git a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/calls/of classes/generated/tests/generator/runnerIntegration/expressions/calls/ofClasses/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/calls/of classes/generated/tests/generator/runnerIntegration/expressions/calls/ofClasses/gen_input.py index 806e46cc9..71106ebb2 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/calls/of classes/generated/tests/generator/runnerIntegration/expressions/calls/ofClasses/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/calls/of classes/generated/tests/generator/runnerIntegration/expressions/calls/ofClasses/gen_input.py @@ -6,11 +6,11 @@ # Pipelines -------------------------------------------------------------------- def test(): - __gen_a = safeds_runner.memoized_static_call( + __gen_placeholder_a = safeds_runner.memoized_static_call( "tests.generator.runnerIntegration.expressions.calls.ofClasses.MyClass", MyClass, [0], {}, [] ) - safeds_runner.save_placeholder('a', __gen_a) + safeds_runner.save_placeholder('a', __gen_placeholder_a) diff --git a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/calls/of classes/generated/tests/generator/runnerIntegration/expressions/calls/ofClasses/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/calls/of classes/generated/tests/generator/runnerIntegration/expressions/calls/ofClasses/gen_input.py.map index acf8f2df4..fd1c8c194 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/calls/of classes/generated/tests/generator/runnerIntegration/expressions/calls/ofClasses/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/calls/of classes/generated/tests/generator/runnerIntegration/expressions/calls/ofClasses/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdsdev"],"names":["test","myclass"],"mappings":"AAEA;;;;;;;AAIA,IAASA,IAAI;IACT,UAAQ;;QAAAC,OAAO;SAAC,CAAC;;;;IAAjB","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdsdev"],"names":["test","myclass"],"mappings":"AAEA;;;;;;;AAIA,IAASA,IAAI;IACT,sBAAQ;;QAAAC,OAAO;SAAC,CAAC;;;;IAAjB","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/expression lambdas/generated/tests/generation/python/runnerIntegration/expressionLambdas/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/expression lambdas/generated/tests/generation/python/runnerIntegration/expressionLambdas/gen_input.py index b76113684..24e306c3e 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/expression lambdas/generated/tests/generation/python/runnerIntegration/expressionLambdas/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/expression lambdas/generated/tests/generation/python/runnerIntegration/expressionLambdas/gen_input.py @@ -1,7 +1,7 @@ # Imports ---------------------------------------------------------------------- import safeds_runner -from tests.generation.python.runnerIntegration.expressionLambdas import f +from tests.generation.python.runnerIntegration.expressionLambdas import C, f # Pipelines -------------------------------------------------------------------- @@ -15,11 +15,44 @@ def __gen_lambda_0(p): {}, [] ) - __gen_result = safeds_runner.memoized_static_call( + __gen_placeholder__result = safeds_runner.memoized_static_call( "tests.generation.python.runnerIntegration.expressionLambdas.f", f, [__gen_lambda_0], {}, [] ) - safeds_runner.save_placeholder('result', __gen_result) + safeds_runner.save_placeholder('_result', __gen_placeholder__result) + __gen_receiver_2 = safeds_runner.memoized_static_call( + "tests.generation.python.runnerIntegration.expressionLambdas.C", + C, + [], + {}, + [] + ) + def __gen_lambda_3(a): + __gen_receiver_4 = a + return safeds_runner.memoized_dynamic_call( + __gen_receiver_4, + "parent", + [], + {}, + [] + ) + __gen_placeholder_result2 = safeds_runner.memoized_dynamic_call( + __gen_receiver_2, + "f1", + [__gen_lambda_3], + {}, + [] + ) + safeds_runner.save_placeholder('result2', __gen_placeholder_result2) + __gen_receiver_5 = __gen_placeholder_result2 + __gen_placeholder_result3 = safeds_runner.memoized_dynamic_call( + __gen_receiver_5, + "parent", + [], + {}, + [] + ) + safeds_runner.save_placeholder('result3', __gen_placeholder_result3) diff --git a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/expression lambdas/generated/tests/generation/python/runnerIntegration/expressionLambdas/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/expression lambdas/generated/tests/generation/python/runnerIntegration/expressionLambdas/gen_input.py.map index b002d235c..811f364a2 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/expression lambdas/generated/tests/generation/python/runnerIntegration/expressionLambdas/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/expression lambdas/generated/tests/generation/python/runnerIntegration/expressionLambdas/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdsdev"],"names":["mypipeline","p","f"],"mappings":"AAEA;;;;;;;AAYA,IAASA,UAAU;IAEX,mBAACC,CAAC;QAAKA,mBAAAA,CAAC;eAAD;;;;;;;IADX,eAAa;;QAAAC,CAAC;SACV;;;;IADJ","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdsdev"],"names":["mypipeline","p","f","c","a","result2"],"mappings":"AAEA;;;;;;;AAkBA,IAASA,UAAU;IAEX,mBAACC,CAAC;QAAKA,mBAAAA,CAAC;eAAD;;;;;;;IADX,4BAAc;;QAAAC,CAAC;SACX;;;;IADJ;IAIc,mBAAA;;QAAAC,CAAC;;;;;IAAM,mBAACC,CAAC;QAAKA,mBAAAA,CAAC;eAAD;;;;;;;IAA5B,4BAAc;;;SAAO;;;;IAArB;IACcC,mBAAAA,yBAAO;IAArB,4BAAc;;;;;;;IAAd","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/expression lambdas/input.sdsdev b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/expression lambdas/input.sdsdev index 20ae0e6c5..04806d5ed 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/expression lambdas/input.sdsdev +++ b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/expression lambdas/input.sdsdev @@ -12,8 +12,17 @@ fun f( callback: (p: MyClass) -> (r: Int) ) -> result: Any +class C() { + @Pure fun parent() -> parent: C + + @Pure fun f1(param: (a: C) -> ()) -> parent: C +} + pipeline myPipeline { - val result = f( + val _result = f( (p) -> p.g() ); + + val result2 = C().f1((a) -> a.parent()); + val result3 = result2.parent(); } diff --git a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/this/generated/tests/generator/runnerIntegration/expressions/this/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/this/generated/tests/generator/runnerIntegration/expressions/this/gen_input.py index e845d01dd..b39c7a15d 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/this/generated/tests/generator/runnerIntegration/expressions/this/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/this/generated/tests/generator/runnerIntegration/expressions/this/gen_input.py @@ -13,11 +13,11 @@ def myPipeline(): {}, [] ) - __gen_a = safeds_runner.memoized_dynamic_call( + __gen_placeholder_a = safeds_runner.memoized_dynamic_call( __gen_receiver_0, "myFunction", [], {"p": __gen_receiver_0}, [] ) - safeds_runner.save_placeholder('a', __gen_a) + safeds_runner.save_placeholder('a', __gen_placeholder_a) diff --git a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/this/generated/tests/generator/runnerIntegration/expressions/this/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/this/generated/tests/generator/runnerIntegration/expressions/this/gen_input.py.map index ca7fe86ae..fe1abd3fc 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/this/generated/tests/generator/runnerIntegration/expressions/this/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/this/generated/tests/generator/runnerIntegration/expressions/this/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdsdev"],"names":["mypipeline","myclass"],"mappings":"AAAA;;;;;;;AAOA,IAASA,UAAU;IACP,mBAAA;;QAAAC,OAAO;;;;;IAAf,UAAQ;;;;;;;IAAR","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdsdev"],"names":["mypipeline","myclass"],"mappings":"AAAA;;;;;;;AAOA,IAASA,UAAU;IACP,mBAAA;;QAAAC,OAAO;;;;;IAAf,sBAAQ;;;;;;;IAAR","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/statements/assignment/generated/tests/generator/assignmentWithRunnerIntegration/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/statements/assignment/generated/tests/generator/assignmentWithRunnerIntegration/gen_input.py index 091bd8433..cd8b82b92 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/statements/assignment/generated/tests/generator/assignmentWithRunnerIntegration/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/statements/assignment/generated/tests/generator/assignmentWithRunnerIntegration/gen_input.py @@ -7,34 +7,34 @@ def testSegment(): g() - __gen_a, _, __gen_yield_c = g() - __gen_x, _, _ = g() - f1(__gen_a) - f1(__gen_x) + __gen_placeholder_a, _, __gen_yield_c = g() + __gen_placeholder_x, _, _ = g() + f1(__gen_placeholder_a) + f1(__gen_placeholder_x) return __gen_yield_c # Pipelines -------------------------------------------------------------------- def testPipeline(): g() - __gen_a, _, _ = g() - safeds_runner.save_placeholder('a', __gen_a) - __gen_x, _, _ = g() - safeds_runner.save_placeholder('x', __gen_x) - f1(__gen_a) - f1(__gen_x) - __gen_l, __gen_m, __gen_n = g() - safeds_runner.save_placeholder('l', __gen_l) - safeds_runner.save_placeholder('m', __gen_m) - safeds_runner.save_placeholder('n', __gen_n) - f1(__gen_l) - f1(__gen_m) - f1(__gen_n) + __gen_placeholder_a, _, _ = g() + safeds_runner.save_placeholder('a', __gen_placeholder_a) + __gen_placeholder_x, _, _ = g() + safeds_runner.save_placeholder('x', __gen_placeholder_x) + f1(__gen_placeholder_a) + f1(__gen_placeholder_x) + __gen_placeholder_l, __gen_placeholder_m, __gen_placeholder_n = g() + safeds_runner.save_placeholder('l', __gen_placeholder_l) + safeds_runner.save_placeholder('m', __gen_placeholder_m) + safeds_runner.save_placeholder('n', __gen_placeholder_n) + f1(__gen_placeholder_l) + f1(__gen_placeholder_m) + f1(__gen_placeholder_n) def __gen_lambda_0(): g() - __gen_a, _, __gen_block_lambda_result_c = g() - __gen_x, _, _ = g() - f1(__gen_a) - f1(__gen_x) + __gen_placeholder_a, _, __gen_block_lambda_result_c = g() + __gen_placeholder_x, _, _ = g() + f1(__gen_placeholder_a) + f1(__gen_placeholder_x) return __gen_block_lambda_result_c f2(__gen_lambda_0) diff --git a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/statements/assignment/generated/tests/generator/assignmentWithRunnerIntegration/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/statements/assignment/generated/tests/generator/assignmentWithRunnerIntegration/gen_input.py.map index 35f954bd0..fba4ea54b 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/statements/assignment/generated/tests/generator/assignmentWithRunnerIntegration/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/statements/assignment/generated/tests/generator/assignmentWithRunnerIntegration/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdsdev"],"names":["testsegment","g","_","c","f1","a","x","testpipeline","l","m","n","f2"],"mappings":"AAAA;;;;;;;AA2BA,IAAQA,WAAW;IACLC,CAAC;IACX,SAAOC,CAAC,EAAE,YAAMC,CAAC,GAAGF,CAAC;IACrB,gBAAQA,CAAC;IACTG,EAAE,CAACC,OAAC;IACJD,EAAE,CAACE,OAAC;IALc,OAAG;;;;AApBzB,IAASC,YAAY;IACPN,CAAC;IACX,SAAOC,CAAC,EAAEA,CAAC,GAAGD,CAAC;IAAf;IACA,gBAAQA,CAAC;IAAT;IACAG,EAAE,CAACC,OAAC;IACJD,EAAE,CAACE,OAAC;IACJ,SAAO,SAAO,UAAQL,CAAC;IAAvB;IAAO;IAAO;IACdG,EAAE,CAACI,OAAC;IACJJ,EAAE,CAACK,OAAC;IACJL,EAAE,CAACM,OAAC;IAED;QACWT,CAAC;QACX,SAAOC,CAAC,EAAE,0BAAMC,CAAC,GAAGF,CAAC;QACrB,gBAAQA,CAAC;QACTG,EAAE,CAACC,OAAC;QACJD,EAAE,CAACE,OAAC;QALL,OAEW,0BAAMH,CAAC;IAFrBQ,EAAE,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdsdev"],"names":["testsegment","g","_","c","f1","a","x","testpipeline","l","m","n","f2"],"mappings":"AAAA;;;;;;;AA2BA,IAAQA,WAAW;IACLC,CAAC;IACX,qBAAOC,CAAC,EAAE,YAAMC,CAAC,GAAGF,CAAC;IACrB,4BAAQA,CAAC;IACTG,EAAE,CAACC,mBAAC;IACJD,EAAE,CAACE,mBAAC;IALc,OAAG;;;;AApBzB,IAASC,YAAY;IACPN,CAAC;IACX,qBAAOC,CAAC,EAAEA,CAAC,GAAGD,CAAC;IAAf;IACA,4BAAQA,CAAC;IAAT;IACAG,EAAE,CAACC,mBAAC;IACJD,EAAE,CAACE,mBAAC;IACJ,qBAAO,qBAAO,sBAAQL,CAAC;IAAvB;IAAO;IAAO;IACdG,EAAE,CAACI,mBAAC;IACJJ,EAAE,CAACK,mBAAC;IACJL,EAAE,CAACM,mBAAC;IAED;QACWT,CAAC;QACX,qBAAOC,CAAC,EAAE,0BAAMC,CAAC,GAAGF,CAAC;QACrB,4BAAQA,CAAC;QACTG,EAAE,CAACC,mBAAC;QACJD,EAAE,CAACE,mBAAC;QALL,OAEW,0BAAMH,CAAC;IAFrBQ,EAAE,CAAC","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/statements/assignments/main/generated/tests/generator/assignment/main/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/statements/assignments/main/generated/tests/generator/assignment/main/gen_input.py index 7ba4db02b..ba290482c 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/statements/assignments/main/generated/tests/generator/assignment/main/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/statements/assignments/main/generated/tests/generator/assignment/main/gen_input.py @@ -6,29 +6,29 @@ def testSegment(): g() - __gen_a, _, __gen_yield_c = g() - __gen_x, _, _ = g() - f1(__gen_a) - f1(__gen_x) + __gen_placeholder_a, _, __gen_yield_c = g() + __gen_placeholder_x, _, _ = g() + f1(__gen_placeholder_a) + f1(__gen_placeholder_x) return __gen_yield_c # Pipelines -------------------------------------------------------------------- def testPipeline(): g() - __gen_a, _, _ = g() - __gen_x, _, _ = g() - f1(__gen_a) - f1(__gen_x) - __gen_l, __gen_m, __gen_n = g() - f1(__gen_l) - f1(__gen_m) - f1(__gen_n) + __gen_placeholder_a, _, _ = g() + __gen_placeholder_x, _, _ = g() + f1(__gen_placeholder_a) + f1(__gen_placeholder_x) + __gen_placeholder_l, __gen_placeholder_m, __gen_placeholder_n = g() + f1(__gen_placeholder_l) + f1(__gen_placeholder_m) + f1(__gen_placeholder_n) def __gen_lambda_0(): g() - __gen_a, _, __gen_block_lambda_result_c = g() - __gen_x, _, _ = g() - f1(__gen_a) - f1(__gen_x) + __gen_placeholder_a, _, __gen_block_lambda_result_c = g() + __gen_placeholder_x, _, _ = g() + f1(__gen_placeholder_a) + f1(__gen_placeholder_x) return __gen_block_lambda_result_c f2(__gen_lambda_0) diff --git a/packages/safe-ds-lang/tests/resources/generation/python/statements/assignments/main/generated/tests/generator/assignment/main/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/statements/assignments/main/generated/tests/generator/assignment/main/gen_input.py.map index 5cea56bc5..8a85a7029 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/statements/assignments/main/generated/tests/generator/assignment/main/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/statements/assignments/main/generated/tests/generator/assignment/main/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdsdev"],"names":["testsegment","g","_","c","f1","a","x","testpipeline","l","m","n","f2"],"mappings":"AAAA;;;;;;AA2BA,IAAQA,WAAW;IACLC,CAAC;IACX,SAAOC,CAAC,EAAE,YAAMC,CAAC,GAAGF,CAAC;IACrB,gBAAQA,CAAC;IACTG,EAAE,CAACC,OAAC;IACJD,EAAE,CAACE,OAAC;IALc,OAAG;;;;AApBzB,IAASC,YAAY;IACPN,CAAC;IACX,SAAOC,CAAC,EAAEA,CAAC,GAAGD,CAAC;IACf,gBAAQA,CAAC;IACTG,EAAE,CAACC,OAAC;IACJD,EAAE,CAACE,OAAC;IACJ,SAAO,SAAO,UAAQL,CAAC;IACvBG,EAAE,CAACI,OAAC;IACJJ,EAAE,CAACK,OAAC;IACJL,EAAE,CAACM,OAAC;IAED;QACWT,CAAC;QACX,SAAOC,CAAC,EAAE,0BAAMC,CAAC,GAAGF,CAAC;QACrB,gBAAQA,CAAC;QACTG,EAAE,CAACC,OAAC;QACJD,EAAE,CAACE,OAAC;QALL,OAEW,0BAAMH,CAAC;IAFrBQ,EAAE,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdsdev"],"names":["testsegment","g","_","c","f1","a","x","testpipeline","l","m","n","f2"],"mappings":"AAAA;;;;;;AA2BA,IAAQA,WAAW;IACLC,CAAC;IACX,qBAAOC,CAAC,EAAE,YAAMC,CAAC,GAAGF,CAAC;IACrB,4BAAQA,CAAC;IACTG,EAAE,CAACC,mBAAC;IACJD,EAAE,CAACE,mBAAC;IALc,OAAG;;;;AApBzB,IAASC,YAAY;IACPN,CAAC;IACX,qBAAOC,CAAC,EAAEA,CAAC,GAAGD,CAAC;IACf,4BAAQA,CAAC;IACTG,EAAE,CAACC,mBAAC;IACJD,EAAE,CAACE,mBAAC;IACJ,qBAAO,qBAAO,sBAAQL,CAAC;IACvBG,EAAE,CAACI,mBAAC;IACJJ,EAAE,CAACK,mBAAC;IACJL,EAAE,CAACM,mBAAC;IAED;QACWT,CAAC;QACX,qBAAOC,CAAC,EAAE,0BAAMC,CAAC,GAAGF,CAAC;QACrB,4BAAQA,CAAC;QACTG,EAAE,CAACC,mBAAC;QACJD,EAAE,CAACE,mBAAC;QALL,OAEW,0BAAMH,CAAC;IAFrBQ,EAAE,CAAC","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/statements/assignments/rhs is class call/generated/tests/generator/assignment/rhsIsClassCall/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/statements/assignments/rhs is class call/generated/tests/generator/assignment/rhsIsClassCall/gen_input.py index deb3215ed..77473035d 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/statements/assignments/rhs is class call/generated/tests/generator/assignment/rhsIsClassCall/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/statements/assignments/rhs is class call/generated/tests/generator/assignment/rhsIsClassCall/gen_input.py @@ -5,4 +5,4 @@ # Pipelines -------------------------------------------------------------------- def testPipeline(): - __gen_a = MyClass1() + __gen_placeholder_a = MyClass1() diff --git a/packages/safe-ds-lang/tests/resources/generation/python/statements/assignments/rhs is class call/generated/tests/generator/assignment/rhsIsClassCall/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/statements/assignments/rhs is class call/generated/tests/generator/assignment/rhsIsClassCall/gen_input.py.map index a2b21e3b3..e8ac97963 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/statements/assignments/rhs is class call/generated/tests/generator/assignment/rhsIsClassCall/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/statements/assignments/rhs is class call/generated/tests/generator/assignment/rhsIsClassCall/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdsdev"],"names":["testpipeline","myclass1"],"mappings":"AAEA;;;;;;AAIA,IAASA,YAAY;IACjB,UAAQC,QAAQ","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdsdev"],"names":["testpipeline","myclass1"],"mappings":"AAEA;;;;;;AAIA,IAASA,YAAY;IACjB,sBAAQC,QAAQ","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/statements/assignments/rhs is enum variant call/generated/tests/generator/assignment/rhsIsEnumVariantCall/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/statements/assignments/rhs is enum variant call/generated/tests/generator/assignment/rhsIsEnumVariantCall/gen_input.py index e28b600d0..2b1032678 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/statements/assignments/rhs is enum variant call/generated/tests/generator/assignment/rhsIsEnumVariantCall/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/statements/assignments/rhs is enum variant call/generated/tests/generator/assignment/rhsIsEnumVariantCall/gen_input.py @@ -5,4 +5,4 @@ # Pipelines -------------------------------------------------------------------- def testPipeline(): - __gen_a = MyEnum1.MyEnumVariant1(1) + __gen_placeholder_a = MyEnum1.MyEnumVariant1(1) diff --git a/packages/safe-ds-lang/tests/resources/generation/python/statements/assignments/rhs is enum variant call/generated/tests/generator/assignment/rhsIsEnumVariantCall/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/statements/assignments/rhs is enum variant call/generated/tests/generator/assignment/rhsIsEnumVariantCall/gen_input.py.map index 323f7b1f0..ae4daeefb 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/statements/assignments/rhs is enum variant call/generated/tests/generator/assignment/rhsIsEnumVariantCall/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/statements/assignments/rhs is enum variant call/generated/tests/generator/assignment/rhsIsEnumVariantCall/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdsdev"],"names":["testpipeline","myenum1","myenumvariant1"],"mappings":"AAEA;;;;;;AAMA,IAASA,YAAY;IACjB,UAAQC,OAAO,CAACC,cAAc,CAAC,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdsdev"],"names":["testpipeline","myenum1","myenumvariant1"],"mappings":"AAEA;;;;;;AAMA,IAASA,YAAY;IACjB,sBAAQC,OAAO,CAACC,cAAc,CAAC,CAAC","file":"gen_input.py"} \ No newline at end of file