Skip to content

refactor(Type): split reading a member's types from mapping them - #2398

Merged
DerManoMann merged 1 commit into
zircote:masterfrom
DerManoMann:refactor/type-resolver-seam
Nov 13, 2026
Merged

DerManoMann merged 1 commit into
zircote:masterfrom
DerManoMann:refactor/type-resolver-seam

Conversation

@DerManoMann

Copy link
Copy Markdown
Collaborator

Overview

TypeResolver::doResolve() reads a member's docblock type and its declared type, and maps them to a SchemaType, all in one method. The two steps are now separate, so the types can be changed before they are mapped. Reason for this is that generic classes (#2386) need to replace templates in between, and #2386 is being split into smaller pull requests. This is the first one.

No output changes.

Changes

  • TypeResolver::doResolve() reads the two types and passes them to a new protected toSchemaType(), which holds the mapping as it was
  • parseDocComment() is taken out of getDocblockType()

`TypeResolver::doResolve()` reads the docblock type and the declared type and passes both to a new `toSchemaType()`. `parseDocComment()` is taken out of `getDocblockType()`.
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.

1 participant