mirror of
https://github.com/morluto/rea.git
synced 2026-10-27 18:05:45 +00:00
refactor(javascript): group domain semantics and contracts (#907)
This commit is contained in:
1 parent
d5f28fb29c
commit
f6a58f1062
253 files changed
+432
-410
No files matched your search
@@ -0,0 +1,22 @@
|
||||
import type { JavaScriptSemanticGraphRelation } from "./javascriptSemanticGraph.js";
|
||||
|
||||
const OWNERSHIP_RELATIONS = new Set<
|
||||
JavaScriptSemanticGraphRelation["relation"]
|
||||
>([
|
||||
"acquires",
|
||||
"aggregates",
|
||||
"awaits",
|
||||
"chains",
|
||||
"connects-stdio",
|
||||
"creates-promise",
|
||||
"detaches-task",
|
||||
"owns",
|
||||
"releases",
|
||||
"returns-task",
|
||||
"spawns",
|
||||
]);
|
||||
|
||||
/** Whether one relation participates in bidirectional ownership traversal. */
|
||||
export const isJavaScriptSemanticOwnershipRelation = (
|
||||
relation: JavaScriptSemanticGraphRelation["relation"],
|
||||
): boolean => OWNERSHIP_RELATIONS.has(relation);
|
||||
Reference in new issue
Block a user