You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reduce polymorphism resulting from unstable Node shapes (#51682)
* Move .symbol to Declaration
* simplify some factories
* Move localSymbol to Declaration
* Ensure JSDocContainer types are properly initialized
* Move contextualType from Node to NodeLinks
* Move 'locals' and 'nextContainer' out of Node
* Move 'flowNode' out of 'Node'
* Pre-define endFlowNode/returnFlowNode
* Pre-define some SourceFile properties and a more stable cloneNode
* Don't add excess properties to type nodes in typeToTypeNode
* Refactor wrapSymbolTrackerToReportForContext to improve perf
// Use module/enum name itself if it is unique, otherwise make a unique variation
5801
-
returnisUniqueLocalName(name,node) ? name : makeUniqueName(name,isUniqueName,/*optimistic*/false,/*scoped*/false,/*privateName*/false,/*prefix*/"",/*suffix*/"");
5803
+
returnisUniqueLocalName(name,tryCast(node,canHaveLocals)) ? name : makeUniqueName(name,isUniqueName,/*optimistic*/false,/*scoped*/false,/*privateName*/false,/*prefix*/"",/*suffix*/"");
0 commit comments