File tree 4 files changed +6
-8
lines changed
4 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -210,9 +210,8 @@ export class ValidationEnhancer {
210
210
continue ;
211
211
}
212
212
213
- localName = rootSymbol . localName ;
214
-
215
213
collectorEntity = collector . tryGetCollectorEntity ( rootSymbol ) ;
214
+ localName = collectorEntity ?. nameForEmit || rootSymbol . localName ;
216
215
217
216
const referencedMetadata : SymbolMetadata = collector . fetchSymbolMetadata ( referencedEntity ) ;
218
217
referencedReleaseTag = referencedMetadata . maxEffectiveReleaseTag ;
@@ -222,7 +221,7 @@ export class ValidationEnhancer {
222
221
// TODO: Currently the "import * as ___ from ___" syntax does not yet support doc comments
223
222
referencedReleaseTag = ReleaseTag . Public ;
224
223
225
- localName = referencedEntity . localName ;
224
+ localName = collectorEntity ?. nameForEmit || referencedEntity . localName ;
226
225
} else {
227
226
continue ;
228
227
}
@@ -233,7 +232,7 @@ export class ValidationEnhancer {
233
232
ExtractorMessageId . IncompatibleReleaseTags ,
234
233
`The symbol "${ astDeclaration . astSymbol . localName } "` +
235
234
` is marked as ${ ReleaseTag . getTagName ( declarationReleaseTag ) } ,` +
236
- ` but its signature references "${ referencedEntity . localName } "` +
235
+ ` but its signature references "${ localName } "` +
237
236
` which is marked as ${ ReleaseTag . getTagName ( referencedReleaseTag ) } ` ,
238
237
astDeclaration
239
238
) ;
Original file line number Diff line number Diff line change 4
4
5
5
``` ts
6
6
7
- // Warning: (ae-forgotten-export) The symbol "Promise " needs to be exported by the entry point index.d.ts
7
+ // Warning: (ae-forgotten-export) The symbol "Promise_2 " needs to be exported by the entry point index.d.ts
8
8
//
9
9
// @public (undocumented)
10
10
export function ambientNameConflict(p1 : Promise <void >, p2 : Promise_2 <void >): void ;
Original file line number Diff line number Diff line change 9
9
// (undocumented)
10
10
type AnotherForgottenExport = number ;
11
11
12
- // Warning: (ae-forgotten-export) The symbol "DuplicateName " needs to be exported by the entry point index.d.ts
12
+ // Warning: (ae-forgotten-export) The symbol "DuplicateName_2 " needs to be exported by the entry point index.d.ts
13
13
//
14
14
// @public (undocumented)
15
15
export function anotherFunction(): DuplicateName_2 ;
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ export class ForgottenExportConsumer1 {
110
110
111
111
// @public (undocumented)
112
112
export class ForgottenExportConsumer2 {
113
- // Warning: (ae-forgotten-export) The symbol "IForgottenExport " needs to be exported by the entry point index.d.ts
113
+ // Warning: (ae-forgotten-export) The symbol "IForgottenExport_2 " needs to be exported by the entry point index.d.ts
114
114
//
115
115
// (undocumented)
116
116
test2(): IForgottenExport_2 | undefined ;
@@ -203,5 +203,4 @@ export const VARIABLE: string;
203
203
// @public
204
204
export function virtual(target : Object , propertyKey : string | symbol , descriptor : TypedPropertyDescriptor <any >): void ;
205
205
206
-
207
206
```
You can’t perform that action at this time.
0 commit comments