protected virtual void ReplaceCurrent(JsToken token) { var x = CurrentNode; var node = Tokens.AddAfter(x, token); CurrentNode = node; Current = token; Tokens.Remove(x); }
protected void AddAfterCurrent(JsToken token) { //LogOp("AddAfterCurrent", token); var node = Tokens.AddAfter(CurrentNode, token); OnNodeAdded(node); }
protected virtual void AddBeforeCurrent(JsToken token) { //LogOp("AddBeforeCurrent", token); var node = Tokens.AddBefore(CurrentNode, token); OnNodeAdded(node); }
void NewLine() { Write(JsToken.NewLine()); }