aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2024-01-05 18:47:04 +0000
committerMichael Williamson <mike@zwobble.org>2024-01-05 18:47:04 +0000
commit2420aca302718622531b9cbcbfaf4cd91c1889a1 (patch)
tree0d29abbf3bbbdb660f6ef2bb715f45bc3970f8c4 /src/main/java
parentc88aea4655fb8396741dba4fa13a2315e30d14d2 (diff)
Add Function scope
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/shedlang/compiler/types/Scope.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/shedlang/compiler/types/Scope.java b/src/main/java/org/shedlang/compiler/types/Scope.java
index 170a47f2..b7fb0ecd 100644
--- a/src/main/java/org/shedlang/compiler/types/Scope.java
+++ b/src/main/java/org/shedlang/compiler/types/Scope.java
@@ -1,6 +1,7 @@
package org.shedlang.compiler.types;
public sealed interface Scope {
+ record Function(NamespaceName namespaceName, String name) implements Scope {}
record Struct(SimpleStructType type) implements Scope {}
record Sum(SimpleSumType type) implements Scope {}
}