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