1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/openharmony-arkcompiler_ets_frontend

 / Детали:

[ASTVerifier] Scopes should be consistent with their declaring nodes

Предстоит сделать
Владелец
Создано  
26.11.2024

Whenever a variable v has v->Scope() == s && s->Node() == n, the following should be true:

  1. n->IsScopeBearer()
  2. Either
    • n->Scope() == s
    • n->IsFunctionScope() && n->ParamScope() == s
    • n->IsLoopScope() && n->DeclScope() == s
    • n->IsCatchScope() && n->ParamScope() == s

This should be checker by walking all the identifiers in a program, because violations of the invariant take place when identifiers have variables with stale scopes, replaced by new ones.

#17145

Комментарий (0)

GitLife Service Account Задача создана
GitLife Service Account добавлено
 
waiting_for_assign
label.
Развернуть журнал операций

Вход Перед тем как оставить комментарий

Статус
Ответственный
Контрольная точка
Pull Requests
Связанные запросы на слияние могут быть закрыты после их объединения
Ветки
Дата начала   -   Крайний срок
-
Закрепить/Открепить
Приоритет
Участники(1)
1
https://api.gitlife.ru/oschina-mirror/openharmony-arkcompiler_ets_frontend.git
git@api.gitlife.ru:oschina-mirror/openharmony-arkcompiler_ets_frontend.git
oschina-mirror
openharmony-arkcompiler_ets_frontend
openharmony-arkcompiler_ets_frontend