Analyzes a method using AST body signals to produce a confidence map.
Only method-body signals are included — class-level and return-type signals
are intentionally excluded because they are too ambiguous (e.g., Observable<T>
is common for both data-retrieval and event-handling) and cause false
overrides for methods with clear name patterns like saveUser().
Signals collected from method body text with confidence scores based on observed patterns in production Angular codebases:
Analyzes a method using AST body signals to produce a confidence map.
Only method-body signals are included — class-level and return-type signals are intentionally excluded because they are too ambiguous (e.g.,
Observable<T>is common for both data-retrieval and event-handling) and cause false overrides for methods with clear name patterns likesaveUser().Signals collected from method body text with confidence scores based on observed patterns in production Angular codebases:
.next()/.emit()→ event-handling (0.95).asObservable()→ event-handling (0.90).getValue()→ event-handling (0.75)this.*.get/head/options()→ data-retrieval (0.85)this.*.post/put/delete/patch()→ data-mutation (0.85)this.cache/.fromCache→ cache-management (0.80)JSON.parse/JSON.stringify→ transformation (0.85)atob(/btoa(→ transformation (0.90)Confidence thresholds for callers: