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

Add values for patches.

This commit is contained in:
Rob Rix 2015-10-21 15:50:06 -04:00
parent f8f82a6b16
commit 9d3a6b9ec6

View File

@ -53,6 +53,22 @@
return node;
}
function Delete(before) {
this.before = before;
return this;
}
function Insert(after) {
this.after = after;
return this;
}
function Replace(before, after) {
this.before = before;
this.after = after;
return this;
}
function term(term, element) {
if (term.extract == null || term.unwrap == null) { return; }