(namespaceSymbol, entityName, isToplevel, isPrototypeProperty, containerIsClass)
| 47366 | bindPropertyAssignment(node.expression, node, /*isPrototypeProperty*/ false, /*containerIsClass*/ false); |
| 47367 | } |
| 47368 | function bindPotentiallyMissingNamespaces(namespaceSymbol, entityName, isToplevel, isPrototypeProperty, containerIsClass) { |
| 47369 | if ((namespaceSymbol === null || namespaceSymbol === void 0 ? void 0 : namespaceSymbol.flags) & 2097152 /* SymbolFlags.Alias */) { |
| 47370 | return namespaceSymbol; |
| 47371 | } |
| 47372 | if (isToplevel && !isPrototypeProperty) { |
| 47373 | // make symbols or add declarations for intermediate containers |
| 47374 | var flags_2 = 1536 /* SymbolFlags.Module */ | 67108864 /* SymbolFlags.Assignment */; |
| 47375 | var excludeFlags_1 = 110735 /* SymbolFlags.ValueModuleExcludes */ & ~67108864 /* SymbolFlags.Assignment */; |
| 47376 | namespaceSymbol = forEachIdentifierInEntityName(entityName, namespaceSymbol, function (id, symbol, parent) { |
| 47377 | if (symbol) { |
| 47378 | addDeclarationToSymbol(symbol, id, flags_2); |
| 47379 | return symbol; |
| 47380 | } |
| 47381 | else { |
| 47382 | var table = parent ? parent.exports : |
| 47383 | file.jsGlobalAugmentations || (file.jsGlobalAugmentations = ts.createSymbolTable()); |
| 47384 | return declareSymbol(table, parent, id, flags_2, excludeFlags_1); |
| 47385 | } |
| 47386 | }); |
| 47387 | } |
| 47388 | if (containerIsClass && namespaceSymbol && namespaceSymbol.valueDeclaration) { |
| 47389 | addDeclarationToSymbol(namespaceSymbol, namespaceSymbol.valueDeclaration, 32 /* SymbolFlags.Class */); |
| 47390 | } |
| 47391 | return namespaceSymbol; |
| 47392 | } |
| 47393 | function bindPotentiallyNewExpandoMemberToNamespace(declaration, namespaceSymbol, isPrototypeProperty) { |
| 47394 | if (!namespaceSymbol || !isExpandoSymbol(namespaceSymbol)) { |
| 47395 | return; |
no test coverage detected
searching dependent graphs…