Lines Matching refs:ancestors
324 // and in order. The ancestors of those elements are ignored.
335 // Walk up the ancestors chain looking for the constant
337 var i, ii, ancestors;
341 ancestors = $ancestors(cref);
343 for (i = 0, ii = ancestors.length; i < ii; i++) {
344 if (ancestors[i].$$const && $has_own(ancestors[i].$$const, name)) {
345 return ancestors[i].$$const[name];
346 } else if (ancestors[i].$$autoload && ancestors[i].$$autoload[name]) {
347 return handle_autoload(ancestors[i], name);
352 // Walk up Object's ancestors chain looking for the constant,
423 // cref ancestors or call `#const_missing` (when the constant has no :: prefix).
495 if (inherit) modules = modules.concat($ancestors(cref));
496 …if (inherit && cref.$$is_module) modules = modules.concat([Opal.Object]).concat($ancestors(Opal.Ob…
607 $prop(klass, '$$ancestors', []);
616 // and inject it into ancestors chain
774 $prop(module, '$$ancestors', [module]);
932 var exclude = [], results = [], ancestors = $ancestors(mod);
934 for (var i = 0, l = ancestors.length; i < l; i++) {
935 var ancestor = ancestors[i],
1008 // and its ancestors.
1013 var ancestors = $ancestors(module),
1014 i, length = ancestors.length,
1018 var ancestor = ancestors[i];
1035 var ancestors = $ancestors(module),
1036 i, length = ancestors.length;
1039 var ancestor = ancestors[i];
1060 var ancestors = $ancestors(module),
1061 i, length = ancestors.length;
1064 var ancestor = ancestors[i];
1140 var module_ancestors = $ancestors(module);
1152 var includer_ancestors = $ancestors(includer),
1165 // we don't need to put it into the ancestors chain again,
1169 // The simplest way is to replace ancestors chain from
1230 // Here we change the ancestors chain from
1245 var module_ancestors = $ancestors(module);
1284 var prepender_ancestors = $ancestors(prepender);
1443 // The Array of ancestors for a given module/class
1444 function $ancestors(module) {
1448 return module.$$ancestors;
1458 for (i = 0, mods = $ancestors(module.$$super), length = mods.length; i < length; i++) {
1464 module.$$ancestors = result;
1467 } Opal.ancestors = $ancestors;
1601 return $ancestors(obj.$$meta);
1603 return $ancestors(obj.$$class);
1608 var jsid = $jsid(mid), ancestors, super_method;
1610 ancestors = get_ancestors(obj);
1612 var current_index = ancestors.indexOf(current_func.$$owner);
1614 for (var i = current_index + 1; i < ancestors.length; i++) {
1615 var ancestor = ancestors[i],
1737 …var ancestors = $ancestors(object.$$is_class ? Opal.get_singleton_class(object) : (object.$$meta |…
1739 return ancestors.indexOf(klass) !== -1;
1926 var i, j, k, ancestors, ancestor, refinements, refinement, refine_modules, refine_module, body;
1928 ancestors = get_ancestors(recv);
1930 // For all ancestors that there are, starting from the closest to the furthest...
1931 for (i = 0; i < ancestors.length; i++) {
1932 ancestor = Opal.id(ancestors[i]);
3292 ancestors,
3299 for (i = 0, ancestors = Opal.ancestors(self), length = ancestors.length; i < length; i++) {
3300 if (ancestors[i] === other) {
3305 for (i = 0, ancestors = Opal.ancestors(other), length = ancestors.length; i < length; i++) {
3306 if (ancestors[i] === self) {
3383 $def(self, '$ancestors', function $$ancestors() {
3386 return Opal.ancestors(self);
3519 var ancestors = self.$ancestors();
3521 for (var i = 0, length = ancestors.length; i < length; i++) {
3522 …if (ancestors[i].$$autoload && ancestors[i].$$autoload[const$] && !ancestors[i].$$autoload[const$]…
3523 return ancestors[i].$$autoload[const$].path;
3618 // Add up ancestors if inherit is true
3620 modules = modules.concat(Opal.ancestors(self));
3622 // Add Object's ancestors if it's a module – modules have no ancestors otherwise
3624 modules = modules.concat([$Object]).concat(Opal.ancestors($Object));
3808 var i, ii, mod2, ancestors = Opal.ancestors(self);
3810 for (i = 0, ii = ancestors.length; i < ii; i++) {
3811 mod2 = ancestors[i];
3975 // Give up if any of the ancestors is unnamed