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/types.ts
+11-10
Original file line number
Diff line number
Diff line change
@@ -3377,6 +3377,7 @@ namespace ts {
3377
3377
/* @internal */mergeId?: number;// Merge id (used to look up merged symbol)
3378
3378
/* @internal */parent?: Symbol;// Parent symbol
3379
3379
/* @internal */exportSymbol?: Symbol;// Exported symbol associated with this symbol
3380
+
/* @internal */nameType?: Type;// Type associated with a late-bound symbol
3380
3381
/* @internal */constEnumOnlyModule?: boolean;// True if module contains only const enums or other modules with only const enums
3381
3382
/* @internal */isReferenced?: SymbolFlags;// True if the symbol is referenced elsewhere. Keeps track of the meaning of a reference in case a symbol is both a type parameter and parameter.
3382
3383
/* @internal */isReplaceableByMethod?: boolean;// Can this Javascript class property be replaced by a method symbol?
originatingImport?: ImportDeclaration|ImportCall;// Import declaration which produced the symbol, present if the symbol is marked as uncallable but had call signatures in `resolveESModuleSymbol`
3413
3414
lateSymbol?: Symbol;// Late-bound symbol for a computed property
3414
-
nameType?: Type;// Type associate with a late-bound or mapped type property symbol's name
Copy file name to clipboardExpand all lines: tests/baselines/reference/computedPropertyNames30_ES5.types
+2-2
Original file line number
Diff line number
Diff line change
@@ -15,8 +15,8 @@ class C extends Base {
15
15
>() => { var obj = { // Ideally, we would capture this. But the reference is // illegal, and not capturing this is consistent with //treatment of other similar violations. [(super(), "prop")]() { } }; } : () => void
16
16
17
17
var obj = {
18
-
>obj : { [x: string]: () => void; }
19
-
>{ // Ideally, we would capture this. But the reference is // illegal, and not capturing this is consistent with //treatment of other similar violations. [(super(), "prop")]() { } } : { [x: string]: () => void; }
18
+
>obj : { [(super(), "prop")](): void; }
19
+
>{ // Ideally, we would capture this. But the reference is // illegal, and not capturing this is consistent with //treatment of other similar violations. [(super(), "prop")]() { } } : { [(super(), "prop")](): void; }
20
20
21
21
// Ideally, we would capture this. But the reference is
22
22
// illegal, and not capturing this is consistent with
Copy file name to clipboardExpand all lines: tests/baselines/reference/computedPropertyNames30_ES6.types
+2-2
Original file line number
Diff line number
Diff line change
@@ -15,8 +15,8 @@ class C extends Base {
15
15
>() => { var obj = { // Ideally, we would capture this. But the reference is // illegal, and not capturing this is consistent with //treatment of other similar violations. [(super(), "prop")]() { } }; } : () => void
16
16
17
17
var obj = {
18
-
>obj : { [x: string]: () => void; }
19
-
>{ // Ideally, we would capture this. But the reference is // illegal, and not capturing this is consistent with //treatment of other similar violations. [(super(), "prop")]() { } } : { [x: string]: () => void; }
18
+
>obj : { [(super(), "prop")](): void; }
19
+
>{ // Ideally, we would capture this. But the reference is // illegal, and not capturing this is consistent with //treatment of other similar violations. [(super(), "prop")]() { } } : { [(super(), "prop")](): void; }
20
20
21
21
// Ideally, we would capture this. But the reference is
22
22
// illegal, and not capturing this is consistent with
0 commit comments