Skip to content

Commit

Permalink
Fixed incorrect default for defaultLogicalLoc
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulKlint committed Feb 26, 2024
1 parent 7254d5c commit c78b74c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
7 changes: 0 additions & 7 deletions doc/TypePal/Configuration/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,13 +257,6 @@ A function `postSolver` that can enrich or transform the TModel after constraint
```
A function `normalizeName` to define language-specific escape rules for names. By default, all backslashes are removed from names.

#### validateConstraints
```rascal
/* Configuration field */ bool validateConstraints = true
```
When `validateConstraints` is true, the validity of all constraints is checked before solving starts.
For all dependencies (in facts, calculators and requirements) a calculator needs to be present to solve that dependency.

#### createLogicalLoc
```rascal
/* Configuration field */ loc (Define def, str modelName, PathConfig pcfg) createLogicalLoc
Expand Down
10 changes: 2 additions & 8 deletions src/analysis/typepal/ConfigurableScopeGraph.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ str reduceToURIChars(str s){
}
loc defaultLogicalLoc(Define def, str modelName, PathConfig _pcfg){
path = def.defined.path;
return |<"<modelName>+<prettyRole(def.idRole)>">://<path>/<reduceToURIChars(def.id)>|;
return def.defined; // retrun original and don't create logical loction
}
// Extends TypePalConfig defined in analysis::typepal::ScopeGraph
Expand All @@ -85,12 +84,7 @@ data TypePalConfig(
data TypePalConfig(
bool verbose = false,
//bool logTime = false,
//bool logSolverIterations = false,
//bool logAttempts = false,
//bool logTModel = false,
//bool validateConstraints = true,
//set[IdRole] roleNeedslogicalLoc = {},
PathConfig typepalPathConfig = pathConfig(),
AType() getMinAType
Expand Down

0 comments on commit c78b74c

Please sign in to comment.