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 11package org .enso .compiler .pass .analyse .types .scope ;
22
3+ import org .enso .compiler .pass .analyse .types .TypeRepresentation ;
4+
35import java .util .List ;
46
57public 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}
You can’t perform that action at this time.
0 commit comments