parseExprFromFile -> evalFile

parseExprFromFile() should be avoided since it doesn't cache anything.
This commit is contained in:
Eelco Dolstra 2018-01-16 17:11:58 +01:00
parent ba75c69e00
commit 23fa7e3606
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -30,10 +30,8 @@ Value * SourceExprCommand::getSourceExpr(EvalState & state)
vSourceExpr = state.allocValue();
if (file != "") {
Expr * e = state.parseExprFromFile(resolveExprPath(lookupFileArg(state, file)));
state.eval(e, *vSourceExpr);
}
if (file != "")
state.evalFile(lookupFileArg(state, file), *vSourceExpr);
else {