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:
parent
f8f82a6b16
commit
9d3a6b9ec6
@ -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; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user