Skip to content

Commit fd5f6b1

Browse files
committed
merge fixup
1 parent 075930c commit fd5f6b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/ls/findallreferences.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,7 @@ func getReferencedSymbolsForModule(ctx context.Context, program *compiler.Progra
10851085
}
10861086

10871087
// Handle export equals declarations
1088-
exported := symbol.Exports[ast.InternalSymbolNameExportEquals]
1088+
exported := symbol.Exports.Get(ast.InternalSymbolNameExportEquals)
10891089
if exported != nil && len(exported.Declarations) > 0 {
10901090
for _, decl := range exported.Declarations {
10911091
sourceFile := ast.GetSourceFileOfNode(decl)
@@ -1393,7 +1393,7 @@ func getClassConstructorSymbol(classSymbol *ast.Symbol) *ast.Symbol {
13931393
if classSymbol.Members == nil {
13941394
return nil
13951395
}
1396-
return classSymbol.Members[ast.InternalSymbolNameConstructor]
1396+
return classSymbol.Members.Get(ast.InternalSymbolNameConstructor)
13971397
}
13981398

13991399
func hasOwnConstructor(classDeclaration *ast.ClassLikeDeclaration) bool {
@@ -1413,7 +1413,7 @@ func findOwnConstructorReferences(classSymbol *ast.Symbol, sourceFile *ast.Sourc
14131413
}
14141414

14151415
if classSymbol.Exports != nil {
1416-
for _, member := range classSymbol.Exports {
1416+
for _, member := range classSymbol.Exports.Iter() {
14171417
decl := member.ValueDeclaration
14181418
if decl != nil && decl.Kind == ast.KindMethodDeclaration {
14191419
body := decl.Body()

0 commit comments

Comments
 (0)