1
1
mirror of https://github.com/github/semantic.git synced 2024-11-29 02:44:36 +03:00

Keep the sources.

This commit is contained in:
Rob Rix 2015-10-23 11:02:37 -04:00
parent 00970c03ee
commit 7b8d3747de

View File

@ -227,6 +227,7 @@
if (json.pure != null) { this.pure = patch(json.pure, a, b); } if (json.pure != null) { this.pure = patch(json.pure, a, b); }
if (json.roll != null) { if (json.roll != null) {
this.ranges = json.extract; this.ranges = json.extract;
this.sources = [ a, b ];
this.roll = syntax(json.roll.unwrap, function(x) { return new Diff(x, a, b); }); this.roll = syntax(json.roll.unwrap, function(x) { return new Diff(x, a, b); });
} }
return this; return this;