coreRuntime/src/sc/sync/SyncManager.java
public SyncContext findSyncContextWithScope(int newScopeId) {
         if (scope.getScopeDefinition().scopeId == newScopeId)
            return this;
         if (parentContexts != null) {
            for (SyncContext parentContext:parentContexts) {
               SyncContext res = parentContext.findSyncContextWithScope(newScopeId);
               if (res != null)
                  return res;
            }
         }
         return null;
      }
/** Looking for a scope that's either this scope or one that's reachable via it's parentContexts */
Looking for a scope that's either this scope or one that's reachable via it's parentContexts
Looking for a scope that ' s either this scope or one that ' s reachable via it ' s parentContexts
public SyncContext findSyncContextWithScope(int newScopeId) {
         if (scope.getScopeDefinition().scopeId == newScopeId)
            return this;
         if (parentContexts != null) {
            for (SyncContext parentContext:parentContexts) {
               SyncContext res = parentContext.findSyncContextWithScope(newScopeId);
               if (res != null)
                  return res;
            }
         }
         return null;
      }
public SyncContext findSyncContextWithScope ( int newScopeId ) { if ( scope . getScopeDefinition ( ) . scopeId == newScopeId ) return this ; if ( parentContexts != null ) { for ( SyncContext parentContext : parentContexts ) { SyncContext res = parentContext . findSyncContextWithScope ( newScopeId ) ; if ( res != null ) return res ; } } return null ; }
Looking for a scope that's either this scope or one that's reachable via it's parentContexts
Looking for a scope that ' s either this scope or one that ' s reachable via it ' s parentContexts