Skip to content

Conversation

@chlowell
Copy link
Member

Part of #7866. Main goal here is to create a spot (the TODO in Review.resolveAliases) to handle type aliases (type Event = log.Event) referring to non-SDK modules.

  • new TypeAlias type carries data about aliases, hoists the definition to the aliasing package when given a typeDef
  • new Review type collects modules implicated in the review, resolves cross-module references, computes output
  • Module now surfaces its cross-module type aliases for Review to resolve instead of resolving them itself
  • removed assumption that all modules implicated in a review are in the same repo

Along the way I appear to have incidentally fixed a bug that omitted type aliases referring to underlying types. For example, ExpiryTypeAbsolute doesn't appear in the latest azblob review. With this PR, it will appear without a hoisted definition; #8667 tracks improving that.

@chlowell chlowell marked this pull request as ready for review July 19, 2024 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants