* Support template literals in enum declarations * Support template literals in const enum access * Support template literals in swith with typeof narrowing * Support template literals in element access discriminant * Support template literals in ambient module declaration * Unify symbols for template literals in computed properties * Unify expression position checks for template literals * Support template literals in rename and find all references * Mark computed properties with template literals as write access * Inline startsWithQuote
20 lines
304 B
TypeScript
20 lines
304 B
TypeScript
declare module Foo {
|
|
enum Bar {
|
|
a = `1`,
|
|
b = '2',
|
|
c = '3'
|
|
}
|
|
|
|
export const a = 'string';
|
|
export const b = `template`;
|
|
|
|
export const c = Bar.a;
|
|
export const d = Bar['b'];
|
|
export const e = Bar[`c`];
|
|
}
|
|
|
|
Foo.a;
|
|
Foo.b;
|
|
Foo.c;
|
|
Foo.d;
|
|
Foo.e; |