TypeScript/tests/baselines/reference/extractConstant/extractConstant_PinnedCommentAndDocComment.js

16 lines
No EOL
237 B
TypeScript

// ==ORIGINAL==
/*! Copyright */
/* About x */
const x = /*[#|*/2 + 1/*|]*/;
// ==SCOPE::Extract to constant in enclosing scope==
/*! Copyright */
const newLocal = 2 + 1;
/* About x */
const x = /*RENAME*/newLocal;