data-cap
    Preparing search index...

    Function scanFileForUsage

    • Walks sourceFile's full AST (not just top-level statements, unlike parseCapabilityFile) for every reference to a local name in matches, producing one DependencyEdge per recognized access pattern found. A binding's own import declaration is walked like any other node but produces no edge -- an import-position identifier is never in an access expression.

      Parameters

      Returns readonly DependencyEdge[]