Skip to content

Commit

Permalink
Address review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
rdulmina committed Jan 28, 2025
1 parent 65afcd1 commit 4640af1
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9916,9 +9916,7 @@ String recordsToString(Set<BRecordType> recordTypeSet) {

public GlobalStateData getGlobalStateSnapshotAndResetGlobalState() {
// Preserve global state
GlobalStateData globalStateData = new GlobalStateData();
globalStateData.unknownTypeRefs = typeResolver.unknownTypeRefs;
globalStateData.errorCount = this.dlog.errorCount();
GlobalStateData globalStateData = new GlobalStateData(typeResolver.unknownTypeRefs, this.dlog.errorCount());

// Reset global state
typeResolver.unknownTypeRefs = new HashSet<>();
Expand Down Expand Up @@ -9951,8 +9949,6 @@ public static class AnalyzerData {
/**
* @since 2201.12.0
*/
public static class GlobalStateData {
HashSet<TypeResolver.LocationData> unknownTypeRefs;
int errorCount;
public record GlobalStateData(HashSet<TypeResolver.LocationData> unknownTypeRefs, int errorCount) {
}
}

0 comments on commit 4640af1

Please sign in to comment.