-
Notifications
You must be signed in to change notification settings - Fork 13
[SPT-1572] intro in macro #231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
SwiftLint found issues
Generated by 🚫 Danger Swift against 1a5c5ad |
5a76a3e to
2251ecc
Compare
| options: | ||
| # Версия Xcode | ||
| xcodeVersion: 13.4.1 | ||
| xcodeVersion: 15.0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Это что-то из локального сюда зашло? Как понимаю, только ты пробовал в XCode 15)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
это намеренно)
макросы требуют Swift 5.9
Swift 5.9 только в Xcode 15
короче эта часть изменений будет долго висеть.
Golubeykov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Предлагаю добавить в описании, что это история для XCode 15) А то я не сразу понял, почему не запускается)
Ikeret
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
У меня все работает, сам макрос даже читаемый получился, но можно еще описание добавить в ///)
|
Обновил MutableMacroTests |
efaeed3 to
838f392
Compare
|
Перевожу CI на Xcode 15 раз уж в Gihub Actions добавили его, а тут
Не до конца установили (Не поставили симулятор) |
| import CompilerPluginSupport | ||
|
|
||
| let package = Package( | ||
| name: "Macro", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Какое то уникальное название надо придумать)
838f392 to
8b9cee4
Compare
8b9cee4 to
81e0140
Compare
Что сделано?
Mutableдобавляющий структуреЗачем это сделано?
Для освоения макросов и скрытия однотипного кода в компонентах.
На что обратить внимание?
В тестах expansion не срабатывает, хотя по месту использования макрос генерирует функции как и ожидаетсяPropertyКак протестировать?