(prototype)
| 55696 | }).parent; |
| 55697 | } |
| 55698 | function getTypeOfPrototypeProperty(prototype) { |
| 55699 | // TypeScript 1.0 spec (April 2014): 8.4 |
| 55700 | // Every class automatically contains a static property member named 'prototype', |
| 55701 | // the type of which is an instantiation of the class type with type Any supplied as a type argument for each type parameter. |
| 55702 | // It is an error to explicitly declare a static property member with the name 'prototype'. |
| 55703 | var classType = getDeclaredTypeOfSymbol(getParentOfSymbol(prototype)); |
| 55704 | return classType.typeParameters ? createTypeReference(classType, ts.map(classType.typeParameters, function (_) { return anyType; })) : classType; |
| 55705 | } |
| 55706 | // Return the type of the given property in the given type, or undefined if no such property exists |
| 55707 | function getTypeOfPropertyOfType(type, name) { |
| 55708 | var prop = getPropertyOfType(type, name); |
no test coverage detected
searching dependent graphs…