awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
sebastianbergmann avatar

sebastianbergmann/code-unit-reverse-lookup

0
View on GitHub↗
6,690 stars·6 forks·PHP·BSD-3-Clause·10 views

Code Unit Reverse Lookup

This project is a static code analysis tool that functions as a code unit resolver and source code line mapper. It identifies the specific function or method that contains a given line of code by analyzing the structure of source files without executing the program.

The utility maps line numbers to their parent code units by examining the organization of source files and identifying the ownership of specific lines. It determines the boundaries of functions and methods through text-based structural parsing and range detection.

These capabilities support source code analysis and static analysis tooling for developer tool integration and code navigation workflows.

Features

  • Line-to-Unit Mapping - Associates specific line numbers with the parent code block that encompasses them.
  • Code Unit Boundary Detection - Determines containing units by comparing target line numbers against function start and end positions.
  • Code Unit Ownership Resolution - Maps a specific line of code to its parent function or method by examining the source file organization.
  • Code Unit Resolvers - Identifies the function or method ownership of a line of code for debugging and reporting.
  • Line-to-Block Ownership Mapping - Determines unit ownership by checking if a target line falls between the start and end positions of a block.
  • Line-to-Unit Resolvers - Identifies the function or method containing a specific line of code by analyzing the source file structure.
  • Source Code Line Mappers - Identifies the specific function or method containing a given line of code by analyzing source files.
  • Static Analysis Tools - Automates the mapping of line numbers to parent logic blocks for use in debugging and reporting systems.
  • Source Code Analysis Tools - Analyzes the structure of source files to identify which function or method contains a specific line of code.
  • Structural Boundary Analysis - Parses raw source code to identify the boundaries of function and method definitions.
  • Static Code Analysis Tools - Examines source code structure to determine the ownership of specific lines without executing the code.
  • Code Unit Identification - Locates the specific function or method that encompasses a line of code through analysis of the source file.
  • Structural Static Analysis - Analyzes the physical structure of code files to identify functions and methods without executing the program.
  • Keyword-Based Structural Parsing - Identifies logical code blocks by searching for specific keywords and patterns within the raw source text.
  • Code Exploration Tools - Provides utilities to resolve source code locations to functions for enhanced code exploration.
  • Structural Code Navigation - Supports code navigation by identifying the function responsible for a specific operation via structural analysis.
  • Structural Marker Detection - Scans source text for opening and closing symbols to define the boundaries of code units.
  • Textual Range Detection - Scans the source text for opening and closing markers to define the extent of a code unit.
  • Code Offset Mapping - Associates specific integer line numbers with parent code units based on defined text offsets.

Star history

Star history chart for sebastianbergmann/code-unit-reverse-lookupStar history chart for sebastianbergmann/code-unit-reverse-lookup

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to Code Unit Reverse Lookup

Similar open-source projects, ranked by how many features they share with Code Unit Reverse Lookup.
  • analysis-tools-dev/static-analysisanalysis-tools-dev avatar

    analysis-tools-dev/static-analysis

    14,389View on GitHub↗

    This project is a comprehensive, curated directory of static analysis, linting, and security scanning utilities. It serves as a central resource for developers to discover, compare, and select tools based on specific programming languages, licensing models, and integration requirements. The directory distinguishes itself by providing deep metadata for each listed utility, including community-driven popularity rankings, maintenance status, and deployment methods. By aggregating these tools into a single searchable index, it enables teams to identify solutions for enforcing coding standards, ma

    Rustanalysisawesome-listcode-quality
    View on GitHub↗14,389
  • nvim-treesitter/nvim-treesitter-contextnvim-treesitter avatar

    nvim-treesitter/nvim-treesitter-context

    3,120View on GitHub↗

    nvim-treesitter-context is a Neovim editor extension that provides structural awareness of source files by displaying sticky headers of surrounding code blocks. It utilizes Tree-sitter queries to identify parent functions and classes, keeping them visible at the top of the editor window while scrolling. The tool allows for language rule customization, enabling the definition of specific structural queries to modify how context is detected for different programming languages. Users can also adjust the visual appearance of the context window through custom highlight groups. Beyond visual orien

    Janetneovimneovim-pluginvim
    View on GitHub↗3,120
  • mgechev/revivemgechev avatar

    mgechev/revive

    5,524View on GitHub↗

    Revive is a configurable static analysis linter and code quality tool for Go. It analyzes source code to detect common coding mistakes, identify style violations, and enforce language standards without executing the program. The project functions as both a command line tool and an embeddable analysis engine. This allows the core linting logic to be integrated as a library into other Go applications for programmatic code inspection. The tool supports custom rule sets and severity levels managed through a structured configuration file. It provides capabilities for suppressing specific warnings

    Gogogolanggolint
    View on GitHub↗5,524
  • apple/swift-syntaxapple avatar

    apple/swift-syntax

    3,671View on GitHub↗

    swift-syntax is a library for parsing, manipulating, and generating Swift source code. It provides a source-accurate abstract syntax tree representation of Swift code, acting as a parser, transformer, and code generator. The project serves as the infrastructure for Swift macro development, enabling the expansion and transformation of source code during compilation. It is used to build compiler tooling for static analysis, formatting, and automated refactoring. The system covers a broad range of source analysis capabilities, including the ability to convert source code into structured trees f

    Swift
    View on GitHub↗3,671
See all 30 alternatives to Code Unit Reverse Lookup→

Frequently asked questions

What does sebastianbergmann/code-unit-reverse-lookup do?

This project is a static code analysis tool that functions as a code unit resolver and source code line mapper. It identifies the specific function or method that contains a given line of code by analyzing the structure of source files without executing the program.

What are the main features of sebastianbergmann/code-unit-reverse-lookup?

The main features of sebastianbergmann/code-unit-reverse-lookup are: Line-to-Unit Mapping, Code Unit Boundary Detection, Code Unit Ownership Resolution, Code Unit Resolvers, Line-to-Block Ownership Mapping, Line-to-Unit Resolvers, Source Code Line Mappers, Static Analysis Tools.

What are some open-source alternatives to sebastianbergmann/code-unit-reverse-lookup?

Open-source alternatives to sebastianbergmann/code-unit-reverse-lookup include: analysis-tools-dev/static-analysis — This project is a comprehensive, curated directory of static analysis, linting, and security scanning utilities. It… nvim-treesitter/nvim-treesitter-context — nvim-treesitter-context is a Neovim editor extension that provides structural awareness of source files by displaying… mgechev/revive — Revive is a configurable static analysis linter and code quality tool for Go. It analyzes source code to detect common… realm/swiftlint — SwiftLint is a static analysis tool and code formatter designed to enforce consistent coding styles and identify… apple/swift-syntax — swift-syntax is a library for parsing, manipulating, and generating Swift source code. It provides a source-accurate… rubocop-hq/rubocop — RuboCop is a static code analyzer, linter, and formatter for the Ruby language. It detects style violations, potential…