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
8 changes: 5 additions & 3 deletions bird-core/src/main/rascal/lang/bird/Checker.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -1007,8 +1007,10 @@ void collectInfixOperation(Tree current, str op, AType (AType,AType) infixFun, T
}

// ---- Examples & Tests --------------------------------
TModel birdTModelFromTree(Tree pt, bool debug = false, bool testing=false, PathConfig pathConf = pathConfig(pt.src)){
if (pt has top) pt = pt.top;
TModel birdTModelFromTree(start[Program] pt, bool debug = false, bool testing=false, PathConfig pathConf = pathConfig(pt.src))
= birdTModelFromTree(pt.top, debug=debug, testing=testing, pathConf=pathConf);

default TModel birdTModelFromTree(Tree pt, bool debug = false, bool testing=false, PathConfig pathConf = pathConfig(pt.src)){
c = newCollector("collectAndSolve", pt, getBirdConfig(debug = debug)); // TODO get more meaningfull name
c.push(TESTING, testing);
//println("Bird: Version 1.0");
Expand Down Expand Up @@ -1097,4 +1099,4 @@ void runTests(loc target = |project://bird-nescio-tests/bird-src|, PathConfig pc
' Typechecking: <tcErrors>
' Other: <otherErrors>
");
}
}