UNPKG

jsctags

Version:
643 lines (640 loc) 14.9 kB
```js var a = <a/>; var b = <n:a n:v />; var c = <a n:foo="bar"> {value} <b><c /></b></a>; var d = <a b={" "} c=" " d="&amp;" e="&ampr;" />; var e = <a />; var f = <日本語></日本語>; var g = <AbC-def test="&#x0026;&#38;"> bar baz </AbC-def>; var h = <a b={x ? <c /> : <d />} />; var i = <a>{}</a>; var j = <a>{/* this is a comment */}</a>; var k = <div>@test content</div>; var l = <div><br />7x invalid-js-identifier</div>; var m = <LeftRight left=<a /> right=<b>monkeys /> gorillas</b> />; var n = <a.b></a.b>; var o = <a.b.c></a.b.c>; var p = (<div />) < x;; var q = <div {...props} />; var r = <div {...props} post="attribute" />; var s = <div pre="leading" pre2="attribute" {...props}></div>; var t = <A aa={aa.bb.cc} bb={bb.cc.dd}><div>{aa.b}</div></A>; var u = <p>foo <a href="test"> bar</a> baz</p> ;; var v = <div>{<div {...test} />}</div>; var x = <div>{ {a} }</div>; var w = <div>/text</div>; var y = <div>{a}{b}</div>; var z = <div pre="leading" {...props} />; var ç = <path d="M230 80 A 45 45, 0, 1, 0, 275 125 L 275 80 Z"/>; var arr = [1, 2, 3].map(function(n) { return <a>{n}</a>; }); var f = function() { return <a></a>; }; ``` ```json [ { "id": "29502730-7aef-11e6-80b7-d14b8de28cbb", "name": "a", "addr": "/a/", "kind": "v", "type": "boolean", "lineno": 1, "origin": { "!span": "4[0:4]-5[0:5]", "!type": "bool", "!data": { "isConstructor": false, "type": "Boolean.prototype" } }, "tagfile": "__DIR__/react.jsx" }, { "id": "2950ea80-7aef-11e6-80b7-d14b8de28cbb", "name": "foo", "addr": "/foo/", "kind": "v", "type": "boolean", "lineno": 3, "origin": { "!span": "48[2:13]-51[2:16]", "!type": "bool", "!data": { "isConstructor": false, "type": "Boolean.prototype" } }, "tagfile": "__DIR__/react.jsx" }, { "id": "29507550-7aef-11e6-80b7-d14b8de28cbb", "name": "e", "addr": "/e/", "kind": "v", "type": "boolean", "lineno": 5, "origin": { "!span": "139[4:4]-140[4:5]", "!type": "bool", "!data": { "isConstructor": false, "type": "Boolean.prototype" } }, "tagfile": "__DIR__/react.jsx" }, { "id": "2950ea81-7aef-11e6-80b7-d14b8de28cbb", "name": "test", "addr": "/test/", "kind": "v", "type": "boolean", "lineno": 7, "origin": { "!span": "192[6:20]-196[6:24]", "!type": "bool", "!data": { "isConstructor": false, "type": "Boolean.prototype" } }, "tagfile": "__DIR__/react.jsx" }, { "id": "29507551-7aef-11e6-80b7-d14b8de28cbb", "name": "g", "addr": "/g/", "kind": "v", "type": "boolean", "lineno": 7, "origin": { "!span": "176[6:4]-177[6:5]", "!type": "bool", "!data": { "isConstructor": false, "type": "Boolean.prototype" } }, "tagfile": "__DIR__/react.jsx" }, { "id": "29507552-7aef-11e6-80b7-d14b8de28cbb", "name": "h", "addr": "/h/", "kind": "v", "type": "boolean", "lineno": 8, "origin": { "!span": "241[7:4]-242[7:5]", "!type": "bool", "!data": { "isConstructor": false, "type": "Boolean.prototype" } }, "tagfile": "__DIR__/react.jsx" }, { "id": "29507553-7aef-11e6-80b7-d14b8de28cbb", "name": "i", "addr": "/i/", "kind": "v", "type": "boolean", "lineno": 9, "origin": { "!span": "278[8:4]-279[8:5]", "!type": "bool", "!data": { "isConstructor": false, "type": "Boolean.prototype" } }, "tagfile": "__DIR__/react.jsx" }, { "id": "29507554-7aef-11e6-80b7-d14b8de28cbb", "name": "j", "addr": "/j/", "kind": "v", "type": "boolean", "lineno": 10, "origin": { "!span": "297[9:4]-298[9:5]", "!type": "bool", "!data": { "isConstructor": false, "type": "Boolean.prototype" } }, "tagfile": "__DIR__/react.jsx" }, { "id": "29507555-7aef-11e6-80b7-d14b8de28cbb", "name": "k", "addr": "/k/", "kind": "v", "type": "boolean", "lineno": 11, "origin": { "!span": "339[10:4]-340[10:5]", "!type": "bool", "!data": { "isConstructor": false, "type": "Boolean.prototype" } }, "tagfile": "__DIR__/react.jsx" }, { "id": "29507556-7aef-11e6-80b7-d14b8de28cbb", "name": "l", "addr": "/l/", "kind": "v", "type": "boolean", "lineno": 12, "origin": { "!span": "373[11:4]-374[11:5]", "!type": "bool", "!data": { "isConstructor": false, "type": "Boolean.prototype" } }, "tagfile": "__DIR__/react.jsx" }, { "id": "29507557-7aef-11e6-80b7-d14b8de28cbb", "name": "m", "addr": "/m/", "kind": "v", "type": "boolean", "lineno": 13, "origin": { "!span": "424[12:4]-425[12:5]", "!type": "bool", "!data": { "isConstructor": false, "type": "Boolean.prototype" } }, "tagfile": "__DIR__/react.jsx" }, { "id": "2950ea82-7aef-11e6-80b7-d14b8de28cbb", "name": "left", "addr": "/left/", "kind": "v", "type": "boolean", "lineno": 13, "origin": { "!span": "439[12:19]-443[12:23]", "!type": "bool", "!data": { "isConstructor": false, "type": "Boolean.prototype" } }, "tagfile": "__DIR__/react.jsx" }, { "id": "29509c60-7aef-11e6-80b7-d14b8de28cbb", "name": "n", "addr": "/n/", "kind": "v", "type": "boolean", "lineno": 14, "origin": { "!span": "491[13:4]-492[13:5]", "!type": "bool", "!data": { "isConstructor": false, "type": "Boolean.prototype" } }, "tagfile": "__DIR__/react.jsx" }, { "id": "29509c61-7aef-11e6-80b7-d14b8de28cbb", "name": "o", "addr": "/o/", "kind": "v", "type": "boolean", "lineno": 15, "origin": { "!span": "512[14:4]-513[14:5]", "!type": "bool", "!data": { "isConstructor": false, "type": "Boolean.prototype" } }, "tagfile": "__DIR__/react.jsx" }, { "id": "29509c62-7aef-11e6-80b7-d14b8de28cbb", "name": "p", "addr": "/p/", "kind": "v", "type": "boolean", "lineno": 16, "origin": { "!span": "537[15:4]-538[15:5]", "!type": "bool", "!data": { "isConstructor": false, "type": "Boolean.prototype" } }, "tagfile": "__DIR__/react.jsx" }, { "id": "29509c63-7aef-11e6-80b7-d14b8de28cbb", "name": "q", "addr": "/q/", "kind": "v", "type": "boolean", "lineno": 17, "origin": { "!span": "561[16:4]-562[16:5]", "!type": "bool", "!data": { "isConstructor": false, "type": "Boolean.prototype" } }, "tagfile": "__DIR__/react.jsx" }, { "id": "29509c64-7aef-11e6-80b7-d14b8de28cbb", "name": "r", "addr": "/r/", "kind": "v", "type": "boolean", "lineno": 18, "origin": { "!span": "589[17:4]-590[17:5]", "!type": "bool", "!data": { "isConstructor": false, "type": "Boolean.prototype" } }, "tagfile": "__DIR__/react.jsx" }, { "id": "2950ea83-7aef-11e6-80b7-d14b8de28cbb", "name": "post", "addr": "/post/", "kind": "v", "type": "boolean", "lineno": 18, "origin": { "!span": "609[17:24]-613[17:28]", "!type": "bool", "!data": { "isConstructor": false, "type": "Boolean.prototype" } }, "tagfile": "__DIR__/react.jsx" }, { "id": "2950ea85-7aef-11e6-80b7-d14b8de28cbb", "name": "pre2", "addr": "/pre2/", "kind": "v", "type": "string", "lineno": 19, "origin": { "!span": "657[18:27]-661[18:31]", "!type": "string", "!data": { "isConstructor": false, "type": "String.prototype" } }, "tagfile": "__DIR__/react.jsx" }, { "id": "2950ea84-7aef-11e6-80b7-d14b8de28cbb", "name": "pre", "addr": "/pre/", "kind": "v", "type": "string", "lineno": 19, "origin": { "!span": "643[18:13]-646[18:16]", "!type": "string", "!data": { "isConstructor": false, "type": "String.prototype" } }, "tagfile": "__DIR__/react.jsx" }, { "id": "29509c65-7aef-11e6-80b7-d14b8de28cbb", "name": "s", "addr": "/s/", "kind": "v", "type": "boolean", "lineno": 19, "origin": { "!span": "634[18:4]-635[18:5]", "!type": "bool", "!data": { "isConstructor": false, "type": "Boolean.prototype" } }, "tagfile": "__DIR__/react.jsx" }, { "id": "2950ea86-7aef-11e6-80b7-d14b8de28cbb", "name": "aa", "addr": "/aa/", "kind": "v", "lineno": 20, "origin": { "!span": "704[19:11]-706[19:13]", "!data": { "isConstructor": false, "type": "Object.prototype" } }, "tagfile": "__DIR__/react.jsx" }, { "id": "2950ea87-7aef-11e6-80b7-d14b8de28cbb", "name": "bb", "addr": "/bb/", "kind": "v", "type": "boolean", "lineno": 20, "origin": { "!span": "718[19:25]-720[19:27]", "!type": "bool", "!data": { "isConstructor": false, "type": "Boolean.prototype" } }, "tagfile": "__DIR__/react.jsx" }, { "id": "29509c66-7aef-11e6-80b7-d14b8de28cbb", "name": "t", "addr": "/t/", "kind": "v", "type": "boolean", "lineno": 20, "origin": { "!span": "697[19:4]-698[19:5]", "!type": "bool", "!data": { "isConstructor": false, "type": "Boolean.prototype" } }, "tagfile": "__DIR__/react.jsx" }, { "id": "2950ea88-7aef-11e6-80b7-d14b8de28cbb", "name": "href", "addr": "/href/", "kind": "v", "type": "boolean", "lineno": 21, "origin": { "!span": "773[20:18]-777[20:22]", "!type": "bool", "!data": { "isConstructor": false, "type": "Boolean.prototype" } }, "tagfile": "__DIR__/react.jsx" }, { "id": "2950c370-7aef-11e6-80b7-d14b8de28cbb", "name": "u", "addr": "/u/", "kind": "v", "type": "boolean", "lineno": 21, "origin": { "!span": "759[20:4]-760[20:5]", "!type": "bool", "!data": { "isConstructor": false, "type": "Boolean.prototype" } }, "tagfile": "__DIR__/react.jsx" }, { "id": "2950c371-7aef-11e6-80b7-d14b8de28cbb", "name": "v", "addr": "/v/", "kind": "v", "type": "boolean", "lineno": 22, "origin": { "!span": "809[21:4]-810[21:5]", "!type": "bool", "!data": { "isConstructor": false, "type": "Boolean.prototype" } }, "tagfile": "__DIR__/react.jsx" }, { "id": "2950c372-7aef-11e6-80b7-d14b8de28cbb", "name": "x", "addr": "/x/", "kind": "v", "type": "boolean", "lineno": 23, "origin": { "!span": "849[22:4]-850[22:5]", "!type": "bool", "!data": { "isConstructor": false, "type": "Boolean.prototype" } }, "tagfile": "__DIR__/react.jsx" }, { "id": "2950c373-7aef-11e6-80b7-d14b8de28cbb", "name": "w", "addr": "/w/", "kind": "v", "type": "boolean", "lineno": 24, "origin": { "!span": "877[23:4]-878[23:5]", "!type": "bool", "!data": { "isConstructor": false, "type": "Boolean.prototype" } }, "tagfile": "__DIR__/react.jsx" }, { "id": "2950c374-7aef-11e6-80b7-d14b8de28cbb", "name": "y", "addr": "/y/", "kind": "v", "type": "boolean", "lineno": 25, "origin": { "!span": "903[24:4]-904[24:5]", "!type": "bool", "!data": { "isConstructor": false, "type": "Boolean.prototype" } }, "tagfile": "__DIR__/react.jsx" }, { "id": "2950c375-7aef-11e6-80b7-d14b8de28cbb", "name": "z", "addr": "/z/", "kind": "v", "type": "boolean", "lineno": 26, "origin": { "!span": "930[25:4]-931[25:5]", "!type": "bool", "!data": { "isConstructor": false, "type": "Boolean.prototype" } }, "tagfile": "__DIR__/react.jsx" }, { "id": "2950c376-7aef-11e6-80b7-d14b8de28cbb", "name": "ç", "addr": "/ç/", "kind": "v", "type": "boolean", "lineno": 27, "origin": { "!span": "972[26:4]-973[26:5]", "!type": "bool", "!data": { "isConstructor": false, "type": "Boolean.prototype" } }, "tagfile": "__DIR__/react.jsx" }, { "id": "2950c377-7aef-11e6-80b7-d14b8de28cbb", "name": "arr", "addr": "/arr/", "kind": "v", "type": "[bool]", "lineno": 29, "origin": { "!span": "1052[28:4]-1055[28:7]", "!type": "[bool]", "!data": { "isConstructor": false, "type": "Array.prototype" } }, "tagfile": "__DIR__/react.jsx" } ] ``` ```ctags a __DIR__/react.jsx /a/;" v lineno:1 type:boolean foo __DIR__/react.jsx /foo/;" v lineno:3 type:boolean e __DIR__/react.jsx /e/;" v lineno:5 type:boolean test __DIR__/react.jsx /test/;" v lineno:7 type:boolean g __DIR__/react.jsx /g/;" v lineno:7 type:boolean h __DIR__/react.jsx /h/;" v lineno:8 type:boolean i __DIR__/react.jsx /i/;" v lineno:9 type:boolean j __DIR__/react.jsx /j/;" v lineno:10 type:boolean k __DIR__/react.jsx /k/;" v lineno:11 type:boolean l __DIR__/react.jsx /l/;" v lineno:12 type:boolean m __DIR__/react.jsx /m/;" v lineno:13 type:boolean left __DIR__/react.jsx /left/;" v lineno:13 type:boolean n __DIR__/react.jsx /n/;" v lineno:14 type:boolean o __DIR__/react.jsx /o/;" v lineno:15 type:boolean p __DIR__/react.jsx /p/;" v lineno:16 type:boolean q __DIR__/react.jsx /q/;" v lineno:17 type:boolean r __DIR__/react.jsx /r/;" v lineno:18 type:boolean post __DIR__/react.jsx /post/;" v lineno:18 type:boolean pre2 __DIR__/react.jsx /pre2/;" v lineno:19 type:string pre __DIR__/react.jsx /pre/;" v lineno:19 type:string s __DIR__/react.jsx /s/;" v lineno:19 type:boolean aa __DIR__/react.jsx /aa/;" v lineno:20 bb __DIR__/react.jsx /bb/;" v lineno:20 type:boolean t __DIR__/react.jsx /t/;" v lineno:20 type:boolean href __DIR__/react.jsx /href/;" v lineno:21 type:boolean u __DIR__/react.jsx /u/;" v lineno:21 type:boolean v __DIR__/react.jsx /v/;" v lineno:22 type:boolean x __DIR__/react.jsx /x/;" v lineno:23 type:boolean w __DIR__/react.jsx /w/;" v lineno:24 type:boolean y __DIR__/react.jsx /y/;" v lineno:25 type:boolean z __DIR__/react.jsx /z/;" v lineno:26 type:boolean ç __DIR__/react.jsx /ç/;" v lineno:27 type:boolean arr __DIR__/react.jsx /arr/;" v lineno:29 type:[bool] ```