Skip to content

Di lifetime parsing primitives + InternalsVisibleTo #232

Description

@Skymly

What to build

Introduce the Di lifetime parsing layer inside Analyzers so Captive Dependency analysis calls shared Lifetime resolution instead of private copies. Registration map is not required yet. Behaviour for existing captive-dependency diagnostics stays frozen unless a blocker bug forces a minimal fix (then note it in CHANGELOG).

Acceptance criteria

  • DesignPatterns.Analyzers.Di exposes Lifetime and the shared lifetime-resolution primitives used today by Captive Dependency analysis
  • Captive Dependency analysis uses those primitives (no duplicate ResolveLifetime logic left in the analyzer for the covered paths)
  • InternalsVisibleTo allows Analyzers.Tests to exercise the Di primitives
  • Unit tests cover lifetime resolution edge cases without relying only on full-analyzer Verify
  • Existing Captive Dependency Verify snapshots stay green (behaviour freeze)

Blocked by

None — can start immediately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agentFully specified, ready for an AFK agent

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions