refactor(javascript): remove analysis ceilings

This commit is contained in:
morluto
2026-09-29 15:30:43 +08:00
parent 60cb68a276
commit 9aec6908b5
39 changed files with 249 additions and 534 deletions
@@ -55,7 +55,6 @@ export const collectSemanticCallable = (input: CollectCallableInput): void => {
status: "partial",
retainedCount: 0,
omittedCount: null,
limitsReached: [],
},
});
state.callableNodesById.set(callableId, node);
@@ -192,15 +191,6 @@ export const semanticStaticPropertyName = (
? ""
: propertyName(property);
/** Record one exact limit hit without inventing the total omitted population. */
export const reachSemanticLimit = (
state: JavaScriptSemanticAnalysisState,
limit: keyof JavaScriptSemanticAnalysisState["limits"],
): void => {
state.limitsReached.add(limit);
state.omittedCount += 1;
};
const callableKind = (
node: t.Node,
): "function" | "class" | "method" | undefined => {