Skip to content

Check the markers of supertypes by KSP - #123

Open
reactivestudio wants to merge 1 commit into
facade-ksp-visible-membersfrom
facade-ksp-supertype-markers
Open

reactivestudio wants to merge 1 commit into
facade-ksp-visible-membersfrom
facade-ksp-supertype-markers

Conversation

@reactivestudio

@reactivestudio reactivestudio commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Третья часть процессора semantic-pattern-ksp: класс несёт свои метки подсистем и метки супертипов, транзитивно и с аргументами супертипов. Стоит поверх #122.

  • InvoiceFileRepository : FileRepository входит в подсистему файлов, InvoiceLink : Comparable<FileEntity> — тоже.
  • Правила прежние: у класса не больше одной метки, у фасада меток нет, члены фасада не отдают типы подсистем — теперь с учётом супертипов.
  • Обход в ширину с множеством посещённых классов: цикл через аргументы супертипов проходится один раз.
  • Метка с супертипа в ошибке названа с источником: @FileSubsystem through FileEntity. Ошибка стоит на аннотации, если метка своя, и на имени класса, если она пришла с супертипа.
  • Супертип из другого модуля передаёт метки так же: процессор читает их из class file.
  • Принадлежность через супертипы находит SubsystemMembership.findAll.
  • README: формат «through», пункты о супертипах, в плане отдельный шаг для меток супертипов.

Следующая часть — правила клиентов.

@reactivestudio
reactivestudio force-pushed the facade-ksp-visible-members branch from 702b6d1 to 1f7da26 Compare November 16, 2026 11:52
@reactivestudio
reactivestudio force-pushed the facade-ksp-supertype-markers branch 2 times, most recently from 29f1887 to 8cf7d85 Compare November 16, 2026 12:06
@reactivestudio
reactivestudio force-pushed the facade-ksp-visible-members branch from 1f7da26 to 7914c1d Compare November 16, 2026 12:06
@reactivestudio
reactivestudio force-pushed the facade-ksp-supertype-markers branch from 8cf7d85 to cddb5d2 Compare November 16, 2026 12:07
@reactivestudio
reactivestudio force-pushed the facade-ksp-visible-members branch from 7914c1d to b3b7dd5 Compare November 16, 2026 12:07
@reactivestudio
reactivestudio force-pushed the facade-ksp-supertype-markers branch from cddb5d2 to 9333d4a Compare November 16, 2026 12:15
@reactivestudio
reactivestudio force-pushed the facade-ksp-visible-members branch 2 times, most recently from 7d964b0 to a0c8802 Compare November 16, 2026 18:19
@reactivestudio
reactivestudio force-pushed the facade-ksp-supertype-markers branch from 9333d4a to 6432cfd Compare November 16, 2026 18:19
@reactivestudio
reactivestudio force-pushed the facade-ksp-visible-members branch from a0c8802 to dbaffc4 Compare November 16, 2026 18:35
@reactivestudio
reactivestudio force-pushed the facade-ksp-supertype-markers branch from 6432cfd to 2acd9cd Compare November 16, 2026 18:36
@reactivestudio
reactivestudio force-pushed the facade-ksp-visible-members branch from dbaffc4 to 2bc6776 Compare November 16, 2026 18:48
@reactivestudio
reactivestudio force-pushed the facade-ksp-supertype-markers branch from 2acd9cd to 9f1ecad Compare November 16, 2026 18:48
@reactivestudio
reactivestudio force-pushed the facade-ksp-visible-members branch from 2bc6776 to 862f728 Compare November 16, 2026 19:07
@reactivestudio
reactivestudio force-pushed the facade-ksp-supertype-markers branch from 9f1ecad to 374f7cb Compare November 16, 2026 19:07
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