mirror of
https://github.com/morluto/rea.git
synced 2026-12-03 21:46:01 +00:00
refactor(javascript): share built-in graph relation resolution (#15881)
This commit is contained in:
1 parent
0ca5e5733e
commit
f8767e9b71
5 files changed
+15
-47
No files matched your search
@@ -31,11 +31,7 @@ export const projectSemanticResources = (
|
||||
source: callSite,
|
||||
target: resource,
|
||||
relation: "acquires",
|
||||
...builtinSemanticRelation(
|
||||
context.file,
|
||||
operation,
|
||||
operation.resolution === "complete" ? "resolved" : "candidate",
|
||||
),
|
||||
...builtinSemanticRelation(context.file, operation),
|
||||
});
|
||||
if (operation.resolution === "partial")
|
||||
addSemanticGraphUnknown(context.state, {
|
||||
@@ -84,11 +80,7 @@ const projectRelease = (
|
||||
source: callSite,
|
||||
target: resource,
|
||||
relation: "releases",
|
||||
...builtinSemanticRelation(
|
||||
context.file,
|
||||
operation,
|
||||
operation.resolution === "complete" ? "resolved" : "candidate",
|
||||
),
|
||||
...builtinSemanticRelation(context.file, operation),
|
||||
});
|
||||
if (operation.resolution === "complete") return;
|
||||
addSemanticGraphUnknown(context.state, {
|
||||
|
||||
Reference in new issue
Block a user