Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
radeusgd committed Dec 31, 2024
1 parent 70b72b8 commit 2a3c789
Showing 1 changed file with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package org.enso.compiler.pass.analyse.types.scope;

import org.enso.compiler.pass.analyse.types.TypeRepresentation;

import java.util.List;

public final class AtomType {
Expand All @@ -13,7 +15,15 @@ public String getName() {
return name;
}

// This is a sibling to BindingsMap.Cons. For now kept separate on purpose.
// TODO do we want arguments or a signature here?
public record Constructor(String name, boolean isProjectPrivate) {}
// TODO mark type in constructor only if no default arguments, treat same as function?
// TODO this should replace AtomTypeInterface

/**
* Represents a constructor of the atom type.
*
* @param name the name of the constructor
* @param isProjectPrivate whether the constructor is project private
* @param type the type ascribed to the constructor, it may be null if it is unknown
*/
public record Constructor(String name, boolean isProjectPrivate, TypeRepresentation type) {}
}

0 comments on commit 2a3c789

Please sign in to comment.