File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ namespace ts {
21
21
case SyntaxKind . PropertySignature :
22
22
case SyntaxKind . PropertyAssignment :
23
23
case SyntaxKind . ShorthandPropertyAssignment :
24
- case SyntaxKind . EnumMember :
25
24
case SyntaxKind . MethodDeclaration :
26
25
case SyntaxKind . MethodSignature :
27
26
case SyntaxKind . Constructor :
@@ -40,6 +39,7 @@ namespace ts {
40
39
case SyntaxKind . TypeLiteral :
41
40
return SemanticMeaning . Type ;
42
41
42
+ case SyntaxKind . EnumMember :
43
43
case SyntaxKind . ClassDeclaration :
44
44
return SemanticMeaning . Value | SemanticMeaning . Type ;
45
45
@@ -63,7 +63,7 @@ namespace ts {
63
63
case SyntaxKind . ImportDeclaration :
64
64
case SyntaxKind . ExportAssignment :
65
65
case SyntaxKind . ExportDeclaration :
66
- return SemanticMeaning . Value | SemanticMeaning . Type | SemanticMeaning . Namespace ;
66
+ return SemanticMeaning . All ;
67
67
68
68
// An external module can be a Value
69
69
case SyntaxKind . SourceFile :
Original file line number Diff line number Diff line change
1
+ /// <reference path="fourslash.ts"/>
2
+
3
+ ////enum E { [|{| "isWriteAccess": true, "isDefinition": true |}A|], B }
4
+ ////const e: E.[|A|] = E.[|A|];
5
+
6
+ verify . singleReferenceGroup ( "(enum member) E.A = 0" ) ;
You can’t perform that action at this time.
0 commit comments