public IdContainer GetCommonContainer(IdContainer Container) { if (Container == this || Container.IsSubContainerOf(this)) { return(this); } else if (Parent != null) { return(Parent.GetCommonContainer(Container)); } else { return(null); } }
public void ResetOutside(IdContainer Container) { var FS = Container.FunctionScope; for (var i = 0; i < RouteData.Length; i++) { if (RouteData[i].Assigned) { var C = FS.LocalIdentifiers[i].Container; if (C != Container && !Container.IsSubContainerOf(C)) { RouteData[i].Assigned = false; i--; } } } }