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