From f69d83619a851f714888e7eeb49f10b38c762c99 Mon Sep 17 00:00:00 2001 From: Lars Reimann Date: Wed, 3 Apr 2024 18:46:42 +0200 Subject: [PATCH] fix: generation of Python imports (#979) Closes #974 ### Summary of Changes Fix the generation of Python imports. It now also works without explicit imports or if stubs are declared in the same module. --- .../generation/safe-ds-python-generator.ts | 87 ++++++------------- .../parameterWithPythonName/gen_input.py | 4 + .../parameterWithPythonName/gen_input.py.map | 2 +- .../pipelineWithPythonName/gen_input.py | 4 + .../pipelineWithPythonName/gen_input.py.map | 2 +- .../segmentWithPythonName/gen_input.py | 4 + .../segmentWithPythonName/gen_input.py.map | 2 +- .../tests/generator/twoPipelines/gen_input.py | 4 + .../generator/twoPipelines/gen_input.py.map | 2 +- .../tests/generator/twoSegments/gen_input.py | 4 + .../generator/twoSegments/gen_input.py.map | 2 +- .../generator/blockLambdaResult/gen_input.py | 4 + .../blockLambdaResult/gen_input.py.map | 2 +- .../tests/generator/blockLambda/gen_input.py | 4 + .../generator/blockLambda/gen_input.py.map | 2 +- .../tests/generator/call/gen_input.py | 1 + .../tests/generator/call/gen_input.py.map | 2 +- .../tests/generator/constant/gen_input.py | 4 + .../tests/generator/constant/gen_input.py.map | 2 +- .../generator/enumVariantCall/gen_input.py | 4 + .../enumVariantCall/gen_input.py.map | 2 +- .../generator/expressionLambda/gen_input.py | 4 + .../expressionLambda/gen_input.py.map | 2 +- .../generator/indexedAccess/gen_input.py | 1 + .../generator/indexedAccess/gen_input.py.map | 2 +- .../generator/infixOperation/gen_input.py | 1 + .../generator/infixOperation/gen_input.py.map | 2 +- .../tests/generator/lists/gen_input.py | 4 + .../tests/generator/lists/gen_input.py.map | 2 +- .../tests/generator/literals/gen_input.py | 4 + .../tests/generator/literals/gen_input.py.map | 2 +- .../tests/generator/maps/gen_input.py | 4 + .../tests/generator/maps/gen_input.py.map | 2 +- .../tests/generator/memberAccess/gen_input.py | 1 + .../generator/memberAccess/gen_input.py.map | 2 +- .../parenthesizedExpression/gen_input.py | 4 + .../parenthesizedExpression/gen_input.py.map | 2 +- .../generator/prefixOperation/gen_input.py | 4 + .../prefixOperation/gen_input.py.map | 2 +- .../tests/generator/reference/gen_input.py | 4 + .../generator/reference/gen_input.py.map | 2 +- .../tests/generator/sideEffects/gen_input.py | 4 + .../generator/sideEffects/gen_input.py.map | 2 +- .../generator/templateString/gen_input.py | 4 + .../generator/templateString/gen_input.py.map | 2 +- .../imports/gen_context_same_package.py | 4 + .../imports/gen_context_same_package.py.map | 2 +- .../tests/generator/imports/gen_input.py | 1 + .../tests/generator/imports/gen_input.py.map | 2 +- .../tests/generator/safeds/gen_input.py | 8 ++ .../tests/generator/safeds/gen_input.py.map | 1 + .../tests/generator/safeds/gen_input_test.py | 4 + .../python/imports/safeds/input.sdstest | 7 ++ .../tests/generator/wildcard/gen_input.py | 1 + .../tests/generator/wildcard/gen_input.py.map | 2 +- .../gen_input.py | 4 + .../gen_input.py.map | 2 +- .../gen_input.py | 4 + .../gen_input.py.map | 2 +- .../partialImpureDependency/gen_input.py | 4 + .../partialImpureDependency/gen_input.py.map | 2 +- .../partialPureDependency/gen_input.py | 4 + .../partialPureDependency/gen_input.py.map | 2 +- .../partialRedundantImpurity/gen_input.py | 4 + .../partialRedundantImpurity/gen_input.py.map | 2 +- .../generated/special_module/gen_input.py | 4 + .../generated/special_module/gen_input.py.map | 2 +- .../expressions/calls/main/gen_input.py | 1 + .../expressions/calls/main/gen_input.py.map | 2 +- .../expressions/calls/ofClasses/gen_input.py | 1 + .../calls/ofClasses/gen_input.py.map | 2 +- .../gen_input.py | 1 + .../gen_input.py.map | 2 +- .../gen_context_same_package.py | 1 + .../gen_context_same_package.py.map | 2 +- .../importsWithRunnerIntegration/gen_input.py | 1 + .../gen_input.py.map | 2 +- .../gen_input.py | 1 + .../gen_input.py.map | 2 +- .../gen_input.py | 1 + .../gen_input.py.map | 2 +- .../generator/assignment/main/gen_input.py | 4 + .../assignment/main/gen_input.py.map | 2 +- .../assignment/rhsIsClassCall/gen_input.py | 4 + .../rhsIsClassCall/gen_input.py.map | 2 +- .../rhsIsEnumVariantCall/gen_input.py | 4 + .../rhsIsEnumVariantCall/gen_input.py.map | 2 +- .../expressionStatement/gen_input.py | 4 + .../expressionStatement/gen_input.py.map | 2 +- .../statementWithoutEffect/gen_input.py | 4 + .../statementWithoutEffect/gen_input.py.map | 2 +- 91 files changed, 222 insertions(+), 104 deletions(-) create mode 100644 packages/safe-ds-lang/tests/resources/generation/python/imports/safeds/generated/tests/generator/safeds/gen_input.py create mode 100644 packages/safe-ds-lang/tests/resources/generation/python/imports/safeds/generated/tests/generator/safeds/gen_input.py.map create mode 100644 packages/safe-ds-lang/tests/resources/generation/python/imports/safeds/generated/tests/generator/safeds/gen_input_test.py create mode 100644 packages/safe-ds-lang/tests/resources/generation/python/imports/safeds/input.sdstest diff --git a/packages/safe-ds-lang/src/language/generation/safe-ds-python-generator.ts b/packages/safe-ds-lang/src/language/generation/safe-ds-python-generator.ts index 2840591e9..e421a95c4 100644 --- a/packages/safe-ds-lang/src/language/generation/safe-ds-python-generator.ts +++ b/packages/safe-ds-lang/src/language/generation/safe-ds-python-generator.ts @@ -40,7 +40,6 @@ import { isSdsPipeline, isSdsPlaceholder, isSdsPrefixOperation, - isSdsQualifiedImport, isSdsReference, isSdsSegment, isSdsTemplateString, @@ -49,7 +48,6 @@ import { isSdsTemplateStringPart, isSdsTemplateStringStart, isSdsWildcard, - isSdsWildcardImport, isSdsYield, SdsArgument, SdsAssignee, @@ -64,17 +62,16 @@ import { SdsParameterList, SdsPipeline, SdsPlaceholder, + SdsReference, SdsSegment, SdsStatement, } from '../generated/ast.js'; -import { isInStubFile, isStubFile } from '../helpers/fileExtensions.js'; +import { isStubFile } from '../helpers/fileExtensions.js'; import { IdManager } from '../helpers/idManager.js'; import { getAbstractResults, getArguments, getAssignees, - getImportedDeclarations, - getImports, getModuleMembers, getParameters, getPlaceholderByName, @@ -905,11 +902,9 @@ export class SafeDsPythonGenerator { } } else if (isSdsReference(expression)) { const declaration = expression.target.ref!; - const referenceImport = - this.getExternalReferenceNeededImport(expression, declaration) || - this.getInternalReferenceNeededImport(expression, declaration); + const referenceImport = this.createImportDataForReference(expression); frame.addImport(referenceImport); - return traceToNode(expression)(referenceImport?.alias || this.getPythonNameOrDefault(declaration)); + return traceToNode(expression)(referenceImport?.alias ?? this.getPythonNameOrDefault(declaration)); } /* c8 ignore next 2 */ throw new Error(`Unknown expression type: ${expression.$type}`); @@ -1127,68 +1122,38 @@ export class SafeDsPythonGenerator { }${this.generateExpression(argument.value, frame)}`; } - private getExternalReferenceNeededImport( - expression: SdsExpression | undefined, - declaration: SdsDeclaration | undefined, - ): ImportData | undefined { - if (!expression || !declaration) { + private createImportDataForReference(reference: SdsReference): ImportData | undefined { + const target = reference.target.ref; + if (!target) { /* c8 ignore next 2 */ return undefined; } - // Root Node is always a module. - const currentModule = AstUtils.findRootNode(expression); - const targetModule = AstUtils.findRootNode(declaration); - for (const value of getImports(currentModule)) { - // Verify same package - if (value.package !== targetModule.name) { - continue; - } - if (isSdsQualifiedImport(value)) { - const importedDeclarations = getImportedDeclarations(value); - for (const importedDeclaration of importedDeclarations) { - if (declaration === importedDeclaration.declaration?.ref) { - if (importedDeclaration.alias !== undefined) { - return { - importPath: this.getPythonModuleOrDefault(targetModule), - declarationName: importedDeclaration.declaration?.ref?.name, - alias: importedDeclaration.alias.alias, - }; - } else { - return { - importPath: this.getPythonModuleOrDefault(targetModule), - declarationName: importedDeclaration.declaration?.ref?.name, - }; - } - } - } - } - if (isSdsWildcardImport(value)) { - return { - importPath: this.getPythonModuleOrDefault(targetModule), - declarationName: declaration.name, - }; + const sourceModule = AstUtils.findRootNode(reference); + const targetModule = AstUtils.findRootNode(target); + + // Compute import path + let importPath: string | undefined = undefined; + if (isSdsPipeline(target) || isSdsSegment(target)) { + if (sourceModule !== targetModule) { + importPath = `${this.getPythonModuleOrDefault(targetModule)}.${this.formatGeneratedFileName( + this.getModuleFileBaseName(targetModule), + )}`; } + } else if (isSdsModule(target.$container)) { + importPath = this.getPythonModuleOrDefault(targetModule); } - return undefined; - } - private getInternalReferenceNeededImport( - expression: SdsExpression, - declaration: SdsDeclaration, - ): ImportData | undefined { - // Root Node is always a module. - const currentModule = AstUtils.findRootNode(expression); - const targetModule = AstUtils.findRootNode(declaration); - if (currentModule !== targetModule && !isInStubFile(targetModule)) { + if (importPath) { + const refText = reference.target.$refText; return { - importPath: `${this.getPythonModuleOrDefault(targetModule)}.${this.formatGeneratedFileName( - this.getModuleFileBaseName(targetModule), - )}`, - declarationName: this.getPythonNameOrDefault(declaration), + importPath, + declarationName: this.getPythonNameOrDefault(target), + alias: refText === target.name ? undefined : refText, }; + } else { + return undefined; } - return undefined; } private getModuleFileBaseName(module: SdsModule): string { diff --git a/packages/safe-ds-lang/tests/resources/generation/python/declarations/parameter with python name/generated/tests/generator/parameterWithPythonName/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/declarations/parameter with python name/generated/tests/generator/parameterWithPythonName/gen_input.py index f48810d87..4e8ea608b 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/declarations/parameter with python name/generated/tests/generator/parameterWithPythonName/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/declarations/parameter with python name/generated/tests/generator/parameterWithPythonName/gen_input.py @@ -1,3 +1,7 @@ +# Imports ---------------------------------------------------------------------- + +from tests.generator.parameterWithPythonName import f1, f2 + # Segments --------------------------------------------------------------------- def test(param1, param_2, param_3=0): diff --git a/packages/safe-ds-lang/tests/resources/generation/python/declarations/parameter with python name/generated/tests/generator/parameterWithPythonName/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/declarations/parameter with python name/generated/tests/generator/parameterWithPythonName/gen_input.py.map index bbe73b1bf..4f5d6224b 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/declarations/parameter with python name/generated/tests/generator/parameterWithPythonName/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/declarations/parameter with python name/generated/tests/generator/parameterWithPythonName/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdstest"],"names":["test","param1","param2","param3","f1","a","b","c","f2"],"mappings":"AAAA;;AAKA,IAAQA,IAAI,CAACC,MAAM,EAA8BC,OAAM,EAA8BC,OAAM,CAAQ,CAAC;IAChGC,EAAE,CAAC,OAACC,CAAC,EAAOC,CAAC,EAAOC,CAAC,CAAQ,CAAC,EAAK,CAAC;IACjC,yBAACF,CAAC,EAAOC,CAAC,EAAOC,CAAC,CAAQ,CAAC;QAAE,IAAE;IAAlCC,EAAE,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["test","param1","param2","param3","f1","a","b","c","f2"],"mappings":"AAAA;;;;;;AAKA,IAAQA,IAAI,CAACC,MAAM,EAA8BC,OAAM,EAA8BC,OAAM,CAAQ,CAAC;IAChGC,EAAE,CAAC,OAACC,CAAC,EAAOC,CAAC,EAAOC,CAAC,CAAQ,CAAC,EAAK,CAAC;IACjC,yBAACF,CAAC,EAAOC,CAAC,EAAOC,CAAC,CAAQ,CAAC;QAAE,IAAE;IAAlCC,EAAE,CAAC","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/declarations/pipeline with python name/generated/tests/generator/pipelineWithPythonName/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/declarations/pipeline with python name/generated/tests/generator/pipelineWithPythonName/gen_input.py index 209629e85..986dc9984 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/declarations/pipeline with python name/generated/tests/generator/pipelineWithPythonName/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/declarations/pipeline with python name/generated/tests/generator/pipelineWithPythonName/gen_input.py @@ -1,3 +1,7 @@ +# Imports ---------------------------------------------------------------------- + +from tests.generator.pipelineWithPythonName import f + # Pipelines -------------------------------------------------------------------- def test_pipeline(): diff --git a/packages/safe-ds-lang/tests/resources/generation/python/declarations/pipeline with python name/generated/tests/generator/pipelineWithPythonName/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/declarations/pipeline with python name/generated/tests/generator/pipelineWithPythonName/gen_input.py.map index 236d7c4c5..c64c0012c 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/declarations/pipeline with python name/generated/tests/generator/pipelineWithPythonName/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/declarations/pipeline with python name/generated/tests/generator/pipelineWithPythonName/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdstest"],"names":["testpipeline","f"],"mappings":"AAAA;;AAKA,IAASA,aAAY;IACjBC,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["testpipeline","f"],"mappings":"AAAA;;;;;;AAKA,IAASA,aAAY;IACjBC,CAAC","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/declarations/segment with python name/generated/tests/generator/segmentWithPythonName/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/declarations/segment with python name/generated/tests/generator/segmentWithPythonName/gen_input.py index bd35ce794..ba35bf887 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/declarations/segment with python name/generated/tests/generator/segmentWithPythonName/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/declarations/segment with python name/generated/tests/generator/segmentWithPythonName/gen_input.py @@ -1,3 +1,7 @@ +# Imports ---------------------------------------------------------------------- + +from tests.generator.segmentWithPythonName import f + # Segments --------------------------------------------------------------------- def test_segment(): diff --git a/packages/safe-ds-lang/tests/resources/generation/python/declarations/segment with python name/generated/tests/generator/segmentWithPythonName/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/declarations/segment with python name/generated/tests/generator/segmentWithPythonName/gen_input.py.map index 2ab4bca4c..d953f0b16 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/declarations/segment with python name/generated/tests/generator/segmentWithPythonName/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/declarations/segment with python name/generated/tests/generator/segmentWithPythonName/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdstest"],"names":["testsegment","f"],"mappings":"AAAA;;AAKA,IAAQA,YAAW;IACfC,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["testsegment","f"],"mappings":"AAAA;;;;;;AAKA,IAAQA,YAAW;IACfC,CAAC","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/declarations/two pipelines/generated/tests/generator/twoPipelines/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/declarations/two pipelines/generated/tests/generator/twoPipelines/gen_input.py index a8efe6ddd..938f5fafa 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/declarations/two pipelines/generated/tests/generator/twoPipelines/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/declarations/two pipelines/generated/tests/generator/twoPipelines/gen_input.py @@ -1,3 +1,7 @@ +# Imports ---------------------------------------------------------------------- + +from tests.generator.twoPipelines import f + # Pipelines -------------------------------------------------------------------- def test1(): diff --git a/packages/safe-ds-lang/tests/resources/generation/python/declarations/two pipelines/generated/tests/generator/twoPipelines/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/declarations/two pipelines/generated/tests/generator/twoPipelines/gen_input.py.map index 8578f8a7a..70d825724 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/declarations/two pipelines/generated/tests/generator/twoPipelines/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/declarations/two pipelines/generated/tests/generator/twoPipelines/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdstest"],"names":["test1","f","test2"],"mappings":"AAAA;;AAIA,IAASA,KAAK;IACVC,CAAC;;AAGL,IAASC,KAAK;IACVD,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["test1","f","test2"],"mappings":"AAAA;;;;;;AAIA,IAASA,KAAK;IACVC,CAAC;;AAGL,IAASC,KAAK;IACVD,CAAC","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/declarations/two segments/generated/tests/generator/twoSegments/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/declarations/two segments/generated/tests/generator/twoSegments/gen_input.py index fa5aeb3fd..c51936ac2 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/declarations/two segments/generated/tests/generator/twoSegments/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/declarations/two segments/generated/tests/generator/twoSegments/gen_input.py @@ -1,3 +1,7 @@ +# Imports ---------------------------------------------------------------------- + +from tests.generator.twoSegments import f + # Segments --------------------------------------------------------------------- def test1(a, b=0): diff --git a/packages/safe-ds-lang/tests/resources/generation/python/declarations/two segments/generated/tests/generator/twoSegments/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/declarations/two segments/generated/tests/generator/twoSegments/gen_input.py.map index a7053ee92..8797db250 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/declarations/two segments/generated/tests/generator/twoSegments/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/declarations/two segments/generated/tests/generator/twoSegments/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdstest"],"names":["test1","a","b","f","test2","c"],"mappings":"AAAA;;AAIA,IAAQA,KAAK,CAACC,CAAC,EAAOC,CAAC,CAAQ,CAAC;IAC5BC,CAAC;;AAGL,IAAQC,KAAK,CAACH,CAAC,EAAOI,CAAC;IACnBF,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["test1","a","b","f","test2","c"],"mappings":"AAAA;;;;;;AAIA,IAAQA,KAAK,CAACC,CAAC,EAAOC,CAAC,CAAQ,CAAC;IAC5BC,CAAC;;AAGL,IAAQC,KAAK,CAACH,CAAC,EAAOI,CAAC;IACnBF,CAAC","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/block lambda result/generated/tests/generator/blockLambdaResult/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/expressions/block lambda result/generated/tests/generator/blockLambdaResult/gen_input.py index ebd90a46b..0edb77256 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/block lambda result/generated/tests/generator/blockLambdaResult/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/block lambda result/generated/tests/generator/blockLambdaResult/gen_input.py @@ -1,3 +1,7 @@ +# Imports ---------------------------------------------------------------------- + +from tests.generator.blockLambdaResult import g, h + # Segments --------------------------------------------------------------------- def f1(l): diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/block lambda result/generated/tests/generator/blockLambdaResult/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/expressions/block lambda result/generated/tests/generator/blockLambdaResult/gen_input.py.map index 12c2af08e..034ddcefb 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/block lambda result/generated/tests/generator/blockLambdaResult/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/block lambda result/generated/tests/generator/blockLambdaResult/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdstest"],"names":["f1","l","h","f2","e1","d1","test","a","b","d","g","e"],"mappings":"AAAA;;AAMA,IAAQA,EAAE,CAACC,CAAC;IACRC,CAAC,CAACD,CAAC,CAAC,CAAC,EAAE,CAAC;;AAGZ,IAAQE,EAAE,CAACF,CAAC;IACRC,CAAC,CAACD,CAAC,CAAC,CAAC,EAAE,CAAC,EAAEG,CAAE;IACZF,CAAC,CAACD,CAAC,CAAC,CAAC,EAAE,CAAC,EAAEI,CAAE;;;;AAGhB,IAASC,IAAI;IAEN,yBAACC,CAAC,EAAOC,CAAC;QACT,0BAAMC,CAAC,GAAGC,CAAC;QADZ,OACC,0BAAMD,CAAC;IADXT,EAAE,CAAC;IAGA,yBAACO,CAAC,EAAOC,CAAC;QACT,0BAAMC,CAAC,GAAGC,CAAC;QACX,0BAAMC,CAAC,GAAGD,CAAC;QAFZ,OACC,0BAAMD,CAAC,EACP,0BAAME,CAAC;IAFXR,EAAE,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["f1","l","h","f2","e1","d1","test","a","b","d","g","e"],"mappings":"AAAA;;;;;;AAMA,IAAQA,EAAE,CAACC,CAAC;IACRC,CAAC,CAACD,CAAC,CAAC,CAAC,EAAE,CAAC;;AAGZ,IAAQE,EAAE,CAACF,CAAC;IACRC,CAAC,CAACD,CAAC,CAAC,CAAC,EAAE,CAAC,EAAEG,CAAE;IACZF,CAAC,CAACD,CAAC,CAAC,CAAC,EAAE,CAAC,EAAEI,CAAE;;;;AAGhB,IAASC,IAAI;IAEN,yBAACC,CAAC,EAAOC,CAAC;QACT,0BAAMC,CAAC,GAAGC,CAAC;QADZ,OACC,0BAAMD,CAAC;IADXT,EAAE,CAAC;IAGA,yBAACO,CAAC,EAAOC,CAAC;QACT,0BAAMC,CAAC,GAAGC,CAAC;QACX,0BAAMC,CAAC,GAAGD,CAAC;QAFZ,OACC,0BAAMD,CAAC,EACP,0BAAME,CAAC;IAFXR,EAAE,CAAC","file":"gen_input.py"} \ No newline at end of file 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 9036f3ced..6bd18c42e 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 @@ -1,3 +1,7 @@ +# Imports ---------------------------------------------------------------------- + +from tests.generator.blockLambda import f1, f2, f3, g, g2 + # Pipelines -------------------------------------------------------------------- def test(): 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 d01404036..90a70453e 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.sdstest"],"names":["test","a","b","d","g","f1","f2","g2","f3","c"],"mappings":"AAAA;;AASA,IAASA,IAAI;IACN,yBAACC,CAAC,EAAOC,CAAC,CAAQ,CAAC;QAClB,0BAAMC,CAAC,GAAGC,CAAC;QADZ,OACC,0BAAMD,CAAC;IADXE,EAAE,CAAC;IAGA,yBAACJ,CAAC,EAAOC,CAAC;QACT,0BAAMC,CAAC,GAAGC,CAAC;QADZ,OACC,0BAAMD,CAAC;IADXE,EAAE,CAAC;IAGA;QAAG,IAAE;IAARC,EAAE,CAAC;IACG,yBAACL,CAAC,EAAOC,CAAC,CAAQ,CAAC;QACrB,0BAAMC,CAAC,GAAGC,CAAC;QADT,OACF,0BAAMD,CAAC;IADXI,EAAE,CAACC,EAAE,CAAC;IAGK,yBAACP,CAAC,EAAOC,CAAC,CAAQ,CAAC;QAC1B,0BAAMC,CAAC,GAAGC,CAAC;QADJ,OACP,0BAAMD,CAAC;IADX,IAAQK,EAAE,CAAC;IAGXD,EAAE,CAACE,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["test","a","b","d","g","f1","f2","g2","f3","c"],"mappings":"AAAA;;;;;;AASA,IAASA,IAAI;IACN,yBAACC,CAAC,EAAOC,CAAC,CAAQ,CAAC;QAClB,0BAAMC,CAAC,GAAGC,CAAC;QADZ,OACC,0BAAMD,CAAC;IADXE,EAAE,CAAC;IAGA,yBAACJ,CAAC,EAAOC,CAAC;QACT,0BAAMC,CAAC,GAAGC,CAAC;QADZ,OACC,0BAAMD,CAAC;IADXE,EAAE,CAAC;IAGA;QAAG,IAAE;IAARC,EAAE,CAAC;IACG,yBAACL,CAAC,EAAOC,CAAC,CAAQ,CAAC;QACrB,0BAAMC,CAAC,GAAGC,CAAC;QADT,OACF,0BAAMD,CAAC;IADXI,EAAE,CAACC,EAAE,CAAC;IAGK,yBAACP,CAAC,EAAOC,CAAC,CAAQ,CAAC;QAC1B,0BAAMC,CAAC,GAAGC,CAAC;QADJ,OACP,0BAAMD,CAAC;IADX,IAAQK,EAAE,CAAC;IAGXD,EAAE,CAACE,CAAC","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/call/generated/tests/generator/call/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/expressions/call/generated/tests/generator/call/gen_input.py index a1a0b2bdd..55f239984 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/call/generated/tests/generator/call/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/call/generated/tests/generator/call/gen_input.py @@ -1,5 +1,6 @@ # Imports ---------------------------------------------------------------------- +from tests.generator.call import f, g, h, i, j, k from typing import Any, Callable, TypeVar # Type variables --------------------------------------------------------------- diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/call/generated/tests/generator/call/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/expressions/call/generated/tests/generator/call/gen_input.py.map index dbcf2fedf..405db0122 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/call/generated/tests/generator/call/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/call/generated/tests/generator/call/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdstest"],"names":["test","f","g","param2","h","i","j","k"],"mappings":"AAAA;;;;;;;;;;;;;;;AA0BA,IAASA,IAAI;IACTC,CAAC,CAAEC,CAAC,CAAC,CAAC,EArBNC,MAAM,CAqBE,CAAC;IACTF,CAAC,CAAEC,CAAC,CAAsB,CAAC,EAtB3BC,MAAM,CAsBQ,CAAC;IACfF,CAAC,CAAEG,CAAC,CAAC,CAAC,EAlBiBD,OAAM,CAkBrB,CAAC;IACTF,CAAC,CAAEG,CAAC,CAAsB,CAAC,EAnBJD,OAAM,CAmBf,CAAC;IACfF,CAAC,CAAEG,CAAC,CAAU,CAAC;IACb,KAAK;IACL,KAAK,GAAE,GAAG;IACZ,EAAQ,GAAG,EAAT,IAAI;IAEL,oBAAC,CAAFH,CAAC,UAADA,CAAC,CAAGC,CAAC,CAAC,CAAC,EA9BPC,MAAM,CA8BG,CAAC;IACT,oBAAC,CAAFF,CAAC,UAADA,CAAC,CAAGC,CAAC,CAAsB,CAAC,EA/B5BC,MAAM,CA+BS,CAAC;IACf,oBAAC,CAAFF,CAAC,UAADA,CAAC,CAAGG,CAAC,CAAC,CAAC,EA3BgBD,OAAM,CA2BpB,CAAC;IACT,oBAAC,CAAFF,CAAC,UAADA,CAAC,CAAGG,CAAC,CAAsB,CAAC,EA5BLD,OAAM,CA4Bd,CAAC;IACf,oBAAC,CAAFF,CAAC,UAADA,CAAC,CAAGG,CAAC,CAAU,CAAC;IACf,oBAAC,CAAFC,CAAC,UAAE,KAAK;IACP,oBAAC,CAAFC,CAAC,UAAE,KAAK,GAAE,GAAG;IACZ,oBAAC,CAAFC,CAAC,UAAD,EAAS,GAAG,EAAT,IAAI","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["test","f","g","param2","h","i","j","k"],"mappings":"AAAA;;;;;;;;;;;;;;;;AA0BA,IAASA,IAAI;IACTC,CAAC,CAAEC,CAAC,CAAC,CAAC,EArBNC,MAAM,CAqBE,CAAC;IACTF,CAAC,CAAEC,CAAC,CAAsB,CAAC,EAtB3BC,MAAM,CAsBQ,CAAC;IACfF,CAAC,CAAEG,CAAC,CAAC,CAAC,EAlBiBD,OAAM,CAkBrB,CAAC;IACTF,CAAC,CAAEG,CAAC,CAAsB,CAAC,EAnBJD,OAAM,CAmBf,CAAC;IACfF,CAAC,CAAEG,CAAC,CAAU,CAAC;IACb,KAAK;IACL,KAAK,GAAE,GAAG;IACZ,EAAQ,GAAG,EAAT,IAAI;IAEL,oBAAC,CAAFH,CAAC,UAADA,CAAC,CAAGC,CAAC,CAAC,CAAC,EA9BPC,MAAM,CA8BG,CAAC;IACT,oBAAC,CAAFF,CAAC,UAADA,CAAC,CAAGC,CAAC,CAAsB,CAAC,EA/B5BC,MAAM,CA+BS,CAAC;IACf,oBAAC,CAAFF,CAAC,UAADA,CAAC,CAAGG,CAAC,CAAC,CAAC,EA3BgBD,OAAM,CA2BpB,CAAC;IACT,oBAAC,CAAFF,CAAC,UAADA,CAAC,CAAGG,CAAC,CAAsB,CAAC,EA5BLD,OAAM,CA4Bd,CAAC;IACf,oBAAC,CAAFF,CAAC,UAADA,CAAC,CAAGG,CAAC,CAAU,CAAC;IACf,oBAAC,CAAFC,CAAC,UAAE,KAAK;IACP,oBAAC,CAAFC,CAAC,UAAE,KAAK,GAAE,GAAG;IACZ,oBAAC,CAAFC,CAAC,UAAD,EAAS,GAAG,EAAT,IAAI","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/constant/generated/tests/generator/constant/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/expressions/constant/generated/tests/generator/constant/gen_input.py index 6f2601b01..c9d5793ea 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/constant/generated/tests/generator/constant/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/constant/generated/tests/generator/constant/gen_input.py @@ -1,3 +1,7 @@ +# Imports ---------------------------------------------------------------------- + +from tests.generator.constant import f + # Pipelines -------------------------------------------------------------------- def test(): diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/constant/generated/tests/generator/constant/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/expressions/constant/generated/tests/generator/constant/gen_input.py.map index 5d4ee0926..78d2d5111 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/constant/generated/tests/generator/constant/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/constant/generated/tests/generator/constant/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdstest"],"names":["test","f","null"],"mappings":"AAAA;;AAIA,IAASA,IAAI;IACTC,CAAC,CAAC;IACFA,CAAC,CAAC;IACFA,CAAC,CAAC;IACFA,CAAC,CAACC,IAAI;IACND,CAAC,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["test","f","null"],"mappings":"AAAA;;;;;;AAIA,IAASA,IAAI;IACTC,CAAC,CAAC;IACFA,CAAC,CAAC;IACFA,CAAC,CAAC;IACFA,CAAC,CAACC,IAAI;IACND,CAAC,CAAC","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/enum variant call/generated/tests/generator/enumVariantCall/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/expressions/enum variant call/generated/tests/generator/enumVariantCall/gen_input.py index 60d9dfc46..31ff56649 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/enum variant call/generated/tests/generator/enumVariantCall/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/enum variant call/generated/tests/generator/enumVariantCall/gen_input.py @@ -1,3 +1,7 @@ +# Imports ---------------------------------------------------------------------- + +from tests.generator.enumVariantCall import f, MyEnum + # Pipelines -------------------------------------------------------------------- def test(): diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/enum variant call/generated/tests/generator/enumVariantCall/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/expressions/enum variant call/generated/tests/generator/enumVariantCall/gen_input.py.map index f814e4aa3..4f57e6f19 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/enum variant call/generated/tests/generator/enumVariantCall/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/enum variant call/generated/tests/generator/enumVariantCall/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdstest"],"names":["test","f","myenum","variant1","variant2"],"mappings":"AAAA;;AASA,IAASA,IAAI;IACVC,CAAC,CAACC,MAAM,CAACC,QAAQ;IACjBF,CAAC,CAACC,MAAM,CAAEC,QAAQ;IAClBF,CAAC,CAACC,MAAM,CAACC,QAAQ;IACjBF,CAAC,CAACC,MAAM,CAAEC,QAAQ;IAClBF,CAAC,CAACC,MAAM,CAACE,QAAQ,CAAC,CAAC;IACnBH,CAAC,CAACC,MAAM,CAAEE,QAAQ,CAAC,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["test","f","myenum","variant1","variant2"],"mappings":"AAAA;;;;;;AASA,IAASA,IAAI;IACVC,CAAC,CAACC,MAAM,CAACC,QAAQ;IACjBF,CAAC,CAACC,MAAM,CAAEC,QAAQ;IAClBF,CAAC,CAACC,MAAM,CAACC,QAAQ;IACjBF,CAAC,CAACC,MAAM,CAAEC,QAAQ;IAClBF,CAAC,CAACC,MAAM,CAACE,QAAQ,CAAC,CAAC;IACnBH,CAAC,CAACC,MAAM,CAAEE,QAAQ,CAAC,CAAC","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/expression lambda/generated/tests/generator/expressionLambda/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/expressions/expression lambda/generated/tests/generator/expressionLambda/gen_input.py index ad30c61c5..32afd0e36 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/expression lambda/generated/tests/generator/expressionLambda/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/expression lambda/generated/tests/generator/expressionLambda/gen_input.py @@ -1,3 +1,7 @@ +# Imports ---------------------------------------------------------------------- + +from tests.generator.expressionLambda import f + # Pipelines -------------------------------------------------------------------- def test(): diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/expression lambda/generated/tests/generator/expressionLambda/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/expressions/expression lambda/generated/tests/generator/expressionLambda/gen_input.py.map index 38b178bd0..a02c949dc 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/expression lambda/generated/tests/generator/expressionLambda/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/expression lambda/generated/tests/generator/expressionLambda/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdstest"],"names":["test","f","a","b"],"mappings":"AAAA;;AAIA,IAASA,IAAI;IACTC,CAAC,CAAC,OAACC,CAAC,EAAEC,CAAC,CAAG,CAAC,EAAK,CAAC;IACjBF,CAAC,CAAC,OAACC,CAAC,EAAEC,CAAC,EAAK,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["test","f","a","b"],"mappings":"AAAA;;;;;;AAIA,IAASA,IAAI;IACTC,CAAC,CAAC,OAACC,CAAC,EAAEC,CAAC,CAAG,CAAC,EAAK,CAAC;IACjBF,CAAC,CAAC,OAACC,CAAC,EAAEC,CAAC,EAAK,CAAC","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/indexed access/generated/tests/generator/indexedAccess/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/expressions/indexed access/generated/tests/generator/indexedAccess/gen_input.py index 5f45abe28..4f17c5112 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/indexed access/generated/tests/generator/indexedAccess/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/indexed access/generated/tests/generator/indexedAccess/gen_input.py @@ -1,5 +1,6 @@ # Imports ---------------------------------------------------------------------- +from tests.generator.indexedAccess import f from typing import Any, TypeVar # Type variables --------------------------------------------------------------- diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/indexed access/generated/tests/generator/indexedAccess/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/expressions/indexed access/generated/tests/generator/indexedAccess/gen_input.py.map index 3b1c01f2e..3d0633a9b 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/indexed access/generated/tests/generator/indexedAccess/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/indexed access/generated/tests/generator/indexedAccess/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdstest"],"names":["test","param1","param2","f"],"mappings":"AAAA;;;;;;;;;;;;;;;AAIA,IAAQA,IAAI,CAACC,MAAM,EAAaC,MAAM;IAClCC,CAAC,CAACF,MAAM,CAAC,CAAC;IACVE,CAAC,CAAO,8BAAC,CAAPD,MAAM,EAAE,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["test","param1","param2","f"],"mappings":"AAAA;;;;;;;;;;;;;;;;AAIA,IAAQA,IAAI,CAACC,MAAM,EAAaC,MAAM;IAClCC,CAAC,CAACF,MAAM,CAAC,CAAC;IACVE,CAAC,CAAO,8BAAC,CAAPD,MAAM,EAAE,CAAC","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/infix operation/generated/tests/generator/infixOperation/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/expressions/infix operation/generated/tests/generator/infixOperation/gen_input.py index fab49649f..9efeea59a 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/infix operation/generated/tests/generator/infixOperation/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/infix operation/generated/tests/generator/infixOperation/gen_input.py @@ -1,5 +1,6 @@ # Imports ---------------------------------------------------------------------- +from tests.generator.infixOperation import f, g, h, i from typing import TypeVar # Type variables --------------------------------------------------------------- diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/infix operation/generated/tests/generator/infixOperation/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/expressions/infix operation/generated/tests/generator/infixOperation/gen_input.py.map index 9f8b78db6..769a1696d 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/infix operation/generated/tests/generator/infixOperation/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/infix operation/generated/tests/generator/infixOperation/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdstest"],"names":["test","f","or","g","and","h","i"],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;AAUA,IAASA,IAAI;IACTC,CAAC,CAAKC,cAAE,CAANC,CAAC,IAAMA,CAAC;IACVF,CAAC,CAAKG,eAAG,CAAPD,CAAC,IAAOA,CAAC;IAEXF,CAAC,CAAC,CAAAI,CAAC,IAAG,EAAE,EAACA,CAAC;IACVJ,CAAC,CAAC,CAAAI,CAAC,IAAG,EAAE,EAACA,CAAC;IACVJ,CAAC,CAAC,CAAAI,CAAC,IAAG,EAAG,EAACA,CAAC;IACXJ,CAAC,CAAC,CAAAI,CAAC,IAAG,QAAIA,CAAC;IAEXJ,CAAC,CAAC,CAAAI,CAAC,IAAG,CAAC,EAACA,CAAC;IACTJ,CAAC,CAAC,CAAAI,CAAC,IAAG,EAAE,EAACA,CAAC;IACVJ,CAAC,CAAC,CAAAI,CAAC,IAAG,EAAE,EAACA,CAAC;IACVJ,CAAC,CAAC,CAAAI,CAAC,IAAG,CAAC,EAACA,CAAC;IAETJ,CAAC,CAAC,CAAAI,CAAC,IAAG,CAAC,EAACA,CAAC;IACTJ,CAAC,CAAC,CAAAI,CAAC,IAAG,CAAC,EAACA,CAAC;IACTJ,CAAC,CAAC,CAAAI,CAAC,IAAG,CAAC,EAACA,CAAC;IACTJ,CAAC,CAAC,CAAAI,CAAC,IAAG,CAAC,EAACA,CAAC;IAETJ,CAAC,CAAK,iBAAE,CAANK,CAAC,IAAMA,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["test","f","or","g","and","h","i"],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;AAUA,IAASA,IAAI;IACTC,CAAC,CAAKC,cAAE,CAANC,CAAC,IAAMA,CAAC;IACVF,CAAC,CAAKG,eAAG,CAAPD,CAAC,IAAOA,CAAC;IAEXF,CAAC,CAAC,CAAAI,CAAC,IAAG,EAAE,EAACA,CAAC;IACVJ,CAAC,CAAC,CAAAI,CAAC,IAAG,EAAE,EAACA,CAAC;IACVJ,CAAC,CAAC,CAAAI,CAAC,IAAG,EAAG,EAACA,CAAC;IACXJ,CAAC,CAAC,CAAAI,CAAC,IAAG,QAAIA,CAAC;IAEXJ,CAAC,CAAC,CAAAI,CAAC,IAAG,CAAC,EAACA,CAAC;IACTJ,CAAC,CAAC,CAAAI,CAAC,IAAG,EAAE,EAACA,CAAC;IACVJ,CAAC,CAAC,CAAAI,CAAC,IAAG,EAAE,EAACA,CAAC;IACVJ,CAAC,CAAC,CAAAI,CAAC,IAAG,CAAC,EAACA,CAAC;IAETJ,CAAC,CAAC,CAAAI,CAAC,IAAG,CAAC,EAACA,CAAC;IACTJ,CAAC,CAAC,CAAAI,CAAC,IAAG,CAAC,EAACA,CAAC;IACTJ,CAAC,CAAC,CAAAI,CAAC,IAAG,CAAC,EAACA,CAAC;IACTJ,CAAC,CAAC,CAAAI,CAAC,IAAG,CAAC,EAACA,CAAC;IAETJ,CAAC,CAAK,iBAAE,CAANK,CAAC,IAAMA,CAAC","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/lists/generated/tests/generator/lists/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/expressions/lists/generated/tests/generator/lists/gen_input.py index d5faf3b21..15be6053b 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/lists/generated/tests/generator/lists/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/lists/generated/tests/generator/lists/gen_input.py @@ -1,3 +1,7 @@ +# Imports ---------------------------------------------------------------------- + +from tests.generator.lists import f, h + # Pipelines -------------------------------------------------------------------- def test(): diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/lists/generated/tests/generator/lists/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/expressions/lists/generated/tests/generator/lists/gen_input.py.map index e143f4293..a18a07f49 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/lists/generated/tests/generator/lists/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/lists/generated/tests/generator/lists/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdstest"],"names":["test","f","h"],"mappings":"AAAA;;AAMA,IAASA,IAAI;IACTC,CAAC,CAAC,EAAE;IACJA,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;IACVA,CAAC,CAAC,CAAC,CAAC,EAAEC,CAAC,IAAI,CAAAA,CAAC,IAAG,CAAC,EAAC,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["test","f","h"],"mappings":"AAAA;;;;;;AAMA,IAASA,IAAI;IACTC,CAAC,CAAC,EAAE;IACJA,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;IACVA,CAAC,CAAC,CAAC,CAAC,EAAEC,CAAC,IAAI,CAAAA,CAAC,IAAG,CAAC,EAAC,CAAC","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/literals/generated/tests/generator/literals/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/expressions/literals/generated/tests/generator/literals/gen_input.py index 71832fd6d..cae006660 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/literals/generated/tests/generator/literals/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/literals/generated/tests/generator/literals/gen_input.py @@ -1,3 +1,7 @@ +# Imports ---------------------------------------------------------------------- + +from tests.generator.literals import f + # Pipelines -------------------------------------------------------------------- def test(): diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/literals/generated/tests/generator/literals/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/expressions/literals/generated/tests/generator/literals/gen_input.py.map index 2be08079a..5143651c0 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/literals/generated/tests/generator/literals/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/literals/generated/tests/generator/literals/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdstest"],"names":["test","f","true","false","null"],"mappings":"AAAA;;AAIA,IAASA,IAAI;IACTC,CAAC,CAACC,IAAI;IACND,CAAC,CAACE,KAAK;IACPF,CAAC,CAAC,GAAG;IACLA,CAAC,CAAC,CAAC;IACHA,CAAC,CAACG,IAAI;IACNH,CAAC,CAAC,EAAE;IACJA,CAAC,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["test","f","true","false","null"],"mappings":"AAAA;;;;;;AAIA,IAASA,IAAI;IACTC,CAAC,CAACC,IAAI;IACND,CAAC,CAACE,KAAK;IACPF,CAAC,CAAC,GAAG;IACLA,CAAC,CAAC,CAAC;IACHA,CAAC,CAACG,IAAI;IACNH,CAAC,CAAC,EAAE;IACJA,CAAC,CAAC","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/maps/generated/tests/generator/maps/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/expressions/maps/generated/tests/generator/maps/gen_input.py index 45bfa9413..9003b6498 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/maps/generated/tests/generator/maps/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/maps/generated/tests/generator/maps/gen_input.py @@ -1,3 +1,7 @@ +# Imports ---------------------------------------------------------------------- + +from tests.generator.maps import g1, g2, g3, h1, h2 + # Pipelines -------------------------------------------------------------------- def test(): diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/maps/generated/tests/generator/maps/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/expressions/maps/generated/tests/generator/maps/gen_input.py.map index 9b985b867..f5d96a671 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/maps/generated/tests/generator/maps/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/maps/generated/tests/generator/maps/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdstest"],"names":["test","g1","g2","h2","h1","g3"],"mappings":"AAAA;;AAYA,IAASA,IAAI;IACTC,EAAE,CAAC,EAAE;IACLC,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG;IACtBA,EAAE,CAAC,CAACC,EAAE,IAAI,IAAI,EAAE,GAAG,EAAEC,EAAE;IACvBC,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG;IACtBA,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,EAAED,EAAE,IAAID,EAAE","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["test","g1","g2","h2","h1","g3"],"mappings":"AAAA;;;;;;AAYA,IAASA,IAAI;IACTC,EAAE,CAAC,EAAE;IACLC,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG;IACtBA,EAAE,CAAC,CAACC,EAAE,IAAI,IAAI,EAAE,GAAG,EAAEC,EAAE;IACvBC,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG;IACtBA,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,EAAED,EAAE,IAAID,EAAE","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/member access/generated/tests/generator/memberAccess/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/expressions/member access/generated/tests/generator/memberAccess/gen_input.py index 9d5e0b28f..020e2e539 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/member access/generated/tests/generator/memberAccess/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/member access/generated/tests/generator/memberAccess/gen_input.py @@ -1,5 +1,6 @@ # Imports ---------------------------------------------------------------------- +from tests.generator.memberAccess import C, f, factory, g, h from typing import Any, TypeVar # Type variables --------------------------------------------------------------- diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/member access/generated/tests/generator/memberAccess/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/expressions/member access/generated/tests/generator/memberAccess/gen_input.py.map index fdbfddeef..629d62b0e 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/member access/generated/tests/generator/memberAccess/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/member access/generated/tests/generator/memberAccess/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdstest"],"names":["test","f","g","h","result1","result2","c","a","b","factory","j","k","from_csv_file"],"mappings":"AAAA;;;;;;;;;;;;;;;AA4BA,IAASA,IAAI;IACTC,CAAC,CAACC,CAAC;IACHD,CAAC,CAACE,CAAC,GAAGC,CAAO;IACbH,CAAC,CAACE,CAAC,GAAGE,CAAO;IACbJ,CAAC,CAACK,CAAC,GAAGC,CAAC;IACPN,CAAC,CAACK,CAAC,GAAGE,CAAC;IACPP,CAAC,CAAU,6BAAC,CAAVQ,OAAO,KAAIF,CAAC;IACdN,CAAC,CAAU,6BAAC,CAAVQ,OAAO,KAAID,CAAC;IACdP,CAAC,CAAO,CAAC,GAAPK,CAAC;IACHL,CAAC,CAACK,CAAC,GAAGI,CAAC,CAAC,GAAG;IACXT,CAAC,CAACK,CAAC,GAAGK,EAAC,CAAC,KAAK;IACbV,CAAC,CAACK,CAAC,CAACM,aAAa,CAAC,SAAS","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["test","f","g","h","result1","result2","c","a","b","factory","j","k","from_csv_file"],"mappings":"AAAA;;;;;;;;;;;;;;;;AA4BA,IAASA,IAAI;IACTC,CAAC,CAACC,CAAC;IACHD,CAAC,CAACE,CAAC,GAAGC,CAAO;IACbH,CAAC,CAACE,CAAC,GAAGE,CAAO;IACbJ,CAAC,CAACK,CAAC,GAAGC,CAAC;IACPN,CAAC,CAACK,CAAC,GAAGE,CAAC;IACPP,CAAC,CAAU,6BAAC,CAAVQ,OAAO,KAAIF,CAAC;IACdN,CAAC,CAAU,6BAAC,CAAVQ,OAAO,KAAID,CAAC;IACdP,CAAC,CAAO,CAAC,GAAPK,CAAC;IACHL,CAAC,CAACK,CAAC,GAAGI,CAAC,CAAC,GAAG;IACXT,CAAC,CAACK,CAAC,GAAGK,EAAC,CAAC,KAAK;IACbV,CAAC,CAACK,CAAC,CAACM,aAAa,CAAC,SAAS","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/parenthesized expression/generated/tests/generator/parenthesizedExpression/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/expressions/parenthesized expression/generated/tests/generator/parenthesizedExpression/gen_input.py index 00162f3cf..2dbca9585 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/parenthesized expression/generated/tests/generator/parenthesizedExpression/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/parenthesized expression/generated/tests/generator/parenthesizedExpression/gen_input.py @@ -1,3 +1,7 @@ +# Imports ---------------------------------------------------------------------- + +from tests.generator.parenthesizedExpression import f, g + # Pipelines -------------------------------------------------------------------- def test(): diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/parenthesized expression/generated/tests/generator/parenthesizedExpression/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/expressions/parenthesized expression/generated/tests/generator/parenthesizedExpression/gen_input.py.map index 508b1d926..ee09584f2 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/parenthesized expression/generated/tests/generator/parenthesizedExpression/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/parenthesized expression/generated/tests/generator/parenthesizedExpression/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdstest"],"names":["test","f","g"],"mappings":"AAAA;;AAMA,IAASA,IAAI;IACTC,CAAC,CAAEC,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["test","f","g"],"mappings":"AAAA;;;;;;AAMA,IAASA,IAAI;IACTC,CAAC,CAAEC,CAAC","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/prefix operation/generated/tests/generator/prefixOperation/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/expressions/prefix operation/generated/tests/generator/prefixOperation/gen_input.py index 138c6bf3f..b2b657444 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/prefix operation/generated/tests/generator/prefixOperation/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/prefix operation/generated/tests/generator/prefixOperation/gen_input.py @@ -1,3 +1,7 @@ +# Imports ---------------------------------------------------------------------- + +from tests.generator.prefixOperation import f, g, h + # Pipelines -------------------------------------------------------------------- def test(): diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/prefix operation/generated/tests/generator/prefixOperation/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/expressions/prefix operation/generated/tests/generator/prefixOperation/gen_input.py.map index 9a6640681..3d0555e7a 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/prefix operation/generated/tests/generator/prefixOperation/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/prefix operation/generated/tests/generator/prefixOperation/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdstest"],"names":["test","f","not","g","h"],"mappings":"AAAA;;AAQA,IAASA,IAAI;IACTC,CAAC,CAACC,GAAG,EAACC,CAAC;IACPF,CAAC,CAAC,CAAC,CAAAG,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["test","f","not","g","h"],"mappings":"AAAA;;;;;;AAQA,IAASA,IAAI;IACTC,CAAC,CAACC,GAAG,EAACC,CAAC;IACPF,CAAC,CAAC,CAAC,CAAAG,CAAC","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/reference/generated/tests/generator/reference/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/expressions/reference/generated/tests/generator/reference/gen_input.py index 149d8bb65..b60d676a2 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/reference/generated/tests/generator/reference/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/reference/generated/tests/generator/reference/gen_input.py @@ -1,3 +1,7 @@ +# Imports ---------------------------------------------------------------------- + +from tests.generator.reference import explain_model, f + # Pipelines -------------------------------------------------------------------- def test(): diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/reference/generated/tests/generator/reference/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/expressions/reference/generated/tests/generator/reference/gen_input.py.map index e7e444c3a..24a709b4f 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/reference/generated/tests/generator/reference/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/reference/generated/tests/generator/reference/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdstest"],"names":["test","f","explainmodel"],"mappings":"AAAA;;AAQA,IAASA,IAAI;IACTC,CAAC,CAACC,aAAY","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["test","f","explainmodel"],"mappings":"AAAA;;;;;;AAQA,IAASA,IAAI;IACTC,CAAC,CAACC,aAAY","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/side effects/generated/tests/generator/sideEffects/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/expressions/side effects/generated/tests/generator/sideEffects/gen_input.py index 506c09826..692224ffe 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/side effects/generated/tests/generator/sideEffects/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/side effects/generated/tests/generator/sideEffects/gen_input.py @@ -1,3 +1,7 @@ +# Imports ---------------------------------------------------------------------- + +from tests.generator.sideEffects import f + # Segments --------------------------------------------------------------------- def mySegment(param): diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/side effects/generated/tests/generator/sideEffects/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/expressions/side effects/generated/tests/generator/sideEffects/gen_input.py.map index 0046381d4..399327106 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/side effects/generated/tests/generator/sideEffects/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/side effects/generated/tests/generator/sideEffects/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdstest"],"names":["mysegment","param","f","result","test","null"],"mappings":"AAAA;;AAIA,IAAQA,SAAS,CAACC,KAAK;IACnBC,CAAC;IACD,YAAMC,MAAM,GAAGF,KAAK;IAFO,OAAG;;;;AAKlC,IAASG,IAAI;IACTJ,SAAS,CAAC;IACVA,SAAS,CAAC;IACVA,SAAS,CAAC;IACVA,SAAS,CAACK,IAAI;IACdL,SAAS,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["mysegment","param","f","result","test","null"],"mappings":"AAAA;;;;;;AAIA,IAAQA,SAAS,CAACC,KAAK;IACnBC,CAAC;IACD,YAAMC,MAAM,GAAGF,KAAK;IAFO,OAAG;;;;AAKlC,IAASG,IAAI;IACTJ,SAAS,CAAC;IACVA,SAAS,CAAC;IACVA,SAAS,CAAC;IACVA,SAAS,CAACK,IAAI;IACdL,SAAS,CAAC","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/template string/generated/tests/generator/templateString/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/expressions/template string/generated/tests/generator/templateString/gen_input.py index 7756f36ad..f407d7aaf 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/template string/generated/tests/generator/templateString/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/template string/generated/tests/generator/templateString/gen_input.py @@ -1,3 +1,7 @@ +# Imports ---------------------------------------------------------------------- + +from tests.generator.templateString import f, g + # Pipelines -------------------------------------------------------------------- def test(): diff --git a/packages/safe-ds-lang/tests/resources/generation/python/expressions/template string/generated/tests/generator/templateString/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/expressions/template string/generated/tests/generator/templateString/gen_input.py.map index 9333bd67d..04b921703 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/expressions/template string/generated/tests/generator/templateString/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/expressions/template string/generated/tests/generator/templateString/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdstest"],"names":["test","f","g"],"mappings":"AAAA;;AAMA,IAASA,IAAI;IACTC,CAAC,CAAC,EAAA,SACHC,CAAC,EAAG,YACEA,CAAC,EAAG","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["test","f","g"],"mappings":"AAAA;;;;;;AAMA,IAASA,IAAI;IACTC,CAAC,CAAC,EAAA,SACHC,CAAC,EAAG,YACEA,CAAC,EAAG","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/imports/general/generated/tests/generator/imports/gen_context_same_package.py b/packages/safe-ds-lang/tests/resources/generation/python/imports/general/generated/tests/generator/imports/gen_context_same_package.py index 3d5209468..f7c80fe50 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/imports/general/generated/tests/generator/imports/gen_context_same_package.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/imports/general/generated/tests/generator/imports/gen_context_same_package.py @@ -1,3 +1,7 @@ +# Imports ---------------------------------------------------------------------- + +from tests.generator.imports import impureFunction + # Segments --------------------------------------------------------------------- def segment1InSamePackage(): diff --git a/packages/safe-ds-lang/tests/resources/generation/python/imports/general/generated/tests/generator/imports/gen_context_same_package.py.map b/packages/safe-ds-lang/tests/resources/generation/python/imports/general/generated/tests/generator/imports/gen_context_same_package.py.map index d79ad80dc..9285935a9 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/imports/general/generated/tests/generator/imports/gen_context_same_package.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/imports/general/generated/tests/generator/imports/gen_context_same_package.py.map @@ -1 +1 @@ -{"version":3,"sources":["context same package.sdstest"],"names":["segment1insamepackage","result","impurefunction","segment2insamepackage"],"mappings":"AAAA;;AAIA,IAAQA,qBAAqB;IACzB,YAAMC,MAAM,GAAGC,cAAc;IADD,OAAG;;AAInC,IAAQC,qBAAqB;IACzB,YAAMF,MAAM,GAAGC,cAAc;IADD,OAAG","file":"gen_context_same_package.py"} \ No newline at end of file +{"version":3,"sources":["context same package.sdstest"],"names":["segment1insamepackage","result","impurefunction","segment2insamepackage"],"mappings":"AAAA;;;;;;AAIA,IAAQA,qBAAqB;IACzB,YAAMC,MAAM,GAAGC,cAAc;IADD,OAAG;;AAInC,IAAQC,qBAAqB;IACzB,YAAMF,MAAM,GAAGC,cAAc;IADD,OAAG","file":"gen_context_same_package.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/imports/general/generated/tests/generator/imports/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/imports/general/generated/tests/generator/imports/gen_input.py index 8fd2d0cc9..d0b436482 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/imports/general/generated/tests/generator/imports/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/imports/general/generated/tests/generator/imports/gen_input.py @@ -2,6 +2,7 @@ from special_location import function1InCompilationUnitWithPythonModule, function2InCompilationUnitWithPythonModule as h from tests.generator.differentPackage import function1InDifferentPackage, function2InDifferentPackage as g +from tests.generator.imports import f from tests.generator.imports.gen_context_same_package import segment1InSamePackage, segment2InSamePackage # Pipelines -------------------------------------------------------------------- diff --git a/packages/safe-ds-lang/tests/resources/generation/python/imports/general/generated/tests/generator/imports/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/imports/general/generated/tests/generator/imports/gen_input.py.map index b5c506e32..5ccf5fb79 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/imports/general/generated/tests/generator/imports/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/imports/general/generated/tests/generator/imports/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdstest"],"names":["test","f","segment1insamepackage","segment2insamepackage","function1indifferentpackage","g","function1incompilationunitwithpythonmodule","h"],"mappings":"AAAA;;;;;;;;AASA,IAASA,IAAI;IACTC,CAAC,CAACC,qBAAqB;IACvBD,CAAC,CAACC,qBAAqB;IACvBD,CAAC,CAACE,qBAAqB;IACvBF,CAAC,CAACE,qBAAqB;IAEvBF,CAAC,CAACG,2BAA2B;IAC7BH,CAAC,CAACG,2BAA2B;IAC7BH,CAAC,CAACI,CAAC;IACHJ,CAAC,CAACI,CAAC;IAEHJ,CAAC,CAACK,0CAA0C;IAC5CL,CAAC,CAACK,0CAA0C;IAC5CL,CAAC,CAACM,CAAC;IACHN,CAAC,CAACM,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["test","f","segment1insamepackage","segment2insamepackage","function1indifferentpackage","g","function1incompilationunitwithpythonmodule","h"],"mappings":"AAAA;;;;;;;;;AASA,IAASA,IAAI;IACTC,CAAC,CAACC,qBAAqB;IACvBD,CAAC,CAACC,qBAAqB;IACvBD,CAAC,CAACE,qBAAqB;IACvBF,CAAC,CAACE,qBAAqB;IAEvBF,CAAC,CAACG,2BAA2B;IAC7BH,CAAC,CAACG,2BAA2B;IAC7BH,CAAC,CAACI,CAAC;IACHJ,CAAC,CAACI,CAAC;IAEHJ,CAAC,CAACK,0CAA0C;IAC5CL,CAAC,CAACK,0CAA0C;IAC5CL,CAAC,CAACM,CAAC;IACHN,CAAC,CAACM,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 new file mode 100644 index 000000000..dfb67fca9 --- /dev/null +++ b/packages/safe-ds-lang/tests/resources/generation/python/imports/safeds/generated/tests/generator/safeds/gen_input.py @@ -0,0 +1,8 @@ +# Imports ---------------------------------------------------------------------- + +from safeds.data.tabular.containers import Table + +# Pipelines -------------------------------------------------------------------- + +def test(): + 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 new file mode 100644 index 000000000..aa4f058cf --- /dev/null +++ b/packages/safe-ds-lang/tests/resources/generation/python/imports/safeds/generated/tests/generator/safeds/gen_input.py.map @@ -0,0 +1 @@ +{"version":3,"sources":["input.sdstest"],"names":["test","table"],"mappings":"AAEA;;;;;;AAEA,IAASA,IAAI;IACT,IAAQC,KAAK","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_test.py b/packages/safe-ds-lang/tests/resources/generation/python/imports/safeds/generated/tests/generator/safeds/gen_input_test.py new file mode 100644 index 000000000..824f70b1f --- /dev/null +++ b/packages/safe-ds-lang/tests/resources/generation/python/imports/safeds/generated/tests/generator/safeds/gen_input_test.py @@ -0,0 +1,4 @@ +from .gen_input import test + +if __name__ == '__main__': + test() diff --git a/packages/safe-ds-lang/tests/resources/generation/python/imports/safeds/input.sdstest b/packages/safe-ds-lang/tests/resources/generation/python/imports/safeds/input.sdstest new file mode 100644 index 000000000..7344f727a --- /dev/null +++ b/packages/safe-ds-lang/tests/resources/generation/python/imports/safeds/input.sdstest @@ -0,0 +1,7 @@ +// Related to https://github.com/Safe-DS/DSL/issues/974 + +package tests.generator.safeds + +pipeline test { + val a = Table(); +} diff --git a/packages/safe-ds-lang/tests/resources/generation/python/imports/wildcard/generated/tests/generator/wildcard/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/imports/wildcard/generated/tests/generator/wildcard/gen_input.py index 4283f3f54..53739f5de 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/imports/wildcard/generated/tests/generator/wildcard/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/imports/wildcard/generated/tests/generator/wildcard/gen_input.py @@ -2,6 +2,7 @@ from special_location import function1InCompilationUnitWithPythonModule, function2InCompilationUnitWithPythonModule from tests.generator.differentPackageWildcard import function1InDifferentPackage, function2InDifferentPackage +from tests.generator.wildcard import f # Pipelines -------------------------------------------------------------------- diff --git a/packages/safe-ds-lang/tests/resources/generation/python/imports/wildcard/generated/tests/generator/wildcard/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/imports/wildcard/generated/tests/generator/wildcard/gen_input.py.map index ff643626d..cfa46b6c5 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/imports/wildcard/generated/tests/generator/wildcard/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/imports/wildcard/generated/tests/generator/wildcard/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdstest"],"names":["test","f","function1indifferentpackage","function2indifferentpackage","function1incompilationunitwithpythonmodule","function2incompilationunitwithpythonmodule"],"mappings":"AAAA;;;;;;;AAOA,IAASA,IAAI;IACTC,CAAC,CAACC,2BAA2B;IAC7BD,CAAC,CAACC,2BAA2B;IAC7BD,CAAC,CAACE,2BAA2B;IAC7BF,CAAC,CAACE,2BAA2B;IAE7BF,CAAC,CAACG,0CAA0C;IAC5CH,CAAC,CAACG,0CAA0C;IAC5CH,CAAC,CAACI,0CAA0C;IAC5CJ,CAAC,CAACI,0CAA0C","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["test","f","function1indifferentpackage","function2indifferentpackage","function1incompilationunitwithpythonmodule","function2incompilationunitwithpythonmodule"],"mappings":"AAAA;;;;;;;;AAOA,IAASA,IAAI;IACTC,CAAC,CAACC,2BAA2B;IAC7BD,CAAC,CAACC,2BAA2B;IAC7BD,CAAC,CAACE,2BAA2B;IAC7BF,CAAC,CAACE,2BAA2B;IAE7BF,CAAC,CAACG,0CAA0C;IAC5CH,CAAC,CAACG,0CAA0C;IAC5CH,CAAC,CAACI,0CAA0C;IAC5CJ,CAAC,CAACI,0CAA0C","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 d5d704c03..ad319da7f 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 @@ -1,3 +1,7 @@ +# Imports ---------------------------------------------------------------------- + +from tests.generator.partialImpureDependencyFileConstant import iFileReadA, iFileReadB, iFileWriteA, iFileWriteB + # Pipelines -------------------------------------------------------------------- def testPipeline(): 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 d8bcf8c17..075846e12 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.sdstest"],"names":["testpipeline","ifilewritea","ifilereada","ifilewriteb","ifilereadb","impurefilereadagain","impurefilereadagainb"],"mappings":"AAAA;;AAUA,IAASA,YAAY;IAEjB,kBAAsBC,WAAW;IACjC,mBAAuBA,WAAW;IAClC,sBAA0BC,UAAU;IAGpC,mBAAuBC,WAAW;IAClC,oBAAwBA,WAAW;IACnC,uBAA2BC,UAAU;IAGrC,SAAe,CAAAC,mBAAmB,EAAC,CAAC,EAACC,oBAAoB","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["testpipeline","ifilewritea","ifilereada","ifilewriteb","ifilereadb","impurefilereadagain","impurefilereadagainb"],"mappings":"AAAA;;;;;;AAUA,IAASA,YAAY;IAEjB,kBAAsBC,WAAW;IACjC,mBAAuBA,WAAW;IAClC,sBAA0BC,UAAU;IAGpC,mBAAuBC,WAAW;IAClC,oBAAwBA,WAAW;IACnC,uBAA2BC,UAAU;IAGrC,SAAe,CAAAC,mBAAmB,EAAC,CAAC,EAACC,oBAAoB","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 725220e42..07960948a 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 @@ -1,3 +1,7 @@ +# Imports ---------------------------------------------------------------------- + +from tests.generator.partialImpureDependencyFileParameter import iFileRead, iFileWrite + # Pipelines -------------------------------------------------------------------- def testPipeline(): 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 74485ed84..c34a02f45 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.sdstest"],"names":["testpipeline","ifilewrite","ifileread","impurefilereadagain"],"mappings":"AAAA;;AAMA,IAASA,YAAY;IAEjB,kBAAsBC,UAAU,CAAC,OAAO;IACxC,mBAAuBA,UAAU,CAAC,OAAO;IACzC,sBAA0BC,SAAS,CAAC,OAAO;IAG3C,SAAe,CAAAC,mBAAmB,EAAC,CAAC,EAAC,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["testpipeline","ifilewrite","ifileread","impurefilereadagain"],"mappings":"AAAA;;;;;;AAMA,IAASA,YAAY;IAEjB,kBAAsBC,UAAU,CAAC,OAAO;IACxC,mBAAuBA,UAAU,CAAC,OAAO;IACzC,sBAA0BC,SAAS,CAAC,OAAO;IAG3C,SAAe,CAAAC,mBAAmB,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 83774fb0d..4210bf2cb 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 @@ -1,3 +1,7 @@ +# Imports ---------------------------------------------------------------------- + +from tests.generator.partialImpureDependency import fp, i1, iFileWrite, noPartialEvalInt + # Pipelines -------------------------------------------------------------------- def testPipeline(): 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 4d67a8700..454595133 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.sdstest"],"names":["testpipeline","i1","ifilewrite","nopartialevalint","r","fp","purevalueforimpure2","purevalueforimpure3","impurea2"],"mappings":"AAAA;;AAeA,IAASA,YAAY;IACjBC,EAAE,CAAC,CAAC;IAGJ,kBAAsBC,UAAU;IAChC,mBAAuBA,UAAU;IAEjC,sBAA0BC,gBAAgB,CAAC,CAAC;IAC5C,sBAA0B,CAAC;IAExB;QACCF,EAAE,CAAC,CAAC;QACJ,0BAAMG,CAAC,GAAG,CAAC;QAFZ,OAEC,0BAAMA,CAAC;IAFXC,EAAE,CAAC;IAIHJ,EAAE,CAAC,CAAC;IACJ,WAAeA,EAAE,CAACK,mBAAmB;IACrC,WAAeL,EAAE,CAACE,gBAAgB,CAACI,CAAmB;IACtDN,EAAE,CAAC,CAAC;IAGJ,SAAeA,EAAE,CAACO,QAAQ","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["testpipeline","i1","ifilewrite","nopartialevalint","r","fp","purevalueforimpure2","purevalueforimpure3","impurea2"],"mappings":"AAAA;;;;;;AAeA,IAASA,YAAY;IACjBC,EAAE,CAAC,CAAC;IAGJ,kBAAsBC,UAAU;IAChC,mBAAuBA,UAAU;IAEjC,sBAA0BC,gBAAgB,CAAC,CAAC;IAC5C,sBAA0B,CAAC;IAExB;QACCF,EAAE,CAAC,CAAC;QACJ,0BAAMG,CAAC,GAAG,CAAC;QAFZ,OAEC,0BAAMA,CAAC;IAFXC,EAAE,CAAC;IAIHJ,EAAE,CAAC,CAAC;IACJ,WAAeA,EAAE,CAACK,mBAAmB;IACrC,WAAeL,EAAE,CAACE,gBAAgB,CAACI,CAAmB;IACtDN,EAAE,CAAC,CAAC;IAGJ,SAAeA,EAAE,CAACO,QAAQ","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 081abea7a..471ea69fe 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 @@ -1,3 +1,7 @@ +# Imports ---------------------------------------------------------------------- + +from tests.generator.partialPureDependency import f, g, g2, g3, g4, noPartialEvalInt + # Pipelines -------------------------------------------------------------------- def testPipeline(): 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 232e9d9be..1c46c00c1 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.sdstest"],"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,SAAaC,KAAK;IAGlB,UAAc,IAAI;IAGlB,OAAW,CAAC;IAGZ,QAAYC,IAAI;IAGhB,YAAgB;IAIhB,WAAe;IAGf,SAAaC,CAAC,CAACC,IAAQ,EAAEC,IAAO,EAAEC,CAAI,EAAEC,IAAK,EAAEC,aAAS;IAG9C;QACN,IAAQ,CAAC;QACT,KAAS,CAAC;QACV,IAAQ;QACR,KAAS;QACT,0BAAMC,CAAC,GAAG;QALJ,OAKN,0BAAMA,CAAC;IALX,IAAQ,CAAAC,CAAC,CAAC,uBAMP,CAAC,EAACA,CAAC,CAAC,SAAM,CAAC;IAcd,SAAa,KAAK;IAClB,WAAe,OAAO;IACtB,YAAgBC,EAAE,CAAC,CAACC,KAAM,EAAEC,OAAQ;IAMpC,SAAa,CAAC;IAEd,SAAaC,gBAAgB,CAACC,CAAM;IAEpC,OAAW,CAACA,CAAM;IAElB,QAAY,CAACC,MAAM;IACnB,YAAgBC,KAAK,CAAC,CAAC;IAEvB,aAAiBC,EAAE,CAACC,IAAI;IAIxB,SAAe,CAAO,CAAP,CAAA,CAAC,CAAAC,CAAC,GAAC,CAAC,EAAC,CAAC,GAAC,CAAC,EAACC,MAAM,GAAC,CAAC,EAAwB,CAAvB,CAAAC,SAAS,EAAC,CAAC,EAACC,UAAU,GAAC,CAAC,EAACC,EAAE,CAACC,SAAS","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"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,SAAaC,KAAK;IAGlB,UAAc,IAAI;IAGlB,OAAW,CAAC;IAGZ,QAAYC,IAAI;IAGhB,YAAgB;IAIhB,WAAe;IAGf,SAAaC,CAAC,CAACC,IAAQ,EAAEC,IAAO,EAAEC,CAAI,EAAEC,IAAK,EAAEC,aAAS;IAG9C;QACN,IAAQ,CAAC;QACT,KAAS,CAAC;QACV,IAAQ;QACR,KAAS;QACT,0BAAMC,CAAC,GAAG;QALJ,OAKN,0BAAMA,CAAC;IALX,IAAQ,CAAAC,CAAC,CAAC,uBAMP,CAAC,EAACA,CAAC,CAAC,SAAM,CAAC;IAcd,SAAa,KAAK;IAClB,WAAe,OAAO;IACtB,YAAgBC,EAAE,CAAC,CAACC,KAAM,EAAEC,OAAQ;IAMpC,SAAa,CAAC;IAEd,SAAaC,gBAAgB,CAACC,CAAM;IAEpC,OAAW,CAACA,CAAM;IAElB,QAAY,CAACC,MAAM;IACnB,YAAgBC,KAAK,CAAC,CAAC;IAEvB,aAAiBC,EAAE,CAACC,IAAI;IAIxB,SAAe,CAAO,CAAP,CAAA,CAAC,CAAAC,CAAC,GAAC,CAAC,EAAC,CAAC,GAAC,CAAC,EAACC,MAAM,GAAC,CAAC,EAAwB,CAAvB,CAAAC,SAAS,EAAC,CAAC,EAACC,UAAU,GAAC,CAAC,EAACC,EAAE,CAACC,SAAS","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 a6b84a0cf..58d0694bc 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 @@ -1,3 +1,7 @@ +# Imports ---------------------------------------------------------------------- + +from tests.generator.partialRedundantImpurity import noPartialEvalInt + # Pipelines -------------------------------------------------------------------- def testPipeline(): 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 88b010512..33751af7b 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.sdstest"],"names":["testpipeline","nopartialevalint","purevalue"],"mappings":"AAAA;;AAeA,IAASA,YAAY;IAMjB,YAAgBC,gBAAgB,CAAC,CAAC;IAalC,SAAe,CAAAC,SAAS,EAAC,CAAC,EAAC,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["testpipeline","nopartialevalint","purevalue"],"mappings":"AAAA;;;;;;AAeA,IAASA,YAAY;IAMjB,YAAgBC,gBAAgB,CAAC,CAAC;IAalC,SAAe,CAAAC,SAAS,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/python module/generated/special_module/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/python module/generated/special_module/gen_input.py index eab6391b7..dbf640b95 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/python module/generated/special_module/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/python module/generated/special_module/gen_input.py @@ -1,3 +1,7 @@ +# Imports ---------------------------------------------------------------------- + +from special_module import f + # Segments --------------------------------------------------------------------- def test(): diff --git a/packages/safe-ds-lang/tests/resources/generation/python/python module/generated/special_module/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/python module/generated/special_module/gen_input.py.map index d40585458..b552e25b5 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/python module/generated/special_module/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/python module/generated/special_module/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdstest"],"names":["test","f"],"mappings":"AAAA;;AAMA,IAAQA,IAAI;IACRC,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["test","f"],"mappings":"AAAA;;;;;;AAMA,IAAQA,IAAI;IACRC,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/calls/main/generated/tests/generator/runnerIntegration/expressions/calls/main/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/calls/main/generated/tests/generator/runnerIntegration/expressions/calls/main/gen_input.py index 42e2bc039..e2421f5a5 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/calls/main/generated/tests/generator/runnerIntegration/expressions/calls/main/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/calls/main/generated/tests/generator/runnerIntegration/expressions/calls/main/gen_input.py @@ -1,6 +1,7 @@ # Imports ---------------------------------------------------------------------- import safeds_runner +from tests.generator.runnerIntegration.expressions.calls.main import f, g, h, i, j, k, l, m, readFile from typing import Any, Callable, TypeVar # Type variables --------------------------------------------------------------- diff --git a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/calls/main/generated/tests/generator/runnerIntegration/expressions/calls/main/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/calls/main/generated/tests/generator/runnerIntegration/expressions/calls/main/gen_input.py.map index 515eb8737..351e57122 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/calls/main/generated/tests/generator/runnerIntegration/expressions/calls/main/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/calls/main/generated/tests/generator/runnerIntegration/expressions/calls/main/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdstest"],"names":["segment_a","a","result","test","f","g","param2","h","i","j","k","readfile","l","m"],"mappings":"AAAA;;;;;;;;;;;;;;;;AAiEA,IAAQA,SAAS,CAACC,CAAC;IACf,YAAMC,MAAM,GAAG,CAAAD,CAAC,EAAC,CAAC,EAAC,CAAC;IADE,OAAG;;;;AA9B7B,IAASE,IAAI;IACTC,CAAC,CAAE,sGAAAC,CAAC,CAAC,CAAC,EA9BNC,MAAM,CA8BE,CAAC,IAAJ,CAAC,EAAE,CAAC;IACTF,CAAC,CAAE,sGAAAC,CAAC,CAAsB,CAAC,EA/B3BC,MAAM,CA+BQ,CAAC,IAAW,CAAC,EAAb,CAAC;IACfF,CAAC,CAAE,sGAAAG,CAAC,CAAC,CAAC,EA3BiBD,OAAM,CA2BrB,CAAC,IAAJ,CAAC,EAAE,CAAC;IACTF,CAAC,CAAE,sGAAAG,CAAC,CAAsB,CAAC,EA5BJD,OAAM,CA4Bf,CAAC,IAAW,CAAC,EAAb,CAAC;IACfF,CAAC,CAAE,0FAAAG,CAAC,GAAU,CAAC,EA7BsB,CAAC;IA8BpC,KAAK;IACL,KAAK,GAAE,GAAG;IACZ,EAAQ,GAAG,EAAT,IAAI;IAEL,oBAAC,CAAFH,CAAC,UAADA,CAAC,CAAG,sGAAAC,CAAC,CAAC,CAAC,EAvCPC,MAAM,CAuCG,CAAC,IAAJ,CAAC,EAAE,CAAC;IACT,oBAAC,CAAFF,CAAC,UAADA,CAAC,CAAG,sGAAAC,CAAC,CAAsB,CAAC,EAxC5BC,MAAM,CAwCS,CAAC,IAAW,CAAC,EAAb,CAAC;IACf,oBAAC,CAAFF,CAAC,UAADA,CAAC,CAAG,sGAAAG,CAAC,CAAC,CAAC,EApCgBD,OAAM,CAoCpB,CAAC,IAAJ,CAAC,EAAE,CAAC;IACT,oBAAC,CAAFF,CAAC,UAADA,CAAC,CAAG,sGAAAG,CAAC,CAAsB,CAAC,EArCLD,OAAM,CAqCd,CAAC,IAAW,CAAC,EAAb,CAAC;IACf,oBAAC,CAAFF,CAAC,UAADA,CAAC,CAAG,0FAAAG,CAAC,GAAU,CAAC,EAtCqB,CAAC;IAuCrC,oBAAC,CAAFC,CAAC,UAAE,KAAK;IACP,oBAAC,CAAFC,CAAC,UAAE,KAAK,GAAE,GAAG;IACZ,oBAAC,CAAFC,CAAC,UAAD,EAAS,GAAG,EAAT,IAAI;IAEPN,CAAC,CAAC,iGAAAO,QAAQ,OAAR,iCAAU;IACZP,CAAC,CAACQ,CAAC,CAAC,OAACX,CAAC,EAAKD,SAAS,CAACC,CAAC;IACtBG,CAAC,CAACQ,CAAC,CAAC,OAACX,CAAC,EAAK,CAAA,CAAC,EAAC,CAAC,EAACD,SAAS,CAACC,CAAC;IAC1BG,CAAC,CAACQ,CAAC,CAAC,OAACX,CAAC,EAAK,0FAAAY,CAAC,GAAC,CAAA,CAAC,EAAC,CAAC,EAACb,SAAS,CAACC,CAAC;IAC5BG,CAAC,CAACQ,CAAC,CAAC,OAACX,CAAC,EAAK,CAAA,CAAC,EAAC,CAAC,EAAC,0FAAAY,CAAC,GAAC,0FAAAA,CAAC,GAAC,CAAA,CAAC,EAAC,CAAC,EAACb,SAAS,CAACC,CAAC;IAC9B,yBAACA,CAAC;QAAG,0BAAMC,MAAM,GAAGF,SAAS,CAACC,CAAC;QAA/B,OAAK,0BAAMC,MAAM;IAArBE,CAAC,CAACQ,CAAC,CAAC;IACA,yBAACX,CAAC;QAAG,0BAAMC,MAAM,GAAG,0FAAAW,CAAC,GAACb,SAAS,CAACC,CAAC;QAAjC,OAAK,0BAAMC,MAAM;IAArBE,CAAC,CAACQ,CAAC,CAAC;IACJR,CAAC,CAAC,0FAAAQ,CAAC,GAAC,OAACX,CAAC,EAAK,CAAA,CAAC,EAAC,CAAC,EAACA,CAAC;IACZ,yBAACA,CAAC;QAAG,0BAAMC,MAAM,GAAG,CAAA,CAAC,EAAC,CAAC,EAAC,0FAAAW,CAAC,GAACZ,CAAC;QAA3B,OAAK,0BAAMC,MAAM;IAArBE,CAAC,CAAC,0FAAAQ,CAAC,GAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["segment_a","a","result","test","f","g","param2","h","i","j","k","readfile","l","m"],"mappings":"AAAA;;;;;;;;;;;;;;;;;AAiEA,IAAQA,SAAS,CAACC,CAAC;IACf,YAAMC,MAAM,GAAG,CAAAD,CAAC,EAAC,CAAC,EAAC,CAAC;IADE,OAAG;;;;AA9B7B,IAASE,IAAI;IACTC,CAAC,CAAE,sGAAAC,CAAC,CAAC,CAAC,EA9BNC,MAAM,CA8BE,CAAC,IAAJ,CAAC,EAAE,CAAC;IACTF,CAAC,CAAE,sGAAAC,CAAC,CAAsB,CAAC,EA/B3BC,MAAM,CA+BQ,CAAC,IAAW,CAAC,EAAb,CAAC;IACfF,CAAC,CAAE,sGAAAG,CAAC,CAAC,CAAC,EA3BiBD,OAAM,CA2BrB,CAAC,IAAJ,CAAC,EAAE,CAAC;IACTF,CAAC,CAAE,sGAAAG,CAAC,CAAsB,CAAC,EA5BJD,OAAM,CA4Bf,CAAC,IAAW,CAAC,EAAb,CAAC;IACfF,CAAC,CAAE,0FAAAG,CAAC,GAAU,CAAC,EA7BsB,CAAC;IA8BpC,KAAK;IACL,KAAK,GAAE,GAAG;IACZ,EAAQ,GAAG,EAAT,IAAI;IAEL,oBAAC,CAAFH,CAAC,UAADA,CAAC,CAAG,sGAAAC,CAAC,CAAC,CAAC,EAvCPC,MAAM,CAuCG,CAAC,IAAJ,CAAC,EAAE,CAAC;IACT,oBAAC,CAAFF,CAAC,UAADA,CAAC,CAAG,sGAAAC,CAAC,CAAsB,CAAC,EAxC5BC,MAAM,CAwCS,CAAC,IAAW,CAAC,EAAb,CAAC;IACf,oBAAC,CAAFF,CAAC,UAADA,CAAC,CAAG,sGAAAG,CAAC,CAAC,CAAC,EApCgBD,OAAM,CAoCpB,CAAC,IAAJ,CAAC,EAAE,CAAC;IACT,oBAAC,CAAFF,CAAC,UAADA,CAAC,CAAG,sGAAAG,CAAC,CAAsB,CAAC,EArCLD,OAAM,CAqCd,CAAC,IAAW,CAAC,EAAb,CAAC;IACf,oBAAC,CAAFF,CAAC,UAADA,CAAC,CAAG,0FAAAG,CAAC,GAAU,CAAC,EAtCqB,CAAC;IAuCrC,oBAAC,CAAFC,CAAC,UAAE,KAAK;IACP,oBAAC,CAAFC,CAAC,UAAE,KAAK,GAAE,GAAG;IACZ,oBAAC,CAAFC,CAAC,UAAD,EAAS,GAAG,EAAT,IAAI;IAEPN,CAAC,CAAC,iGAAAO,QAAQ,OAAR,iCAAU;IACZP,CAAC,CAACQ,CAAC,CAAC,OAACX,CAAC,EAAKD,SAAS,CAACC,CAAC;IACtBG,CAAC,CAACQ,CAAC,CAAC,OAACX,CAAC,EAAK,CAAA,CAAC,EAAC,CAAC,EAACD,SAAS,CAACC,CAAC;IAC1BG,CAAC,CAACQ,CAAC,CAAC,OAACX,CAAC,EAAK,0FAAAY,CAAC,GAAC,CAAA,CAAC,EAAC,CAAC,EAACb,SAAS,CAACC,CAAC;IAC5BG,CAAC,CAACQ,CAAC,CAAC,OAACX,CAAC,EAAK,CAAA,CAAC,EAAC,CAAC,EAAC,0FAAAY,CAAC,GAAC,0FAAAA,CAAC,GAAC,CAAA,CAAC,EAAC,CAAC,EAACb,SAAS,CAACC,CAAC;IAC9B,yBAACA,CAAC;QAAG,0BAAMC,MAAM,GAAGF,SAAS,CAACC,CAAC;QAA/B,OAAK,0BAAMC,MAAM;IAArBE,CAAC,CAACQ,CAAC,CAAC;IACA,yBAACX,CAAC;QAAG,0BAAMC,MAAM,GAAG,0FAAAW,CAAC,GAACb,SAAS,CAACC,CAAC;QAAjC,OAAK,0BAAMC,MAAM;IAArBE,CAAC,CAACQ,CAAC,CAAC;IACJR,CAAC,CAAC,0FAAAQ,CAAC,GAAC,OAACX,CAAC,EAAK,CAAA,CAAC,EAAC,CAAC,EAACA,CAAC;IACZ,yBAACA,CAAC;QAAG,0BAAMC,MAAM,GAAG,CAAA,CAAC,EAAC,CAAC,EAAC,0FAAAW,CAAC,GAACZ,CAAC;QAA3B,OAAK,0BAAMC,MAAM;IAArBE,CAAC,CAAC,0FAAAQ,CAAC,GAAC","file":"gen_input.py"} \ No newline at end of file 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 bafe93b89..65bdf5af2 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 @@ -1,6 +1,7 @@ # Imports ---------------------------------------------------------------------- import safeds_runner +from tests.generator.runnerIntegration.expressions.calls.ofClasses import MyClass # Pipelines -------------------------------------------------------------------- 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 9880540aa..a08bc444e 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.sdstest"],"names":["test","myclass"],"mappings":"AAEA;;;;;;AAIA,IAASA,IAAI;IACT,IAAQ,qGAAAC,OAAO,GAAC,CAAC;IAAjB","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["test","myclass"],"mappings":"AAEA;;;;;;;AAIA,IAASA,IAAI;IACT,IAAQ,qGAAAC,OAAO,GAAC,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/member access/generated/tests/generator/memberAccessWithRunnerIntegration/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/member access/generated/tests/generator/memberAccessWithRunnerIntegration/gen_input.py index 11186b7a6..9eccb036d 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/member access/generated/tests/generator/memberAccessWithRunnerIntegration/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/member access/generated/tests/generator/memberAccessWithRunnerIntegration/gen_input.py @@ -1,6 +1,7 @@ # Imports ---------------------------------------------------------------------- import safeds_runner +from tests.generator.memberAccessWithRunnerIntegration import C, f, factory, g, h from typing import Any, TypeVar # Type variables --------------------------------------------------------------- diff --git a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/member access/generated/tests/generator/memberAccessWithRunnerIntegration/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/member access/generated/tests/generator/memberAccessWithRunnerIntegration/gen_input.py.map index 003e6b8e5..41430fb2d 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/member access/generated/tests/generator/memberAccessWithRunnerIntegration/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/expressions/member access/generated/tests/generator/memberAccessWithRunnerIntegration/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdstest"],"names":["test","f","g","h","result1","result2","c","a","b","factory","j","k","from_csv_file"],"mappings":"AAAA;;;;;;;;;;;;;;;;AA4BA,IAASA,IAAI;IACTC,CAAC,CAAC,mFAAAC,CAAC;IACHD,CAAC,CAAC,mFAAAE,CAAC,UAAGC,CAAO;IACbH,CAAC,CAAC,mFAAAE,CAAC,UAAGE,CAAO;IACbJ,CAAC,CAAC,mFAAAK,CAAC,UAAGC,CAAC;IACPN,CAAC,CAAC,mFAAAK,CAAC,UAAGE,CAAC;IACPP,CAAC,CAAU,6BAAC,CAAV,yFAAAQ,OAAO,YAAIF,CAAC;IACdN,CAAC,CAAU,6BAAC,CAAV,yFAAAQ,OAAO,YAAID,CAAC;IACdP,CAAC,CAAC,iGAAM,CAAC,GAAP,mFAAAK,CAAC,aAAK,CAAC;IACTL,CAAC,CAAC,qFAAAK,CAAC,CAAGI,CAAC,GAAL,mFAAAJ,CAAC,WAAK,GAAG;IACXL,CAAC,CAAC,sFAAAK,CAAC,CAAGK,EAAC,GAAL,mFAAAL,CAAC,WAAK,KAAK;IACbL,CAAC,CAAC,iGAAAK,CAAC,CAACM,aAAa,GAAC,SAAS,IAAT,yBAAA,SAAS","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["test","f","g","h","result1","result2","c","a","b","factory","j","k","from_csv_file"],"mappings":"AAAA;;;;;;;;;;;;;;;;;AA4BA,IAASA,IAAI;IACTC,CAAC,CAAC,mFAAAC,CAAC;IACHD,CAAC,CAAC,mFAAAE,CAAC,UAAGC,CAAO;IACbH,CAAC,CAAC,mFAAAE,CAAC,UAAGE,CAAO;IACbJ,CAAC,CAAC,mFAAAK,CAAC,UAAGC,CAAC;IACPN,CAAC,CAAC,mFAAAK,CAAC,UAAGE,CAAC;IACPP,CAAC,CAAU,6BAAC,CAAV,yFAAAQ,OAAO,YAAIF,CAAC;IACdN,CAAC,CAAU,6BAAC,CAAV,yFAAAQ,OAAO,YAAID,CAAC;IACdP,CAAC,CAAC,iGAAM,CAAC,GAAP,mFAAAK,CAAC,aAAK,CAAC;IACTL,CAAC,CAAC,qFAAAK,CAAC,CAAGI,CAAC,GAAL,mFAAAJ,CAAC,WAAK,GAAG;IACXL,CAAC,CAAC,sFAAAK,CAAC,CAAGK,EAAC,GAAL,mFAAAL,CAAC,WAAK,KAAK;IACbL,CAAC,CAAC,iGAAAK,CAAC,CAACM,aAAa,GAAC,SAAS,IAAT,yBAAA,SAAS","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/imports/general/generated/tests/generator/importsWithRunnerIntegration/gen_context_same_package.py b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/imports/general/generated/tests/generator/importsWithRunnerIntegration/gen_context_same_package.py index 58622ce67..863009dd9 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/imports/general/generated/tests/generator/importsWithRunnerIntegration/gen_context_same_package.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/imports/general/generated/tests/generator/importsWithRunnerIntegration/gen_context_same_package.py @@ -1,6 +1,7 @@ # Imports ---------------------------------------------------------------------- import safeds_runner +from tests.generator.importsWithRunnerIntegration import impureFunction # Segments --------------------------------------------------------------------- diff --git a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/imports/general/generated/tests/generator/importsWithRunnerIntegration/gen_context_same_package.py.map b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/imports/general/generated/tests/generator/importsWithRunnerIntegration/gen_context_same_package.py.map index 6d172254f..139e58a8e 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/imports/general/generated/tests/generator/importsWithRunnerIntegration/gen_context_same_package.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/imports/general/generated/tests/generator/importsWithRunnerIntegration/gen_context_same_package.py.map @@ -1 +1 @@ -{"version":3,"sources":["context same package.sdstest"],"names":["segment1insamepackage","result","impurefunction","segment2insamepackage"],"mappings":"AAAA;;;;;;AAIA,IAAQA,qBAAqB;IACzB,YAAMC,MAAM,GAAG,2FAAAC,cAAc;IADD,OAAG;;AAInC,IAAQC,qBAAqB;IACzB,YAAMF,MAAM,GAAG,2FAAAC,cAAc;IADD,OAAG","file":"gen_context_same_package.py"} \ No newline at end of file +{"version":3,"sources":["context same package.sdstest"],"names":["segment1insamepackage","result","impurefunction","segment2insamepackage"],"mappings":"AAAA;;;;;;;AAIA,IAAQA,qBAAqB;IACzB,YAAMC,MAAM,GAAG,2FAAAC,cAAc;IADD,OAAG;;AAInC,IAAQC,qBAAqB;IACzB,YAAMF,MAAM,GAAG,2FAAAC,cAAc;IADD,OAAG","file":"gen_context_same_package.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/imports/general/generated/tests/generator/importsWithRunnerIntegration/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/imports/general/generated/tests/generator/importsWithRunnerIntegration/gen_input.py index d5f37e74c..44792b746 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/imports/general/generated/tests/generator/importsWithRunnerIntegration/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/imports/general/generated/tests/generator/importsWithRunnerIntegration/gen_input.py @@ -3,6 +3,7 @@ import safeds_runner from special_location import function1InCompilationUnitWithPythonModule, function2InCompilationUnitWithPythonModule as h from tests.generator.differentPackageWithRunnerIntegration import function1InDifferentPackage, function2InDifferentPackage as g +from tests.generator.importsWithRunnerIntegration import f from tests.generator.importsWithRunnerIntegration.gen_context_same_package import segment1InSamePackage, segment2InSamePackage # Pipelines -------------------------------------------------------------------- diff --git a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/imports/general/generated/tests/generator/importsWithRunnerIntegration/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/imports/general/generated/tests/generator/importsWithRunnerIntegration/gen_input.py.map index 39fdacc61..3d07d7a70 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/imports/general/generated/tests/generator/importsWithRunnerIntegration/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/imports/general/generated/tests/generator/importsWithRunnerIntegration/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdstest"],"names":["test","f","segment1insamepackage","segment2insamepackage","function1indifferentpackage","g","function1incompilationunitwithpythonmodule","h"],"mappings":"AAAA;;;;;;;;;AASA,IAASA,IAAI;IACTC,CAAC,CAACC,qBAAqB;IACvBD,CAAC,CAACC,qBAAqB;IACvBD,CAAC,CAACE,qBAAqB;IACvBF,CAAC,CAACE,qBAAqB;IAEvBF,CAAC,CAAC,iHAAAG,2BAA2B;IAC7BH,CAAC,CAAC,iHAAAG,2BAA2B;IAC7BH,CAAC,CAAC,iHAAAI,CAAC;IACHJ,CAAC,CAAC,iHAAAI,CAAC;IAEHJ,CAAC,CAAC,2FAAAK,0CAA0C;IAC5CL,CAAC,CAAC,2FAAAK,0CAA0C;IAC5CL,CAAC,CAAC,2FAAAM,CAAC;IACHN,CAAC,CAAC,2FAAAM,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["test","f","segment1insamepackage","segment2insamepackage","function1indifferentpackage","g","function1incompilationunitwithpythonmodule","h"],"mappings":"AAAA;;;;;;;;;;AASA,IAASA,IAAI;IACTC,CAAC,CAACC,qBAAqB;IACvBD,CAAC,CAACC,qBAAqB;IACvBD,CAAC,CAACE,qBAAqB;IACvBF,CAAC,CAACE,qBAAqB;IAEvBF,CAAC,CAAC,iHAAAG,2BAA2B;IAC7BH,CAAC,CAAC,iHAAAG,2BAA2B;IAC7BH,CAAC,CAAC,iHAAAI,CAAC;IACHJ,CAAC,CAAC,iHAAAI,CAAC;IAEHJ,CAAC,CAAC,2FAAAK,0CAA0C;IAC5CL,CAAC,CAAC,2FAAAK,0CAA0C;IAC5CL,CAAC,CAAC,2FAAAM,CAAC;IACHN,CAAC,CAAC,2FAAAM,CAAC","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/imports/wildcard/generated/tests/generator/wildcardWithRunnerIntegration/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/imports/wildcard/generated/tests/generator/wildcardWithRunnerIntegration/gen_input.py index 2ab74b656..ab76d62cc 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/imports/wildcard/generated/tests/generator/wildcardWithRunnerIntegration/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/imports/wildcard/generated/tests/generator/wildcardWithRunnerIntegration/gen_input.py @@ -3,6 +3,7 @@ import safeds_runner from special_location import function1InCompilationUnitWithPythonModule, function2InCompilationUnitWithPythonModule from tests.generator.differentPackageWildcardWithRunnerIntegration import function1InDifferentPackage, function2InDifferentPackage +from tests.generator.wildcardWithRunnerIntegration import f # Pipelines -------------------------------------------------------------------- diff --git a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/imports/wildcard/generated/tests/generator/wildcardWithRunnerIntegration/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/imports/wildcard/generated/tests/generator/wildcardWithRunnerIntegration/gen_input.py.map index d08dc91b0..daef8e2ca 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/runner integration/imports/wildcard/generated/tests/generator/wildcardWithRunnerIntegration/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/runner integration/imports/wildcard/generated/tests/generator/wildcardWithRunnerIntegration/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdstest"],"names":["test","f","function1indifferentpackage","function2indifferentpackage","function1incompilationunitwithpythonmodule","function2incompilationunitwithpythonmodule"],"mappings":"AAAA;;;;;;;;AAOA,IAASA,IAAI;IACTC,CAAC,CAAC,yHAAAC,2BAA2B;IAC7BD,CAAC,CAAC,yHAAAC,2BAA2B;IAC7BD,CAAC,CAAC,yHAAAE,2BAA2B;IAC7BF,CAAC,CAAC,yHAAAE,2BAA2B;IAE7BF,CAAC,CAAC,2FAAAG,0CAA0C;IAC5CH,CAAC,CAAC,2FAAAG,0CAA0C;IAC5CH,CAAC,CAAC,2FAAAI,0CAA0C;IAC5CJ,CAAC,CAAC,2FAAAI,0CAA0C","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["test","f","function1indifferentpackage","function2indifferentpackage","function1incompilationunitwithpythonmodule","function2incompilationunitwithpythonmodule"],"mappings":"AAAA;;;;;;;;;AAOA,IAASA,IAAI;IACTC,CAAC,CAAC,yHAAAC,2BAA2B;IAC7BD,CAAC,CAAC,yHAAAC,2BAA2B;IAC7BD,CAAC,CAAC,yHAAAE,2BAA2B;IAC7BF,CAAC,CAAC,yHAAAE,2BAA2B;IAE7BF,CAAC,CAAC,2FAAAG,0CAA0C;IAC5CH,CAAC,CAAC,2FAAAG,0CAA0C;IAC5CH,CAAC,CAAC,2FAAAI,0CAA0C;IAC5CJ,CAAC,CAAC,2FAAAI,0CAA0C","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 4675cb26a..5a925f6a3 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 @@ -1,6 +1,7 @@ # Imports ---------------------------------------------------------------------- import safeds_runner +from tests.generator.assignmentWithRunnerIntegration import f1, f2, g # Segments --------------------------------------------------------------------- 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 24e2e88df..348cc804d 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.sdstest"],"names":["testsegment","g","_","c","f1","a","x","testpipeline","l","m","n","f2"],"mappings":"AAAA;;;;;;AA2BA,IAAQA,WAAW;IACLC,CAAC;IACX,GAAOC,CAAC,EAAE,YAAMC,CAAC,GAAGF,CAAC;IACrB,UAAQA,CAAC;IACTG,EAAE,CAACC,CAAC;IACJD,EAAE,CAACE,CAAC;IALc,OAAG;;;;AApBzB,IAASC,YAAY;IACPN,CAAC;IACX,GAAOC,CAAC,EAAEA,CAAC,GAAGD,CAAC;IAAf;IACA,UAAQA,CAAC;IAAT;IACAG,EAAE,CAACC,CAAC;IACJD,EAAE,CAACE,CAAC;IACJ,GAAO,GAAO,IAAQL,CAAC;IAAvB;IAAO;IAAO;IACdG,EAAE,CAACI,CAAC;IACJJ,EAAE,CAACK,CAAC;IACJL,EAAE,CAACM,CAAC;IAED;QACWT,CAAC;QACX,GAAOC,CAAC,EAAE,0BAAMC,CAAC,GAAGF,CAAC;QACrB,UAAQA,CAAC;QACTG,EAAE,CAACC,CAAC;QACJD,EAAE,CAACE,CAAC;QALL,OAEW,0BAAMH,CAAC;IAFrBQ,EAAE,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["testsegment","g","_","c","f1","a","x","testpipeline","l","m","n","f2"],"mappings":"AAAA;;;;;;;AA2BA,IAAQA,WAAW;IACLC,CAAC;IACX,GAAOC,CAAC,EAAE,YAAMC,CAAC,GAAGF,CAAC;IACrB,UAAQA,CAAC;IACTG,EAAE,CAACC,CAAC;IACJD,EAAE,CAACE,CAAC;IALc,OAAG;;;;AApBzB,IAASC,YAAY;IACPN,CAAC;IACX,GAAOC,CAAC,EAAEA,CAAC,GAAGD,CAAC;IAAf;IACA,UAAQA,CAAC;IAAT;IACAG,EAAE,CAACC,CAAC;IACJD,EAAE,CAACE,CAAC;IACJ,GAAO,GAAO,IAAQL,CAAC;IAAvB;IAAO;IAAO;IACdG,EAAE,CAACI,CAAC;IACJJ,EAAE,CAACK,CAAC;IACJL,EAAE,CAACM,CAAC;IAED;QACWT,CAAC;QACX,GAAOC,CAAC,EAAE,0BAAMC,CAAC,GAAGF,CAAC;QACrB,UAAQA,CAAC;QACTG,EAAE,CAACC,CAAC;QACJD,EAAE,CAACE,CAAC;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 fcb3062b1..0e7147235 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 @@ -1,3 +1,7 @@ +# Imports ---------------------------------------------------------------------- + +from tests.generator.assignment.main import f1, f2, g + # Segments --------------------------------------------------------------------- def testSegment(): 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 cdcaac21d..89fab56e8 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.sdstest"],"names":["testsegment","g","_","c","f1","a","x","testpipeline","l","m","n","f2"],"mappings":"AAAA;;AA2BA,IAAQA,WAAW;IACLC,CAAC;IACX,GAAOC,CAAC,EAAE,YAAMC,CAAC,GAAGF,CAAC;IACrB,UAAQA,CAAC;IACTG,EAAE,CAACC,CAAC;IACJD,EAAE,CAACE,CAAC;IALc,OAAG;;;;AApBzB,IAASC,YAAY;IACPN,CAAC;IACX,GAAOC,CAAC,EAAEA,CAAC,GAAGD,CAAC;IACf,UAAQA,CAAC;IACTG,EAAE,CAACC,CAAC;IACJD,EAAE,CAACE,CAAC;IACJ,GAAO,GAAO,IAAQL,CAAC;IACvBG,EAAE,CAACI,CAAC;IACJJ,EAAE,CAACK,CAAC;IACJL,EAAE,CAACM,CAAC;IAED;QACWT,CAAC;QACX,GAAOC,CAAC,EAAE,0BAAMC,CAAC,GAAGF,CAAC;QACrB,UAAQA,CAAC;QACTG,EAAE,CAACC,CAAC;QACJD,EAAE,CAACE,CAAC;QALL,OAEW,0BAAMH,CAAC;IAFrBQ,EAAE,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["testsegment","g","_","c","f1","a","x","testpipeline","l","m","n","f2"],"mappings":"AAAA;;;;;;AA2BA,IAAQA,WAAW;IACLC,CAAC;IACX,GAAOC,CAAC,EAAE,YAAMC,CAAC,GAAGF,CAAC;IACrB,UAAQA,CAAC;IACTG,EAAE,CAACC,CAAC;IACJD,EAAE,CAACE,CAAC;IALc,OAAG;;;;AApBzB,IAASC,YAAY;IACPN,CAAC;IACX,GAAOC,CAAC,EAAEA,CAAC,GAAGD,CAAC;IACf,UAAQA,CAAC;IACTG,EAAE,CAACC,CAAC;IACJD,EAAE,CAACE,CAAC;IACJ,GAAO,GAAO,IAAQL,CAAC;IACvBG,EAAE,CAACI,CAAC;IACJJ,EAAE,CAACK,CAAC;IACJL,EAAE,CAACM,CAAC;IAED;QACWT,CAAC;QACX,GAAOC,CAAC,EAAE,0BAAMC,CAAC,GAAGF,CAAC;QACrB,UAAQA,CAAC;QACTG,EAAE,CAACC,CAAC;QACJD,EAAE,CAACE,CAAC;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 8b2f913ff..5020b6ce2 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 @@ -1,3 +1,7 @@ +# Imports ---------------------------------------------------------------------- + +from tests.generator.assignment.rhsIsClassCall import MyClass1 + # Pipelines -------------------------------------------------------------------- def testPipeline(): 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 9dbae004c..cafc25242 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.sdstest"],"names":["testpipeline","myclass1"],"mappings":"AAEA;;AAIA,IAASA,YAAY;IACjB,IAAQC,QAAQ","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["testpipeline","myclass1"],"mappings":"AAEA;;;;;;AAIA,IAASA,YAAY;IACjB,IAAQC,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 03cd89598..61b69f143 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 @@ -1,3 +1,7 @@ +# Imports ---------------------------------------------------------------------- + +from tests.generator.assignment.rhsIsEnumVariantCall import MyEnum1 + # Pipelines -------------------------------------------------------------------- def testPipeline(): 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 4166308ce..b6ab5c47b 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.sdstest"],"names":["testpipeline","myenum1","myenumvariant1"],"mappings":"AAEA;;AAMA,IAASA,YAAY;IACjB,IAAQC,OAAO,CAACC,cAAc,CAAC,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["testpipeline","myenum1","myenumvariant1"],"mappings":"AAEA;;;;;;AAMA,IAASA,YAAY;IACjB,IAAQC,OAAO,CAACC,cAAc,CAAC,CAAC","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/statements/expression statement/generated/tests/generator/expressionStatement/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/statements/expression statement/generated/tests/generator/expressionStatement/gen_input.py index 6c765f1b8..576988ad7 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/statements/expression statement/generated/tests/generator/expressionStatement/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/statements/expression statement/generated/tests/generator/expressionStatement/gen_input.py @@ -1,3 +1,7 @@ +# Imports ---------------------------------------------------------------------- + +from tests.generator.expressionStatement import f, g + # Segments --------------------------------------------------------------------- def testSegment(): diff --git a/packages/safe-ds-lang/tests/resources/generation/python/statements/expression statement/generated/tests/generator/expressionStatement/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/statements/expression statement/generated/tests/generator/expressionStatement/gen_input.py.map index 125a90e05..f961298e7 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/statements/expression statement/generated/tests/generator/expressionStatement/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/statements/expression statement/generated/tests/generator/expressionStatement/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdstest"],"names":["testsegment","g","testpipeline","f"],"mappings":"AAAA;;AAcA,IAAQA,WAAW;IACfC,CAAC;;;;AATL,IAASC,YAAY;IACjBD,CAAC;IAEC;QACEA,CAAC;IADLE,CAAC,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["testsegment","g","testpipeline","f"],"mappings":"AAAA;;;;;;AAcA,IAAQA,WAAW;IACfC,CAAC;;;;AATL,IAASC,YAAY;IACjBD,CAAC;IAEC;QACEA,CAAC;IADLE,CAAC,CAAC","file":"gen_input.py"} \ No newline at end of file diff --git a/packages/safe-ds-lang/tests/resources/generation/python/statements/statement without effect/generated/tests/generator/statementWithoutEffect/gen_input.py b/packages/safe-ds-lang/tests/resources/generation/python/statements/statement without effect/generated/tests/generator/statementWithoutEffect/gen_input.py index 2f7a730f9..d6023189b 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/statements/statement without effect/generated/tests/generator/statementWithoutEffect/gen_input.py +++ b/packages/safe-ds-lang/tests/resources/generation/python/statements/statement without effect/generated/tests/generator/statementWithoutEffect/gen_input.py @@ -1,3 +1,7 @@ +# Imports ---------------------------------------------------------------------- + +from tests.generator.statementWithoutEffect import f + # Segments --------------------------------------------------------------------- def testSegment(): diff --git a/packages/safe-ds-lang/tests/resources/generation/python/statements/statement without effect/generated/tests/generator/statementWithoutEffect/gen_input.py.map b/packages/safe-ds-lang/tests/resources/generation/python/statements/statement without effect/generated/tests/generator/statementWithoutEffect/gen_input.py.map index 65d34c1e3..1f5371931 100644 --- a/packages/safe-ds-lang/tests/resources/generation/python/statements/statement without effect/generated/tests/generator/statementWithoutEffect/gen_input.py.map +++ b/packages/safe-ds-lang/tests/resources/generation/python/statements/statement without effect/generated/tests/generator/statementWithoutEffect/gen_input.py.map @@ -1 +1 @@ -{"version":3,"sources":["input.sdstest"],"names":["testsegment","testpipeline","f"],"mappings":"AAAA;;AAcA,IAAQA,WAAW;IAAG;;;;AAVtB,IAASC,YAAY;IAIf;QAAG;IAALC,CAAC,CAAC","file":"gen_input.py"} \ No newline at end of file +{"version":3,"sources":["input.sdstest"],"names":["testsegment","testpipeline","f"],"mappings":"AAAA;;;;;;AAcA,IAAQA,WAAW;IAAG;;;;AAVtB,IAASC,YAAY;IAIf;QAAG;IAALC,CAAC,CAAC","file":"gen_input.py"} \ No newline at end of file