Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ private void checkAssignment(Statement current, (Assignable) `<QualifiedName nam
if(c.isAlreadyDefined("<name>", name)){
c.use(name, variableRoles);
} else {
c.define(base, variableId(), name, defLub([statement],
c.define(base, variableId(), name, defType([statement],
AType(Solver s){
// TODO: this seemingly redundant call is needed; suspicion: the interpreter does not
// handle the combination of return and possible exception thrown by s.getType properly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ import util::FileSystem;
import util::Reflective;
import lang::rascalcore::compile::util::Names;
import analysis::typepal::StringSimilarity;
import analysis::typepal::LocationChecks;

import IO;
import List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ public PathConfig getAllSrcREPOPathConfig(bool keep = false) {
REPO + "typepal/src",
LSP_REPO + "src/main/rascal/library",
LSP_REPO + "src/main/rascal/lsp",
LSP_REPO + "src/test/rascal"
LSP_REPO + "src/test/rascal",
REPO + "php-analysis/src/main/rascal"
],
[ ],
keep=keep);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import Message;
import String;
import IO;
import Location;
import analysis::typepal::LocationChecks;

// WARNING: this module is sensitive to bootstrapping dependencies and implicit contracts:
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import lang::rascalcore::check::NameUtils;
import lang::rascalcore::compile::Rascal2muRascal::TmpAndLabel;

import Location;
import analysis::typepal::LocationChecks;

import lang::rascalcore::check::BasicRascalConfig;
import lang::rascalcore::check::BuiltinFields;
Expand Down Expand Up @@ -267,7 +268,7 @@ private loc findContainer(Define d){
}
return cscope;
}

str findDefiningModule(loc l){
for(ms <- module_scopes,isContainedIn(l, ms, current_tmodel.logical2physical)){
return definitions[ms].id;
Expand Down
Loading