Skip to content

Latest commit

 

History

History
117 lines (114 loc) · 2.52 KB

effects.md

File metadata and controls

117 lines (114 loc) · 2.52 KB
["foo", "bar"].map(function(s) { return s.charCodeAt(0); }); //: [number]

var b = [];
b.push(true);
b; //: [bool]

var c = [];
c.push("hi");
c.push(10);
c; //: [string|number]

var d;
function setD(a) { d = a; }
setD.call(null, 55);
d; //: number
[
  {
    "id": "f08ff470-7aee-11e6-871d-4fb0cfe57ac9",
    "name": "b",
    "addr": "/b/",
    "kind": "v",
    "type": "[bool]",
    "lineno": 3,
    "origin": {
      "!span": "79[2:4]-80[2:5]",
      "!type": "[bool]",
      "!data": {
        "isConstructor": false,
        "type": "Array.prototype"
      }
    },
    "tagfile": "__DIR__/effects.js"
  },
  {
    "id": "f090b7c0-7aee-11e6-871d-4fb0cfe57ac9",
    "name": "c",
    "addr": "/c/",
    "kind": "v",
    "type": "[string|number]",
    "lineno": 7,
    "origin": {
      "!span": "120[6:4]-121[6:5]",
      "!type": "[string|number]",
      "!data": {
        "isConstructor": false,
        "type": "Array.prototype"
      }
    },
    "tagfile": "__DIR__/effects.js"
  },
  {
    "id": "f090b7c1-7aee-11e6-871d-4fb0cfe57ac9",
    "name": "d",
    "addr": "/d/",
    "kind": "v",
    "type": "number",
    "lineno": 12,
    "origin": {
      "!span": "182[11:4]-183[11:5]",
      "!type": "number",
      "!data": {
        "isConstructor": false,
        "type": "Number.prototype"
      }
    },
    "tagfile": "__DIR__/effects.js"
  },
  {
    "id": "f090ded0-7aee-11e6-871d-4fb0cfe57ac9",
    "name": "setD",
    "addr": "/setD/",
    "kind": "f",
    "type": "void function(number)",
    "lineno": 13,
    "origin": {
      "!span": "194[12:9]-198[12:13]",
      "!type": "fn(a: number)",
      "!data": {
        "isConstructor": false,
        "type": "Function.prototype"
      }
    },
    "tagfile": "__DIR__/effects.js"
  },
  {
    "id": "f090ded1-7aee-11e6-871d-4fb0cfe57ac9",
    "name": "a",
    "addr": "/a/",
    "kind": "v",
    "type": "number",
    "lineno": 13,
    "namespace": "setD",
    "parent": "f090ded0-7aee-11e6-871d-4fb0cfe57ac9",
    "origin": {
      "!span": "199[12:14]-200[12:15]",
      "!type": "number",
      "!data": {
        "isConstructor": false,
        "scoped": true,
        "isArg": true,
        "type": "Number.prototype"
      }
    },
    "tagfile": "__DIR__/effects.js"
  }
]
b	__DIR__/effects.js	/b/;"	v	lineno:3	type:[bool]
c	__DIR__/effects.js	/c/;"	v	lineno:7	type:[string|number]
d	__DIR__/effects.js	/d/;"	v	lineno:12	type:number
setD	__DIR__/effects.js	/setD/;"	f	lineno:13	type:void function(number)
a	__DIR__/effects.js	/a/;"	v	lineno:13	namespace:setD	type:number