Skip to content

Commit 968af64

Browse files
committed
fmt after rebase
1 parent 5853a1e commit 968af64

File tree

6 files changed

+16
-17
lines changed

6 files changed

+16
-17
lines changed

engine/runtime-compiler/src/main/java/org/enso/compiler/pass/analyse/types/MethodTypeResolver.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package org.enso.compiler.pass.analyse.types;
22

3-
import org.enso.compiler.pass.analyse.types.scope.AtomType;
43
import org.enso.compiler.pass.analyse.types.scope.BuiltinsFallbackScope;
54
import org.enso.compiler.pass.analyse.types.scope.ModuleResolver;
65
import org.enso.compiler.pass.analyse.types.scope.StaticMethodResolution;

engine/runtime-compiler/src/main/java/org/enso/compiler/pass/analyse/types/TypePropagation.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,11 @@ protected abstract void encounteredNoSuchMethod(
8686
IR relatedIr, TypeRepresentation type, String methodName, MethodCallKind kind);
8787

8888
/**
89-
* The callback that is called when a constructor is being invoked on a type that does not have such a constructor.
89+
* The callback that is called when a constructor is being invoked on a type that does not have
90+
* such a constructor.
9091
*/
91-
protected abstract void encounteredNoSuchConstructor(IR relatedIr, TypeRepresentation type, String constructorName);
92+
protected abstract void encounteredNoSuchConstructor(
93+
IR relatedIr, TypeRepresentation type, String constructorName);
9294

9395
enum MethodCallKind {
9496
MEMBER,
@@ -364,7 +366,8 @@ private TypeRepresentation processUnresolvedSymbolApplication(
364366
if (constructor != null) {
365367
if (constructor.type() == null) {
366368
// type is unknown due to default arguments
367-
// TODO later on this should be assert != null because all constructors should have a type (once we can deal with default arguments)
369+
// TODO later on this should be assert != null because all constructors should have a
370+
// type (once we can deal with default arguments)
368371
return null;
369372
}
370373

engine/runtime-compiler/src/main/java/org/enso/compiler/pass/analyse/types/TypeRepresentation.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ public QualifiedName getAssociatedType() {
5151
* <p>Instances that are assigned this type are built with one of the available constructors, but
5252
* statically we do not necessarily know which one.
5353
*/
54-
record AtomType(QualifiedName fqn)
55-
implements TypeRepresentation {
54+
record AtomType(QualifiedName fqn) implements TypeRepresentation {
5655
@Override
5756
public String toString() {
5857
return fqn.item();

engine/runtime-compiler/src/main/java/org/enso/compiler/pass/analyse/types/scope/AtomType.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
package org.enso.compiler.pass.analyse.types.scope;
22

3-
import org.enso.compiler.pass.analyse.types.TypeRepresentation;
4-
53
import java.util.List;
4+
import org.enso.compiler.pass.analyse.types.TypeRepresentation;
65

76
public final class AtomType {
87
private final String name;
@@ -26,8 +25,8 @@ public Constructor getConstructor(String name) {
2625
*
2726
* @param name the name of the constructor
2827
* @param isProjectPrivate whether the constructor is project private
29-
* @param type the type ascribed to the constructor, it may be null if it is unknown
30-
* TODO the type will soon be always non-null - once we can handle default arguments
28+
* @param type the type ascribed to the constructor, it may be null if it is unknown TODO the type
29+
* will soon be always non-null - once we can handle default arguments
3130
*/
3231
public record Constructor(String name, boolean isProjectPrivate, TypeRepresentation type) {}
3332
}

engine/runtime-compiler/src/main/java/org/enso/compiler/pass/analyse/types/scope/StaticModuleScopeAnalysis.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ private TypeRepresentation buildAtomConstructorType(Definition.Data constructorD
161161
}
162162

163163
var arguments =
164-
constructorDef.arguments().map(
164+
constructorDef
165+
.arguments()
166+
.map(
165167
(arg) -> {
166168
var typ = arg.ascribedType();
167169
// TODO

engine/runtime-compiler/src/main/scala/org/enso/compiler/data/BindingsMap.scala

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,15 @@ import org.enso.compiler.PackageRepository
44
import org.enso.compiler.PackageRepository.ModuleMap
55
import org.enso.compiler.context.CompilerContext.Module
66
import org.enso.compiler.core.Implicits.AsMetadata
7-
import org.enso.compiler.core.ir
7+
import org.enso.compiler.core.{ir, CompilerError}
88
import org.enso.compiler.core.ir.expression.errors
9-
import org.enso.compiler.data.BindingsMap.{DefinedEntity, ModuleReference}
10-
import org.enso.compiler.core.CompilerError
11-
import org.enso.compiler.core.ir.Expression
129
import org.enso.compiler.core.ir.module.scope.Definition
10+
import org.enso.compiler.data.BindingsMap.{DefinedEntity, ModuleReference}
1311
import org.enso.compiler.pass.IRPass
1412
import org.enso.compiler.pass.analyse.BindingAnalysis
1513
import org.enso.compiler.pass.resolve.MethodDefinitions
16-
import org.enso.persist.Persistance.Reference
17-
import org.enso.pkg.QualifiedName
1814
import org.enso.editions.LibraryName
15+
import org.enso.pkg.QualifiedName
1916

2017
import java.io.ObjectOutputStream
2118
import scala.annotation.unused

0 commit comments

Comments
 (0)