(ts, doc, name)
| 155 | } |
| 156 | |
| 157 | function findDoc(ts, doc, name) { |
| 158 | for (var n in ts.docs) { |
| 159 | var cur = ts.docs[n]; |
| 160 | if (cur.doc == doc) return cur; |
| 161 | } |
| 162 | if (!name) for (var i = 0;; ++i) { |
| 163 | n = "[doc" + (i || "") + "]"; |
| 164 | if (!ts.docs[n]) { name = n; break; } |
| 165 | } |
| 166 | return ts.addDoc(name, doc); |
| 167 | } |
| 168 | |
| 169 | function resolveDoc(ts, id) { |
| 170 | if (typeof id == "string") return ts.docs[id]; |
no outgoing calls
no test coverage detected