Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Commit

Permalink
keep sources in Param pexprs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwarth committed Dec 18, 2017
1 parent 878da68 commit bf1d175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pexprs-introduceParams.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ pexprs.Apply.prototype.introduceParams = function(formals) {
// TODO: Should this be supported? See issue #64.
throw new Error('Parameterized rules cannot be passed as arguments to another rule.');
}
return new pexprs.Param(index);
return new pexprs.Param(index).withSource(this.source);
} else {
this.args.forEach(function(arg, idx, args) {
args[idx] = arg.introduceParams(formals);
Expand Down

0 comments on commit bf1d175

Please sign in to comment.