Extract variable type from description start#391
Conversation
Описание переменной теперь отдаёт тип, указанный в начале первой значимой строки (нотация «тип в начале»), отдельным элементом DescriptionElement типа TYPE_NAME — по аналогии с типами параметров и возвращаемого значения в описаниях методов. Тип извлекается отдельным разбором правила variableDescription, переиспользующего грамматическое правило returnsValue/type, поэтому квалифицированные и составные типы (коллекции, списки) разбираются целиком, а свободный текст без типа не порождает ложных TYPE_NAME. Координаты элемента абсолютные (через lineShift/firstLineCharShift), что корректно работает и для висячих (trailing) описаний. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TX5hqgS58htjayb4thDxXA
|
Warning Review limit reached
More reviews will be available in 7 minutes and 15 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
… переменных Добавлены тесты на извлечение TYPE_NAME для типа-коллекции (Массив из ...), перечисления типов через запятую и на пропуск типа-гиперссылки (См.). Закрывает ветки разбора, не покрытые ранее (Quality Gate: покрытие нового кода). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TX5hqgS58htjayb4thDxXA
|



Summary
Add support for extracting variable type information from the beginning of variable descriptions using the "type - description" notation (e.g., "// Строка - описание"). This allows the parser to identify and track type declarations in variable documentation comments.
Key Changes
variableDescriptionandvariableType) inBSLDescriptionParser.g4to parse variable descriptions with optional type information at the startVariableDescriptionTokenizerto parse descriptions using the variable-specific grammar ruleVariableDescriptionReaderto:DescriptionElement.Type.TYPE_NAMEelements with absolute coordinatesImplementation Details
methodDescriptionparsingDEPRECATE_KEYWORDbehavior), accounting for line and character shiftshttps://claude.ai/code/session_01TX5hqgS58htjayb4thDxXA