analyze_scopes
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