File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
engine/runtime-compiler/src/main/java/org/enso/compiler/pass/analyse/types/scope Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 1
1
package org .enso .compiler .pass .analyse .types .scope ;
2
2
3
+ import org .enso .compiler .pass .analyse .types .TypeRepresentation ;
4
+
3
5
import java .util .List ;
4
6
5
7
public final class AtomType {
@@ -13,7 +15,15 @@ public String getName() {
13
15
return name ;
14
16
}
15
17
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 ) {}
19
29
}
You can’t perform that action at this time.
0 commit comments