// Token: 0x0600124E RID: 4686 RVA: 0x000640E4 File Offset: 0x000622E4 internal IEnumerable <JToken> GetDescendants(bool self) { if (self) { yield return(this); } foreach (JToken o in this.ChildrenTokens) { yield return(o); JContainer jcontainer = o as JContainer; if (jcontainer != null) { foreach (JToken jtoken in jcontainer.Descendants()) { yield return(jtoken); } IEnumerator <JToken> enumerator2 = null; } o = null; } IEnumerator <JToken> enumerator = null; yield break; yield break; }
internal IEnumerable <JToken> GetDescendants(bool self) { if (self) { yield return(this); } IEnumerator <JToken> enumerator = this.ChildrenTokens.GetEnumerator(); while (enumerator.MoveNext()) { JToken current = enumerator.Current; yield return(current); JContainer container = current as JContainer; if (container != null) { foreach (JToken token in container.Descendants()) { yield return(token); } } current = null; } enumerator = null; }
static int Descendants(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); Newtonsoft.Json.Linq.JContainer obj = (Newtonsoft.Json.Linq.JContainer)ToLua.CheckObject <Newtonsoft.Json.Linq.JContainer>(L, 1); System.Collections.Generic.IEnumerable <Newtonsoft.Json.Linq.JToken> o = obj.Descendants(); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
/// <summary> /// Returns a collection of the descendant tokens for this token in document order. /// </summary> /// <returns>An <see cref="IEnumerable{JToken}"/> containing the descendant tokens of the <see cref="JToken"/>.</returns> public IEnumerable <JToken> Descendants() { foreach (JToken o in ChildrenTokens) { yield return(o); JContainer c = o as JContainer; if (c != null) { foreach (JToken d in c.Descendants()) { yield return(d); } } } }
public IEnumerable <JToken> Descendants() { foreach (JToken childrenToken in ChildrenTokens) { yield return(childrenToken); JContainer c = childrenToken as JContainer; if (c != null) { foreach (JToken item in c.Descendants()) { yield return(item); } } } }
public IEnumerable <JToken> Descendants() { foreach (JToken jtoken1 in (IEnumerable <JToken>) this.ChildrenTokens) { yield return(jtoken1); JContainer c = jtoken1 as JContainer; if (c != null) { foreach (JToken jtoken2 in c.Descendants()) { yield return(jtoken2); } } } }
public IEnumerable <JToken> Descendants() { foreach (JToken o in ChildrenTokens) { yield return(o); JContainer c = o as JContainer; if (c == null) { continue; } foreach (JToken item in c.Descendants()) { yield return(item); } } }
public IEnumerable <JToken> Descendants() { foreach (JToken current in this.ChildrenTokens) { yield return(current); JContainer jContainer = current as JContainer; if (jContainer != null) { foreach (JToken current2 in jContainer.Descendants()) { yield return(current2); } } } yield break; }
internal IEnumerable <JToken> GetDescendants(bool self) { if (self) { yield return(this); } foreach (JToken childrenToken in this.ChildrenTokens) { yield return(childrenToken); JContainer jContainers = childrenToken as JContainer; if (jContainers != null) { foreach (JToken jTokens in jContainers.Descendants()) { yield return(jTokens); } } } }
internal IEnumerable <JToken> GetDescendants(bool self) { if (self) { yield return(this); } foreach (JToken o in ChildrenTokens) { yield return(o); JContainer c = o as JContainer; if (c != null) { foreach (JToken d in c.Descendants()) { yield return(d); } } } }