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

Function getFlowTypeOfProperty

test/fixtures/snapshot/typescript.js:56149–56155  ·  view source on GitHub ↗
(reference, prop)

Source from the content-addressed store, hash-verified

56147 return everyType(flowType, isNullableType) ? undefined : convertAutoToAny(flowType);
56148 }
56149 function getFlowTypeOfProperty(reference, prop) {
56150 var initialType = (prop === null || prop === void 0 ? void 0 : prop.valueDeclaration)
56151 && (!isAutoTypedProperty(prop) || ts.getEffectiveModifierFlags(prop.valueDeclaration) & 2 /* ModifierFlags.Ambient */)
56152 && getTypeOfPropertyInBaseClass(prop)
56153 || undefinedType;
56154 return getFlowTypeOfReference(reference, autoType, initialType);
56155 }
56156 function getWidenedTypeForAssignmentDeclaration(symbol, resolvedSymbol) {
56157 // function/class/{} initializers are themselves containers, so they won't merge in the same way as other initializers
56158 var container = ts.getAssignedExpandoInitializer(symbol.valueDeclaration);

Callers 3

getFlowTypeInConstructorFunction · 0.85

Calls 3

isAutoTypedPropertyFunction · 0.85
getFlowTypeOfReferenceFunction · 0.85

Tested by

no test coverage detected