Advertisement
axelrindle

Appearances of 'getProp' in atom-ternjs and tern

May 8th, 2019
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 6.10 KB | None | 0 0
  1. [~/repos/atom-ternjs] axel $ grep -rnw . -e 'getProp'
  2.  
  3. [~/repos/tern] axel $ grep -rnw . -e 'getProp'
  4. ./doc/manual.html:1600:<a id="infer.Type.getProp"></a><code>type.getProp(prop: string) → AVal</code>
  5. ./doc/manual.txt:988:[[infer.Type.getProp]]`type.getProp(prop: string) → AVal`:: Get an
  6. ./lib/tern.js:483:            var prop = inObject.type.getProp(inObject.prop);
  7. ./lib/condense.js:136:        reachByName(this.getProp(String(i)), path, String(i), state);
  8. ./lib/condense.js:138:      reachByName(this.getProp("<i>"), path, "<i>", state);
  9. ./lib/condense.js:252:    if (!this.tuple) return "[" + typeName(this.getProp("<i>")) + "]";
  10. ./lib/condense.js:255:      content.push(typeName(this.getProp(String(i))));
  11. ./lib/def.js:42:      return type.getProp(prop);
  12. ./lib/def.js:404:        var propVal = base.getProp(prop);
  13. ./lib/def.js:598:        tp.getProp("value").propagate(this.target);
  14. ./lib/def.js:600:        tp.getProp("get").propagate(new infer.IsCallee(infer.ANull, [], null, this.target));
  15. ./lib/def.js:651:      var content = arr.getProp("<i>");
  16. ./lib/def.js:693:        tp.getProp(":t").propagate(this.output);
  17. ./lib/def.js:709:      ty.getProp(":t").propagate(value, WG_PROMISE_KEEP_VALUE);
  18. ./lib/infer.js:37:    getProp: function() { return ANull; },
  19. ./lib/infer.js:99:    getProp: function(prop) {
  20. ./lib/infer.js:235:      var innerA = a.getProp("<i>").getType(false);
  21. ./lib/infer.js:237:      var innerB = b.getProp("<i>").getType(false);
  22. ./lib/infer.js:296:        score = tp.getProp("<i>").isEmpty() ? 1 : 2;
  23. ./lib/infer.js:326:      if (type.getProp)
  24. ./lib/infer.js:327:        type.getProp(this.prop).propagate(this.target, weight);
  25. ./lib/infer.js:416:      obj.getProp(this.propName).propagate(callee, weight);
  26. ./lib/infer.js:428:      f.getProp("prototype").propagate(new IsProto(this.noReuse ? false : f, this.target), weight);
  27. ./lib/infer.js:540:    getProp: function(prop) {return this.proto.hasProp(prop) || ANull;},
  28. ./lib/infer.js:612:    getProp: function(prop) {
  29. ./lib/infer.js:640:        this.proto.getProp(prop).propagate(maybe);
  30. ./lib/infer.js:730:    getProp: function(prop) {
  31. ./lib/infer.js:741:      return Obj.prototype.getProp.call(this, prop);
  32. ./lib/infer.js:782:          var type = toString(this.getProp(String(i)), maxDepth - 1, this);
  33. ./lib/infer.js:793:        content = toString(this.getProp("<i>"), maxDepth - 1, this);
  34. ./lib/infer.js:1032:      target = asArray = targetInner.getProp("<i>");
  35. ./lib/infer.js:1271:        connectPattern(prop.value, scope, source.getProp(propName(prop)));
  36. ./lib/infer.js:1277:          connectPattern(node.elements[i], scope, source.getProp(String(i)));
  37. ./lib/infer.js:1296:    obj.propertyOf.getProp(obj.propertyName).addType(new Obj, WG_PHANTOM_OBJ);
  38. ./lib/infer.js:1310:        if (supCtor && (supProto = supCtor.getProp("prototype").getObjType())) {
  39. ./lib/infer.js:1314:          delayed = supVal.getProp("prototype");
  40. ./lib/infer.js:1453:      if (node.id) inner.getProp(node.id.name).addType(fn);
  41. ./lib/infer.js:1583:          tp.getProp(":t").propagate(out);
  42. ./lib/infer.js:1599:      infer(node.object, scope).getProp(name).propagate(out, wg);
  43. ./lib/infer.js:1608:      return scope.getProp(node.name);
  44. ./lib/infer.js:1673:      if (node.id) scope.getProp(node.id.name).addType(fn);
  45. ./lib/infer.js:1688:          var prop = scope.getProp(decl.id.name);
  46. ./lib/infer.js:1699:      else scope.getProp(node.id.name).addType(inferClass(node, scope, node.id.name));
  47. ./lib/infer.js:1720:            scope.getProp(pattern.name).iteratesOver = source;
  48. ./lib/infer.js:1721:          source.getProp("<i>").propagate(ensureVar(pattern, scope));
  49. ./lib/infer.js:1723:          connectPattern(pattern, scope, source.getProp("<i>"));
  50. ./lib/infer.js:1853:      var val = found[i].getProp(name);
  51. ./lib/infer.js:1952:      var proto = f && f.getProp("prototype").getObjType();
  52. ./lib/infer.js:1961:      if (obj) return obj.getProp(propN);
  53. ./lib/infer.js:1967:      if (obj) return obj.getProp(propN);
  54. ./lib/infer.js:2095:    ArrayExpression: function(parent, _, get) { return get(parent, true).getProp("<i>"); },
  55. ./lib/infer.js:2100:          return get(parent, true).getProp(propName(prop));
  56. ./plugin/doc_comment.js:68:                            scope.getProp(node.declarations[0].id.name));
  57. ./plugin/doc_comment.js:73:                            scope.getProp(node.id.name),
  58. ./plugin/doc_comment.js:79:                            scope.getProp(node.id.name),
  59. ./plugin/doc_comment.js:93:            interpretComments(prop, prop.commentsBefore, scope, node.objType.getProp(name));
  60. ./plugin/doc_comment.js:97:        var proto = node.objType.getProp("prototype").getObjType();
  61. ./plugin/doc_comment.js:105:            interpretComments(method, method.commentsBefore, scope, proto.getProp(name));
  62. ./plugin/doc_comment.js:120:                            scope.getProp(node.declaration.id.name),
  63. ./plugin/doc_comment.js:127:                            scope.getProp(node.declaration.id.name),
  64. ./plugin/doc_comment.js:371:      var proto = type.getProp("prototype").getObjType();
  65. ./plugin/doc_comment.js:447:                  parsed.type.propagate(value.type.getProp("<i>").getType().defProp(argname));
  66. ./plugin/doc_comment.js:516:        var proto = fn.getProp("prototype").getObjType();
  67. ./plugin/modules.js:137:        type = obj && obj.hasProp(prop) || type.getProp(prop);
  68. ./plugin/commonjs.js:15:    var module = new infer.Obj(defs.Module.getProp("prototype").getType());
  69. ./plugin/angular.js:51:    if (service.hasProp(name)) return service.getProp(name);
  70. ./plugin/angular.js:135:    return ngDefs && ngDefs.Module.getProp("prototype").getType();
  71. ./plugin/es_modules.js:32:          var aval = file.scope.getProp(spec.local.name);
  72. ./plugin/es_modules.js:36:            input.getProp("default").propagate(aval);
  73. ./plugin/es_modules.js:39:            input.getProp(spec.imported.name).propagate(aval);
  74. ./plugin/es_modules.js:60:                exp(cur.id.name, file.scope.getProp(cur.id.name), cur.id);
  75. ./plugin/es_modules.js:63:            exp(decl.id.name, file.scope.getProp(decl.id.name), decl.id);
  76. ./plugin/es_modules.js:70:            exp(spec.exported.name, src.getProp(spec.local.name), spec.local);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement