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
nodeLinks.calculatedFlags |= NodeCheckFlags.BlockScopedBindingInLoop | NodeCheckFlags.CapturedBlockScopedBinding; // Can't set on all arbitrary nodes (these nodes have this flag set by `checkSingleBlockScopeBinding` only)
49585
+
if (isExpressionNodeOrShorthandPropertyAssignmentName(node) && !(isPropertyAccessExpression(node.parent) && node.parent.name === node)) {
Copy file name to clipboardExpand all lines: src/compiler/emitter.ts
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -961,6 +961,7 @@ export function emitFiles(
961
961
}
962
962
963
963
functionmarkLinkedReferences(file: SourceFile){
964
+
if(ts.isSourceFileJS(file))return;// JS files don't use reference calculations as they don't do import ellision, no need to calculate it
964
965
ts.forEachChildRecursively(file,n=>{
965
966
if(isImportEqualsDeclaration(n)&&!(ts.getSyntacticModifierFlags(n)&ts.ModifierFlags.Export))return"skip";// These are deferred and marked in a chain when referenced
966
967
if(ts.isImportDeclaration(n))return"skip";// likewise, these are ultimately what get marked by calls on other nodes - we want to skip them
0 commit comments