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

Commit 0584cba

Browse files
committed
Made rascalTplVersion a configuration parameter
1 parent 8809ea5 commit 0584cba

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
eclipse.preferences.version=1
22
encoding//src/org/rascalmpl/core/library=UTF-8
3-
encoding//target/generated-test-sources=UTF-8
43
encoding/<project>=UTF-8
54
encoding/src=UTF-8
65
encoding/test=UTF-8

src/org/rascalmpl/core/library/lang/rascalcore/check/Import.rsc

+1-1
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ ModuleStatus doSaveModule(set[str] component, map[str,set[str]] m_imports, map[s
501501
filteredModuleScopes = {getModuleScope(m, moduleScopes, pcfg) | str m <- (qualifiedModuleName + imports), checked() in ms.status[m]} + extendedModuleScopes;
502502

503503
TModel m1 = tmodel();
504-
m1.rascalTplVersion = getCurrentRascalTplVersion();
504+
m1.rascalTplVersion = compilerConfig.rascalTplVersion;
505505
m1.modelName = qualifiedModuleName;
506506
m1.moduleLocs = (qualifiedModuleName : mscope);
507507

src/org/rascalmpl/core/library/lang/rascalcore/check/RascalConfig.rsc

+4
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,8 @@ data TModel (
432432
);
433433

434434
RascalCompilerConfig rascalCompilerConfig(PathConfig pcfg,
435+
436+
str rascalTplVersion = currentRascalTplVersion,
435437
// Control message levels
436438
bool warnUnused = true,
437439
bool warnUnusedFormals = true,
@@ -452,6 +454,8 @@ RascalCompilerConfig rascalCompilerConfig(PathConfig pcfg,
452454
bool forceCompilationTopModule= false
453455
)
454456
= tconfig(
457+
rascalTplVersion = rascalTplVersion,
458+
455459
// Compiler options
456460
warnUnused = warnUnused,
457461
warnUnusedFormals = warnUnusedFormals,

0 commit comments

Comments
 (0)