Closed

Description
I made a list of things I discovered while working on #13760.
-
Some tests don't have
isWriteAccess
when they shouldfindAllRefsParameterPropertyDeclaration1
(/2, /3):this.privateParam += 10
should be a write accessreferencesForNumericLiteralPropertyNames
: These should be write accesses if normally-named properties arereferencesForStringLiteralPropertyNames
(/4): Same as abovereferencesForClassParameter
: All should be write accesseslocalGetReferences
(e.g.fooCls.clsSVar++
)getOccurrencesIsDefinitionOfComputedProperty
: definition should be a write accessreferenceInParameterPropertyDeclaration
remoteGetReferences
-
Some tests have multiple groups with identical definitions.
findAllRefsForObjectLiteralProperties
findAllRefsOnDefinition
: r1findAllRefsWithLeadingUnderscoreNames1
(/2, /3, /4)findAllRefsWithShorthandPropertyAssignment
: r4findAllRefsWithShorthandPropertyAssignment2
: r3referencesForInheritedProperties
: r3referencesForInheritedProperties2
: r3referencesForInheritedProperties4
: r1referencesForObjectLiteralProperties
referencesForPropertiesOfGenericTypes
ambientShorthandFindAllRefs
getReferencesAtPosition
getOccurrencesIsDefinitionOfStringNamedProperty
referencesForClassParameter
referencesForClassLocal
referencesBloomFilters
(/2)getOccurrencesIsDefinitionOfNumberNamedProperty
cancellationWhenFindingAllRefsOnDefinition
referencesForClassMembers
: m2
-
Some tests have a different ordering of merged declarations depending on where you start.
(Maybe this is fine.)findAllRefsForDefaultExport03
findAllRefsInheritedProperties1
findAllRefsInheritedProperties3
(seer6
)referencesBloomFilters
(/2)
-
Other
findAllRefsForComputedProperties
:I[["prop1"]]
should be justI["prop1"]
.findAllRefsForMappedType
:
It's iffy that(property) a: string
only shows up when you're directly using it, and otherwise is grouped under(property) T.a: number
.findAllRefsObjectBindingElementPropertyName06
:r4
could be just one definitionfindAllRefsObjectBindingElementPropertyName07
:
The firsta
shouldn't be a write access (or a definition): it's just the property name we're destructuring from.p
is the definition.findAllRefsOnImportAliases2
: Inimport Class as C2
,Class
doesn't really deserve "isDefinition"findAllRefsThisKeyword
:
Wierd that "f0" and "f1" have different definitions. Same for "propDef" and "propUse".findAllRefsForObjectSpread
:
A2.a: number
should beA2.a?: number
referencesForContextuallyTypedUnionProperties
(/2):
Strange how most of them are considered A.common.referencesForEnums
:
Ifvalue1
is a write access,value2
should be tooreferencesForMergedDeclarations
: two of the definitions do not contain "interface Foo", why?renameDefaultImportDifferentName
:
"constructor C(): B" is iffy, since 'C' and 'B' are the same thinggetOccurrencesIsDefinitionOfComputedProperty
: Should work for r1 and r2referencesForClassMembersExtendingGenericClass
:
Wierd that for m1, it shows asBase<T>.method(): void