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
Copy file name to clipboardExpand all lines: src/compiler/transformers/declarations.ts
+3-3
Original file line number
Diff line number
Diff line change
@@ -817,7 +817,7 @@ namespace ts {
817
817
while(length(lateMarkedStatements)){
818
818
consti=lateMarkedStatements!.shift()!;
819
819
if(!isLateVisibilityPaintedStatement(i)){
820
-
returnDebug.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${(tsasany).SyntaxKind ? (tsasany).SyntaxKind[(iasany).kind] : (iasany).kind}`);
820
+
returnDebug.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${Debug.formatSyntaxKind((iasNode).kind)}`);
Copy file name to clipboardExpand all lines: src/compiler/transformers/declarations/diagnostics.ts
+2-2
Original file line number
Diff line number
Diff line change
@@ -157,7 +157,7 @@ namespace ts {
157
157
returngetTypeAliasDeclarationVisibilityError;
158
158
}
159
159
else{
160
-
returnDebug.assertNever(node,`Attempted to set a declaration diagnostic context for unhandled node kind: ${(tsasany).SyntaxKind[(nodeasany).kind]}`);
160
+
returnDebug.assertNever(node,`Attempted to set a declaration diagnostic context for unhandled node kind: ${Debug.formatSyntaxKind((nodeasNode).kind)}`);
0 commit comments