(symbol, node, symbolFlags)
| 44799 | return new Symbol(flags, name); |
| 44800 | } |
| 44801 | function addDeclarationToSymbol(symbol, node, symbolFlags) { |
| 44802 | symbol.flags |= symbolFlags; |
| 44803 | node.symbol = symbol; |
| 44804 | symbol.declarations = ts.appendIfUnique(symbol.declarations, node); |
| 44805 | if (symbolFlags & (32 /* SymbolFlags.Class */ | 384 /* SymbolFlags.Enum */ | 1536 /* SymbolFlags.Module */ | 3 /* SymbolFlags.Variable */) && !symbol.exports) { |
| 44806 | symbol.exports = ts.createSymbolTable(); |
| 44807 | } |
| 44808 | if (symbolFlags & (32 /* SymbolFlags.Class */ | 64 /* SymbolFlags.Interface */ | 2048 /* SymbolFlags.TypeLiteral */ | 4096 /* SymbolFlags.ObjectLiteral */) && !symbol.members) { |
| 44809 | symbol.members = ts.createSymbolTable(); |
| 44810 | } |
| 44811 | // On merge of const enum module with class or function, reset const enum only flag (namespaces will already recalculate) |
| 44812 | if (symbol.constEnumOnlyModule && (symbol.flags & (16 /* SymbolFlags.Function */ | 32 /* SymbolFlags.Class */ | 256 /* SymbolFlags.RegularEnum */))) { |
| 44813 | symbol.constEnumOnlyModule = false; |
| 44814 | } |
| 44815 | if (symbolFlags & 111551 /* SymbolFlags.Value */) { |
| 44816 | ts.setValueDeclaration(symbol, node); |
| 44817 | } |
| 44818 | } |
| 44819 | // Should not be called on a declaration with a computed property name, |
| 44820 | // unless it is a well known Symbol. |
| 44821 | function getDeclarationName(node) { |
no outgoing calls
no test coverage detected
searching dependent graphs…