##// END OF EJS Templates
Added Skip method to JSON parser to skip contents of the current node
cin -
r62:62b440d46313 default
parent child
Show More
@@ -250,6 +250,15 namespace Implab.JSON {
250 ~JSONParser() {
250 ~JSONParser() {
251 Dispose(false);
251 Dispose(false);
252 }
252 }
253
254 public void Skip() {
255 var level = Level-1;
256
257 Debug.Assert(level >= 0);
258
259 while (Level != level)
260 Read();
261 }
253 }
262 }
254
263
255 }
264 }
@@ -20,7 +20,7 namespace Implab.Parsing {
20 protected ContextFrame m_context;
20 protected ContextFrame m_context;
21 Stack<ContextFrame> m_contextStack = new Stack<ContextFrame>();
21 Stack<ContextFrame> m_contextStack = new Stack<ContextFrame>();
22
22
23 public int Level {
23 protected int Level {
24 get { return m_contextStack.Count; }
24 get { return m_contextStack.Count; }
25 }
25 }
26
26
General Comments 0
You need to be logged in to leave comments. Login now