analyze_scopes
Detect variable shadowing, unused variables, and naming conflicts in JavaScript/TypeScript. Enhance code quality through scope, closure, and binding analysis for refactoring and debugging.
Instructions
Analyze variable scopes, bindings, and potential naming conflicts. Advanced tool for code quality analysis.
Examples: • Variable shadowing detection: analyze_scopes() to find naming conflicts • Closure analysis: analyze_scopes() to understand variable capture • Refactoring safety: analyze_scopes() before variable renames • Code review: analyze_scopes() to identify scope-related issues • Learning aid: analyze_scopes({includeBuiltins: true}) to see all identifiers • Dead code detection: analyze_scopes() to find unused variables
Input Schema
Name | Required | Description | Default |
---|---|---|---|
includeBuiltins | No | Include built-in identifiers (default: false). Set true for comprehensive analysis including globals. |