File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -7539,13 +7539,14 @@ export function getCheckFlags(symbol: Symbol): CheckFlags {
7539
7539
7540
7540
/** @internal */
7541
7541
export function getDeclarationModifierFlagsFromSymbol ( s : Symbol , isWrite = false ) : ModifierFlags {
7542
- if ( s . valueDeclaration ) {
7542
+ const checkFlags = getCheckFlags ( s ) ;
7543
+ if ( ! ( checkFlags & CheckFlags . ReverseMapped ) && s . valueDeclaration ) {
7543
7544
const declaration = ( isWrite && s . declarations && find ( s . declarations , isSetAccessorDeclaration ) )
7544
7545
|| ( s . flags & SymbolFlags . GetAccessor && find ( s . declarations , isGetAccessorDeclaration ) ) || s . valueDeclaration ;
7545
7546
const flags = getCombinedModifierFlags ( declaration ) ;
7546
7547
return s . parent && s . parent . flags & SymbolFlags . Class ? flags : flags & ~ ModifierFlags . AccessibilityModifier ;
7547
7548
}
7548
- if ( getCheckFlags ( s ) & CheckFlags . Synthetic ) {
7549
+ if ( checkFlags & CheckFlags . Synthetic ) {
7549
7550
// NOTE: potentially unchecked cast to TransientSymbol
7550
7551
const checkFlags = ( s as TransientSymbol ) . links . checkFlags ;
7551
7552
const accessModifier = checkFlags & CheckFlags . ContainsPrivate ? ModifierFlags . Private :
You can’t perform that action at this time.
0 commit comments