private static void GetAllChildren(this IJSCSGlue @this, bool includeMySelf, ISet <IJSCSGlue> res) { if (includeMySelf) { res.Add(@this); } foreach (var direct in @this.GetChildren().Where(res.Add)) { direct.GetAllChildren(false, res); } }
private void VisitUpdate(IJSCSGlue glue) { if (glue.JSValue != null) { return; } var updater = new JavascriptObjectSynchroneousBuilderAdapter(_Factory, _Cache, glue, _Mapping); updater.ApplyLocalChanges(); glue.GetChildren().ForEach(VisitUpdate); updater.AfterChildrenUpdates(); }
private static void GetAllChildren(this IJSCSGlue @this, bool IncludeMySelf, HashSet <IJSCSGlue> res) { if (IncludeMySelf) { res.Add(@this); } foreach (IJSCSGlue direct in @this.GetChildren()) { if (res.Add(direct)) { direct.GetAllChildren(false, res); } } }
private static void GetAllChildren(this IJSCSGlue @this, ISet <IJSCSGlue> res) { @this.GetChildren().Where(res.Add).ForEach(direct => direct.GetAllChildren(res)); }