mirror of
https://github.com/github/semantic.git
synced 2024-11-25 11:04:00 +03:00
Assign patch ranges to Diff.Pures.
This commit is contained in:
parent
c3e740ab8e
commit
f1d60da274
@ -232,7 +232,11 @@
|
||||
}
|
||||
|
||||
function Diff(json, a, b) {
|
||||
if (json.pure != null) { this.pure = patch(json.pure, a, b); }
|
||||
if (json.pure != null) {
|
||||
this.pure = patch(json.pure, a, b);
|
||||
this.range = this.pure.range;
|
||||
this.source = this.pure.source;
|
||||
}
|
||||
if (json.roll != null) {
|
||||
this.ranges = json.roll.extract;
|
||||
this.sources = { "a": a, "b": b };
|
||||
|
Loading…
Reference in New Issue
Block a user