1
1
mirror of https://github.com/github/semantic.git synced 2024-11-25 11:04:00 +03:00

Don’t be gross.

This commit is contained in:
Rob Rix 2015-10-23 13:32:54 -04:00
parent b03bacbcf2
commit 968980e17b

View File

@ -67,12 +67,9 @@
return this;
}
function Term(json, source) {
this.source = source;
function Term(json) {
this.range = json.extract;
this.syntax = syntax(json.unwrap, function(x) { return new Term(x, source); });
this.syntax.source = source;
this.syntax.range = this.range;
this.syntax = syntax(json.unwrap, function(x) { return new Term(x); });
return this;
}