Skip to content

Commit 2a3c789

Browse files
committed
WIP
1 parent 70b72b8 commit 2a3c789

File tree

1 file changed

+13
-3
lines changed
  • engine/runtime-compiler/src/main/java/org/enso/compiler/pass/analyse/types/scope

1 file changed

+13
-3
lines changed

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

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

3+
import org.enso.compiler.pass.analyse.types.TypeRepresentation;
4+
35
import java.util.List;
46

57
public final class AtomType {
@@ -13,7 +15,15 @@ public String getName() {
1315
return name;
1416
}
1517

16-
// This is a sibling to BindingsMap.Cons. For now kept separate on purpose.
17-
// TODO do we want arguments or a signature here?
18-
public record Constructor(String name, boolean isProjectPrivate) {}
18+
// TODO mark type in constructor only if no default arguments, treat same as function?
19+
// TODO this should replace AtomTypeInterface
20+
21+
/**
22+
* Represents a constructor of the atom type.
23+
*
24+
* @param name the name of the constructor
25+
* @param isProjectPrivate whether the constructor is project private
26+
* @param type the type ascribed to the constructor, it may be null if it is unknown
27+
*/
28+
public record Constructor(String name, boolean isProjectPrivate, TypeRepresentation type) {}
1929
}

0 commit comments

Comments
 (0)