Skip to content

Commit 3c51428

Browse files
committed
update
1 parent 8be0f5a commit 3c51428

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

internal/compiler/fileloader.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,14 +189,14 @@ func processAllProgramFiles(
189189
for _, resolutions := range resolvedModules {
190190
for _, resolvedModule := range resolutions {
191191
for _, diag := range resolvedModule.ResolutionDiagnostics {
192-
fileLoadDiagnostics.Add(&diag)
192+
fileLoadDiagnostics.Add(diag)
193193
}
194194
}
195195
}
196196
for _, typeResolutions := range typeResolutionsInFile {
197197
for _, resolvedTypeRef := range typeResolutions {
198198
for _, diag := range resolvedTypeRef.ResolutionDiagnostics {
199-
fileLoadDiagnostics.Add(&diag)
199+
fileLoadDiagnostics.Add(diag)
200200
}
201201
}
202202
}
@@ -205,7 +205,7 @@ func processAllProgramFiles(
205205
resolvedModules[key] = value
206206
for _, resolvedModule := range value {
207207
for _, diag := range resolvedModule.ResolutionDiagnostics {
208-
fileLoadDiagnostics.Add(&diag)
208+
fileLoadDiagnostics.Add(diag)
209209
}
210210
}
211211
return true

internal/compiler/parsetask.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type parseTask struct {
2222
metadata ast.SourceFileMetaData
2323
resolutionsInFile module.ModeAwareCache[*module.ResolvedModule]
2424
typeResolutionsInFile module.ModeAwareCache[*module.ResolvedTypeReferenceDirective]
25-
resolutionDiagnostics []ast.Diagnostic
25+
resolutionDiagnostics []*ast.Diagnostic
2626
importHelpersImportSpecifier *ast.Node
2727
jsxRuntimeImportSpecifier *jsxRuntimeImportSpecifier
2828
increaseDepth bool

internal/module/resolver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ type resolutionState struct {
5454
resolvedPackageDirectory bool
5555
failedLookupLocations []string
5656
affectingLocations []string
57-
diagnostics []ast.Diagnostic
57+
diagnostics []*ast.Diagnostic
5858
}
5959

6060
func newResolutionState(

internal/module/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func (p *PackageId) PackageName() string {
6363
type LookupLocations struct {
6464
FailedLookupLocations []string
6565
AffectingLocations []string
66-
ResolutionDiagnostics []ast.Diagnostic
66+
ResolutionDiagnostics []*ast.Diagnostic
6767
}
6868

6969
type ResolvedModule struct {

0 commit comments

Comments
 (0)