@@ -10,7 +10,15 @@ import { ReflectionKind } from "./kind.js";
10
10
import { Comment , type CommentDisplayPart } from "./Comment.js" ;
11
11
import { ReflectionSymbolId } from "./ReflectionSymbolId.js" ;
12
12
import type { Deserializer , JSONOutput , Serializer } from "#serialization" ;
13
- import { assertNever , DefaultMap , i18n , type NormalizedPath , removeIfPresent , StableKeyMap } from "#utils" ;
13
+ import {
14
+ assertNever ,
15
+ DefaultMap ,
16
+ i18n ,
17
+ NonEnumerable ,
18
+ type NormalizedPath ,
19
+ removeIfPresent ,
20
+ StableKeyMap ,
21
+ } from "#utils" ;
14
22
import type { DocumentReflection } from "./DocumentReflection.js" ;
15
23
import type { FileRegistry } from "./FileRegistry.js" ;
16
24
@@ -28,18 +36,24 @@ export class ProjectReflection extends ContainerReflection {
28
36
readonly variant = "project" ;
29
37
30
38
// Used to resolve references.
39
+ @NonEnumerable
31
40
private symbolToReflectionIdMap : Map <
32
41
ReflectionSymbolId ,
33
42
number | number [ ]
34
43
> = new StableKeyMap ( ) ;
35
44
45
+ @NonEnumerable
36
46
private reflectionIdToSymbolIdMap = new Map < number , ReflectionSymbolId > ( ) ;
37
47
48
+ @NonEnumerable
38
49
private removedSymbolIds = new StableKeyMap < ReflectionSymbolId , true > ( ) ;
39
50
40
51
// Maps a reflection ID to all references eventually referring to it.
52
+ @NonEnumerable
41
53
private referenceGraph ?: Map < number , number [ ] > ;
54
+
42
55
// Maps a reflection ID to all reflections with it as their parent.
56
+ @NonEnumerable
43
57
private reflectionChildren = new DefaultMap < number , number [ ] > ( ( ) => [ ] ) ;
44
58
45
59
/**
@@ -49,6 +63,7 @@ export class ProjectReflection extends ContainerReflection {
49
63
*
50
64
* This may be replaced with a `Map<number, Reflection>` someday.
51
65
*/
66
+ @NonEnumerable
52
67
reflections : { [ id : number ] : Reflection } = { } ;
53
68
54
69
/**
0 commit comments