mirror of
https://github.com/morluto/rea.git
synced 2026-11-16 11:43:20 +00:00
refactor(javascript): break the semantic analysis import cycle (#8063)
* refactor(javascript): break the semantic analysis import cycle Split shared semantic facts out of the analysis hub so projectors of effects, evaluation, and identity no longer import one another in a cycle. * refactor(javascript): share the import specifier reader Read static imports in one module used by the boundary checker and both cycle guards, so those rules cannot drift apart. --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
This commit is contained in:
1 parent
940d71a45a
commit
249b90c5e3
33 files changed
+1043
-772
No files matched your search
@@ -12,22 +12,15 @@ import {
|
||||
} from "./javascriptSemanticPropertyPaths.js";
|
||||
import { compareUnicodeCodePoints } from "../unicodeCodePointOrder.js";
|
||||
import { semanticCopiedReferencePath } from "./javascriptSemanticReferenceSources.js";
|
||||
import type {
|
||||
IterationSourceValue,
|
||||
SemanticIterationSource,
|
||||
} from "./javascriptSemanticIterationFacts.js";
|
||||
|
||||
interface IterationSourceValue {
|
||||
readonly node: t.Node;
|
||||
readonly projection: JavaScriptSemanticPropertyPath;
|
||||
readonly iterationSources?: readonly IterationSourceValue[];
|
||||
}
|
||||
|
||||
/** An iterator receiver or property reference store, with default guards. */
|
||||
export interface SemanticIterationSource extends IterationSourceValue {
|
||||
readonly iterationSources?: readonly IterationSourceValue[];
|
||||
readonly kind: "iteration" | "reference-store";
|
||||
readonly mutation: t.Node;
|
||||
readonly target?: t.MemberExpression;
|
||||
readonly fallbackSources?: readonly IterationSourceValue[];
|
||||
readonly requiredSources?: readonly IterationSourceValue[];
|
||||
}
|
||||
export type {
|
||||
IterationSourceValue,
|
||||
SemanticIterationSource,
|
||||
} from "./javascriptSemanticIterationFacts.js";
|
||||
|
||||
/** A property value obtained by destructuring or an own-enumerable copy. */
|
||||
export interface SemanticPropertyReadSource
|
||||
|
||||
Reference in new issue
Block a user