private RubyModule TryResolveConstantNoAutoloadCheck(bool inherited, string/*!*/ name, out ConstantStorage value) { Context.RequiresClassHierarchyLock(); var storage = default(ConstantStorage); RubyModule owner = null; if (ForEachAncestor(inherited, (module) => (owner = module).TryGetConstantNoAutoloadCheck(name, out storage))) { value = storage; return owner; } else { value = storage; return null; } }