Skip to content
Merged
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
10 changes: 7 additions & 3 deletions src/org/rascalmpl/compiler/lang/rascalcore/check/Summary.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,13 @@ data ModuleSummary =
map[loc def, str synopsis] synopses = (),
map[loc def, loc docLoc] docLocs = ());

private map[loc from, str tp] getLocationTypes(TModel tm)
= (key : prettyAType(tm.specializedFacts[key] ? tm.facts[key]) | key <- tm.facts);

private map[loc from, str tp] getLocationTypes(TModel tm) {
// Share strings in memory to reduce summary memory pressure
@memo str cachedPrettyAType(AType tp) = prettyAType(tp);

return (key : cachedPrettyAType(tm.specializedFacts[key] ? tm.facts[key]) | key <- tm.facts);
}

ModuleSummary makeSummary(TModel tm, str qualifiedModuleName) {
if (!tm.usesPhysicalLocs) {
tm = convertTModel2PhysicalLocs(tm);
Expand Down
Loading