Skip to content

Commit

Permalink
update invalidated passes
Browse files Browse the repository at this point in the history
  • Loading branch information
radeusgd committed Jan 7, 2025
1 parent 5432f67 commit 53f1930
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import org.slf4j.LoggerFactory;
import scala.Option;
import scala.collection.immutable.Seq;
import scala.jdk.javaapi.CollectionConverters;

public class StaticModuleScopeAnalysis implements IRPass {
public static final StaticModuleScopeAnalysis INSTANCE = new StaticModuleScopeAnalysis();
Expand All @@ -55,13 +54,13 @@ public Seq<IRProcessingPass> precursorPasses() {
FullyQualifiedNames$.MODULE$,
TypeNames$.MODULE$,
TypeInferenceSignatures.INSTANCE);
return CollectionConverters.asScala(passes).toList();
return ScalaConversions.seq(passes);
}

@Override
public Seq<IRProcessingPass> invalidatedPasses() {
List<IRProcessingPass> passes = List.of();
return CollectionConverters.asScala(passes).toList();
List<IRProcessingPass> passes = List.of(StaticModuleScopeAnalysis.INSTANCE);
return ScalaConversions.seq(passes);
}

@Override
Expand Down Expand Up @@ -181,7 +180,7 @@ private TypeRepresentation buildAtomConstructorType(
})
.toList();
var resultType = associatedType.instanceType();
return TypeRepresentation.buildFunction(CollectionConverters.asJava(arguments), resultType);
return TypeRepresentation.buildFunction(ScalaConversions.asJava(arguments), resultType);
}

@Override
Expand Down

0 comments on commit 53f1930

Please sign in to comment.