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

Function containerSeemsToBeEmptyDomElement

test/fixtures/snapshot/typescript.js:74932–74936  ·  view source on GitHub ↗
(containingType)

Source from the content-addressed store, hash-verified

74930 addErrorOrSuggestion(!isUncheckedJS || errorInfo.code !== ts.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code, resultDiagnostic);
74931 }
74932 function containerSeemsToBeEmptyDomElement(containingType) {
74933 return (compilerOptions.lib && !compilerOptions.lib.includes("dom")) &&
74934 everyContainedType(containingType, function (type) { return type.symbol && /^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(ts.unescapeLeadingUnderscores(type.symbol.escapedName)); }) &&
74935 isEmptyObjectType(containingType);
74936 }
74937 function typeHasStaticProperty(propName, containingType) {
74938 var prop = containingType.symbol && getPropertyOfType(getTypeOfSymbol(containingType.symbol), propName);
74939 return prop !== undefined && !!prop.valueDeclaration && ts.isStatic(prop.valueDeclaration);

Callers 1

Calls 4

everyContainedTypeFunction · 0.85
isEmptyObjectTypeFunction · 0.85
includesMethod · 0.80
testMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…