-
Notifications
You must be signed in to change notification settings - Fork 105
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
Новый тип диагностики на основе перебора Symbol tree #1208
Comments
NonExportMethodsInApiRegionDiagnostic, MethodSizeDiagnostic и т.п. |
С точки зрения производительности, ИМХО, лучше предоставить методы геттеры, ExportVariables, NonExport. Или реализовать у *Symbol классов методы проверок, isExport, InRegion - добавит удобства при работе со stream. |
Эм... Не знаю, как это может повлиять на производительность, если честно. Конкретно эта задача на классический gof-овский visitor, который должен рекурсивно перебрать все символьное дерево и вызвать visit* в зависимости от типа символа |
Некоторые диагностики работают на базе символьного дерева, часто - на базе MethodSymbol и им не нужна информация о дереве разбора. Было бы удобно иметь абстрактную диагностику, в которой были бы методы в духе
visitMethodSymbol(MethodSymbol symbol)
The text was updated successfully, but these errors were encountered: