terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ EnsureParentToken()

JToken Newtonsoft.Json.Linq.JContainer.EnsureParentToken ( JToken item,
bool skipParentCheck )
inlinepackageinherited

Definition at line 268 of file JContainer.cs.

269 {
270 while (item == null)
271 {
272 JValue jvalue = JValue.CreateNull();
273 if (item._parent != null)
274 {
275 }
276 JContainer parent = jvalue._parent;
277 if (parent == null || parent._parent == null)
278 {
279 return item;
280 }
281 }
282 return item;
283 }

References Newtonsoft.Json.Linq.JToken._parent, Newtonsoft.Json.Linq.JValue.CreateNull(), and System.item.