diff options
author | 2024-07-02 22:24:46 +0200 | |
---|---|---|
committer | 2024-07-03 21:15:38 +0200 | |
commit | bb358231316b2803bd382114b97621dcda16989d (patch) | |
tree | 9735a131b4aedb64e89c25fa6c82c394e65ec913 /subprojects/language/src/main/java/tools | |
parent | fix(reasoning): do not propagate invalidated objects (diff) | |
download | refinery-bb358231316b2803bd382114b97621dcda16989d.tar.gz refinery-bb358231316b2803bd382114b97621dcda16989d.tar.zst refinery-bb358231316b2803bd382114b97621dcda16989d.zip |
feat: container type propagation
Diffstat (limited to 'subprojects/language/src/main/java/tools')
-rw-r--r-- | subprojects/language/src/main/java/tools/refinery/language/utils/BuiltinSymbols.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/subprojects/language/src/main/java/tools/refinery/language/utils/BuiltinSymbols.java b/subprojects/language/src/main/java/tools/refinery/language/utils/BuiltinSymbols.java index 72f23e85..3b2ae707 100644 --- a/subprojects/language/src/main/java/tools/refinery/language/utils/BuiltinSymbols.java +++ b/subprojects/language/src/main/java/tools/refinery/language/utils/BuiltinSymbols.java | |||
@@ -12,6 +12,7 @@ public final class BuiltinSymbols { | |||
12 | private final ClassDeclaration node; | 12 | private final ClassDeclaration node; |
13 | private final PredicateDefinition equals; | 13 | private final PredicateDefinition equals; |
14 | private final PredicateDefinition exists; | 14 | private final PredicateDefinition exists; |
15 | private final ClassDeclaration container; | ||
15 | private final ClassDeclaration contained; | 16 | private final ClassDeclaration contained; |
16 | private final PredicateDefinition contains; | 17 | private final PredicateDefinition contains; |
17 | private final PredicateDefinition invalidContainer; | 18 | private final PredicateDefinition invalidContainer; |
@@ -21,6 +22,7 @@ public final class BuiltinSymbols { | |||
21 | node = getDeclaration(ClassDeclaration.class, "node"); | 22 | node = getDeclaration(ClassDeclaration.class, "node"); |
22 | equals = getDeclaration(PredicateDefinition.class, "equals"); | 23 | equals = getDeclaration(PredicateDefinition.class, "equals"); |
23 | exists = getDeclaration(PredicateDefinition.class, "exists"); | 24 | exists = getDeclaration(PredicateDefinition.class, "exists"); |
25 | container = getDeclaration(ClassDeclaration.class, "container"); | ||
24 | contained = getDeclaration(ClassDeclaration.class, "contained"); | 26 | contained = getDeclaration(ClassDeclaration.class, "contained"); |
25 | contains = getDeclaration(PredicateDefinition.class, "contains"); | 27 | contains = getDeclaration(PredicateDefinition.class, "contains"); |
26 | invalidContainer = getDeclaration(PredicateDefinition.class, "invalidContainer"); | 28 | invalidContainer = getDeclaration(PredicateDefinition.class, "invalidContainer"); |
@@ -42,6 +44,10 @@ public final class BuiltinSymbols { | |||
42 | return exists; | 44 | return exists; |
43 | } | 45 | } |
44 | 46 | ||
47 | public ClassDeclaration container() { | ||
48 | return container; | ||
49 | } | ||
50 | |||
45 | public ClassDeclaration contained() { | 51 | public ClassDeclaration contained() { |
46 | return contained; | 52 | return contained; |
47 | } | 53 | } |