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