refactor(analysis): remove fixed result quotas

This commit is contained in:
morluto
2026-09-29 13:57:24 +08:00
parent 0e2738ffb6
commit 20152a9872
105 changed files with 605 additions and 1084 deletions
@@ -1,7 +1,6 @@
import * as t from "@babel/types";
import {
reachSemanticLimit,
semanticCallableIdForNode,
semanticStaticPropertyName,
} from "./javascriptSemanticProjection.js";
@@ -206,19 +205,3 @@ export const containsSemanticNode = (outer: t.Node, inner: t.Node): boolean =>
inner.end !== undefined &&
outer.start <= inner.start &&
outer.end >= inner.end;
/** Record one bounded data-effect frontier. */
export const dataEffectLimitReached = (
retained: number,
limit: number,
name:
| "maxConfigurationOperations"
| "maxRequestOperations"
| "maxBoundaryOperations"
| "maxResourceOperations",
state: JavaScriptSemanticAnalysisState,
): boolean => {
if (retained < limit) return false;
reachSemanticLimit(state, name);
return true;
};