Lines Matching refs:ancestors
315 // and in order. The ancestors of those elements are ignored.
326 // Walk up the ancestors chain looking for the constant
328 var i, ii, ancestors;
332 ancestors = $ancestors(cref);
334 for (i = 0, ii = ancestors.length; i < ii; i++) {
335 if (ancestors[i].$$const && $has_own(ancestors[i].$$const, name)) {
336 return ancestors[i].$$const[name];
337 } else if (ancestors[i].$$autoload && ancestors[i].$$autoload[name]) {
338 return handle_autoload(ancestors[i], name);
343 // Walk up Object's ancestors chain looking for the constant,
414 // cref ancestors or call `#const_missing` (when the constant has no :: prefix).
486 if (inherit) modules = modules.concat($ancestors(cref));
487 …if (inherit && cref.$$is_module) modules = modules.concat([Opal.Object]).concat($ancestors(Opal.Ob…
598 $prop(klass, '$$ancestors', []);
607 // and inject it into ancestors chain
765 $prop(module, '$$ancestors', [module]);
923 var exclude = [], results = [], ancestors = $ancestors(mod);
925 for (var i = 0, l = ancestors.length; i < l; i++) {
926 var ancestor = ancestors[i],
999 // and its ancestors.
1004 var ancestors = $ancestors(module),
1005 i, length = ancestors.length,
1009 var ancestor = ancestors[i];
1026 var ancestors = $ancestors(module),
1027 i, length = ancestors.length;
1030 var ancestor = ancestors[i];
1051 var ancestors = $ancestors(module),
1052 i, length = ancestors.length;
1055 var ancestor = ancestors[i];
1131 var module_ancestors = $ancestors(module);
1143 var includer_ancestors = $ancestors(includer),
1156 // we don't need to put it into the ancestors chain again,
1160 // The simplest way is to replace ancestors chain from
1221 // Here we change the ancestors chain from
1236 var module_ancestors = $ancestors(module);
1275 var prepender_ancestors = $ancestors(prepender);
1434 // The Array of ancestors for a given module/class
1435 function $ancestors(module) {
1439 return module.$$ancestors;
1449 for (i = 0, mods = $ancestors(module.$$super), length = mods.length; i < length; i++) {
1455 module.$$ancestors = result;
1458 } Opal.ancestors = $ancestors;
1592 return $ancestors(obj.$$meta);
1594 return $ancestors(obj.$$class);
1599 var jsid = $jsid(mid), ancestors, super_method;
1601 ancestors = get_ancestors(obj);
1603 var current_index = ancestors.indexOf(current_func.$$owner);
1605 for (var i = current_index + 1; i < ancestors.length; i++) {
1606 var ancestor = ancestors[i],
1728 …var ancestors = $ancestors(object.$$is_class ? Opal.get_singleton_class(object) : (object.$$meta |…
1730 return ancestors.indexOf(klass) !== -1;
1917 var i, j, k, ancestors, ancestor, refinements, refinement, refine_modules, refine_module, body;
1919 ancestors = get_ancestors(recv);
1921 // For all ancestors that there are, starting from the closest to the furthest...
1922 for (i = 0; i < ancestors.length; i++) {
1923 ancestor = Opal.id(ancestors[i]);
3283 ancestors,
3290 for (i = 0, ancestors = Opal.ancestors(self), length = ancestors.length; i < length; i++) {
3291 if (ancestors[i] === other) {
3296 for (i = 0, ancestors = Opal.ancestors(other), length = ancestors.length; i < length; i++) {
3297 if (ancestors[i] === self) {
3374 $def(self, '$ancestors', function $$ancestors() {
3377 return Opal.ancestors(self);
3510 var ancestors = self.$ancestors();
3512 for (var i = 0, length = ancestors.length; i < length; i++) {
3513 …if (ancestors[i].$$autoload && ancestors[i].$$autoload[const$] && !ancestors[i].$$autoload[const$]…
3514 return ancestors[i].$$autoload[const$].path;
3609 // Add up ancestors if inherit is true
3611 modules = modules.concat(Opal.ancestors(self));
3613 // Add Object's ancestors if it's a module – modules have no ancestors otherwise
3615 modules = modules.concat([$Object]).concat(Opal.ancestors($Object));
3799 var i, ii, mod2, ancestors = Opal.ancestors(self);
3801 for (i = 0, ii = ancestors.length; i < ii; i++) {
3802 mod2 = ancestors[i];
3966 // Give up if any of the ancestors is unnamed