Miranda Dependency InspectorA Visual Studio Code extension that performs lightweight static analysis for Miranda programs. Miranda Dependency Inspector helps developers understand the structure of their code by identifying dependencies between functions, detecting recursive functions, and highlighting functions that appear to be unused. FeaturesFunction Dependency AnalysisDetects user-defined functions and identifies which functions call other functions. Example:
Detected dependencies:
Recursive Function DetectionIdentifies simple recursive functions. Example:
Result:
Unused Function DetectionHighlights functions that are defined but never called by other functions. Example:
Result:
Sidebar ViewDisplays analysis results in a dedicated VS Code sidebar. The sidebar provides a quick overview of:
Usage
ExampleInput:
Output:
InstallationFrom MarketplaceSearch for:
and click Install. From VSIX
Project Structure
Main ComponentsmirandaParser.tsResponsible for extracting Miranda function definitions. dependencyAnalyzer.tsResponsible for:
DependencyTreeProvider.tsResponsible for rendering the VS Code sidebar tree. extension.tsRegisters commands and activates the extension. LimitationsThis extension uses lightweight static analysis. Current limitations:
Future ImprovementsPossible future enhancements:
ContributingSee CONTRIBUTING.md for contribution guidelines. LicenseMIT License |