MCPcopy Index your code
hub / github.com/nodejs/node / getTypeOfPrototypeProperty

Function getTypeOfPrototypeProperty

test/fixtures/snapshot/typescript.js:55698–55705  ·  view source on GitHub ↗
(prototype)

Source from the content-addressed store, hash-verified

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);

Calls 4

getDeclaredTypeOfSymbolFunction · 0.85
getParentOfSymbolFunction · 0.85
createTypeReferenceFunction · 0.85
mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…