Skip to content
Open
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
2 changes: 1 addition & 1 deletion src/analysis/typepal/Collector.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -1236,7 +1236,7 @@ default void collect(Tree currentTree, Collector c){
case "label":
{ p = currentTree.prod; collect(appl(prod(p.def.symbol, p.symbols, p.attributes/*, src=getLogicalLoc(currentTree)*/), currentTree.args), c); }
case "start":
{ p = currentTree.prod; collect(appl(prod(p.def.symbol, p.symbols, p.attributes/*, src=getLogicalLoc(currentTree)*/), currentTree.args), c); }
collect(currentTree.args[1], c);
Copy link
Copy Markdown
Member Author

@jurgenvinju jurgenvinju Apr 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here we make sure that in collectAndSolve down in TypePal.rsc we don't need to special-case for start/top

case "sort":
{ args = currentTree.args;
nargs = size(args);
Expand Down
1 change: 0 additions & 1 deletion src/analysis/typepal/TypePal.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ extend analysis::typepal::Version;
// collectAndSolve shorthand for a common, simple, scenario

TModel collectAndSolve(Tree pt, TypePalConfig config = tconfig(), str modelName = "no-name"){
if(pt has top) pt = pt.top;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this (type-incorrect) special case is not needed due to the default collect handler in Collector.rsc

c = newCollector(modelName, pt, config);
collect(pt, c);
return newSolver(pt, c.run()).run();
Expand Down
Loading