File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,10 @@ namespace ts {
23
23
24
24
export function getMeaningFromDeclaration ( node : Node ) : SemanticMeaning {
25
25
switch ( node . kind ) {
26
- case SyntaxKind . Parameter :
27
26
case SyntaxKind . VariableDeclaration :
27
+ return isInJSFile ( node ) && getJSDocEnumTag ( node ) ? SemanticMeaning . All : SemanticMeaning . Value ;
28
+
29
+ case SyntaxKind . Parameter :
28
30
case SyntaxKind . BindingElement :
29
31
case SyntaxKind . PropertyDeclaration :
30
32
case SyntaxKind . PropertySignature :
Original file line number Diff line number Diff line change
1
+ /// <reference path='fourslash.ts' />
2
+
3
+ // @allowJs : true
4
+
5
+ // @Filename : /a.js
6
+ /////** @enum {string} */
7
+ ////const [|{| "isWriteAccess": true, "isDefinition": true |}E|] = { A: "" };
8
+ ////[|E|]["A"];
9
+ /////** @type {[|E|] } */
10
+ ////const e = [|E|].A;
11
+
12
+ verify . singleReferenceGroup (
13
+ `enum E
14
+ const E: {
15
+ A: string;
16
+ }` ) ;
You can’t perform that action at this time.
0 commit comments