(s, nameSet, scopeSet1, scopeSet2)
| 172 | * @param {ScopeSet} scopeSet2 scope set 2 |
| 173 | */ |
| 174 | const addScopeSymbols = (s, nameSet, scopeSet1, scopeSet2) => { |
| 175 | let scope = s; |
| 176 | while (scope) { |
| 177 | if (scopeSet1.has(scope)) break; |
| 178 | if (scopeSet2.has(scope)) break; |
| 179 | scopeSet1.add(scope); |
| 180 | for (const variable of scope.variables) { |
| 181 | nameSet.add(variable.name); |
| 182 | } |
| 183 | scope = scope.upper; |
| 184 | } |
| 185 | }; |
| 186 | |
| 187 | const RESERVED_NAMES = new Set( |
| 188 | [ |
no test coverage detected