(type, path)
| 368 | } |
| 369 | |
| 370 | function maybeInstance(type, path) { |
| 371 | if (type instanceof infer.Fn && /(?:^|\.)[A-Z][^\.]*$/.test(path)) { |
| 372 | var proto = type.getProp("prototype").getObjType(); |
| 373 | if (proto instanceof infer.Obj) return infer.getInstance(proto); |
| 374 | } |
| 375 | return type; |
| 376 | } |
| 377 | |
| 378 | function parseTypeOuter(scope, str, pos) { |
| 379 | pos = skipSpace(str, pos || 0); |
no outgoing calls
no test coverage detected
searching dependent graphs…