mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-23 17:30:04 -05:00
Allow moduleSymbolToValidIdentifier to be uppercase for JSX tags (#47625)
* Allow moduleSymbolToValidIdentifier to be uppercase for JSX tags * Cleaner way of getting the uppercase name when needed * Fix build errors, get rid of basically unnecessary ScriptTarget * More accurate name for parameter * Rename other parameter too * Fix failing test
This commit is contained in:
@@ -87,8 +87,8 @@ namespace ts.projectSystem {
|
||||
// transient symbols are recreated with every new checker.
|
||||
const programBefore = project.getCurrentProgram()!;
|
||||
let sigintPropBefore: readonly SymbolExportInfo[] | undefined;
|
||||
exportMapCache.forEach(bTs.path as Path, (info, name) => {
|
||||
if (name === "SIGINT") sigintPropBefore = info;
|
||||
exportMapCache.forEach(bTs.path as Path, (info, getSymbolName) => {
|
||||
if (getSymbolName() === "SIGINT") sigintPropBefore = info;
|
||||
});
|
||||
assert.ok(sigintPropBefore);
|
||||
assert.ok(sigintPropBefore![0].symbol.flags & SymbolFlags.Transient);
|
||||
@@ -113,8 +113,8 @@ namespace ts.projectSystem {
|
||||
|
||||
// Get same info from cache again
|
||||
let sigintPropAfter: readonly SymbolExportInfo[] | undefined;
|
||||
exportMapCache.forEach(bTs.path as Path, (info, name) => {
|
||||
if (name === "SIGINT") sigintPropAfter = info;
|
||||
exportMapCache.forEach(bTs.path as Path, (info, getSymbolName) => {
|
||||
if (getSymbolName() === "SIGINT") sigintPropAfter = info;
|
||||
});
|
||||
assert.ok(sigintPropAfter);
|
||||
assert.notEqual(symbolIdBefore, getSymbolId(sigintPropAfter![0].symbol));
|
||||
|
||||
Reference in New Issue
Block a user