Skip to content

Commit fa934f4

Browse files
authored
Merge pull request #2648 from usethesource/fix/check-ignored-test
Fix/check ignored test
2 parents c381470 + 5b96142 commit fa934f4

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@
458458
<dependency>
459459
<groupId>org.rascalmpl</groupId>
460460
<artifactId>typepal</artifactId>
461-
<version>0.16.3</version>
461+
<version>0.16.4</version>
462462
<!-- <scope>provided</scope> for shade plugin it can't be provided. At least the rascal dependency in typepal should be provided -->
463463
<scope>compile</scope>
464464
</dependency>

src/org/rascalmpl/compiler/lang/rascalcore/check/CollectDeclaration.rsc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ void collect(current: (FunctionDeclaration) `<FunctionDeclaration decl>`, Collec
265265
ppfname = prettyPrintName(fname);
266266
modifiers = ["<m>" | m <- signature.modifiers.modifiers];
267267
tagsMap = getTags(decl.tags);
268-
if(ignoreCompiler(tagsMap)) {
268+
if(ignoreCompiler(tagsMap) && "test" notin modifiers) {
269269
c.report(info(fname, "Ignoring function declaration for `<decl.signature.name>`"));
270270
return;
271271
}

src/org/rascalmpl/compiler/lang/rascalcore/compile/Rascal2muRascal/TypeUtils.rsc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ import lang::rascalcore::check::NameUtils;
4444
import lang::rascalcore::compile::Rascal2muRascal::TmpAndLabel;
4545

4646
import Location;
47-
import analysis::typepal::LocationChecks;
4847

4948
import lang::rascalcore::check::BasicRascalConfig;
5049
import lang::rascalcore::check::BuiltinFields;
@@ -54,8 +53,7 @@ import lang::rascalcore::check::AType;
5453
import lang::rascalcore::check::ATypeUtils;
5554

5655
import lang::rascalcore::check::ATypeInstantiation;
57-
58-
56+
import analysis::typepal::LocationChecks;
5957

6058
/*
6159
* This module provides a bridge to the "TModel" delivered by the type checker
@@ -268,7 +266,7 @@ private loc findContainer(Define d){
268266
}
269267
return cscope;
270268
}
271-
269+
272270
str findDefiningModule(loc l){
273271
for(ms <- module_scopes,isContainedIn(l, ms, current_tmodel.logical2physical)){
274272
return definitions[ms].id;

0 commit comments

Comments
 (0)