protected virtual bool AllowReplace(int pattern, QilNode original) {
// If still matching patterns,
if (Matching) {
// Increment the replacement count
this.replacementCnt++;
// Save the id of this pattern in case it's the last
this.lastReplacement = pattern;
return true;
}
return false;
}