Skip to content

Commit 2b719d5

Browse files
committed
visible namespaces also include private imports
1 parent c5deb85 commit 2b719d5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/codeql/ql-language-reference/name-resolution.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,9 @@ For a module ``M``, it is useful to distinguish between its **privately declared
228228
1. all entries from the **exported** namespaces of ``M``, and
229229
2. all entries from the **global** namespaces, and
230230
3. all entries from the **privately declared** namespace of ``M``, and
231-
4. if ``M`` is nested within a module ``N``: all entries from the **visible** namespaces of ``N`` that do not have the same name as any of the entries in the **publically declared** namespaces of ``M``, and
232-
5. all parameters of ``M``.
231+
4. for each module ``N`` that is imported into ``M`` with an import statement that is annotated as ``private``: all entries from the **exported** namespaces of ``N`` that do not have the same name as any of the entries in the **publically declared** namespaces of ``M``.
232+
5. if ``M`` is nested within a module ``N``: all entries from the **visible** namespaces of ``N`` that do not have the same name as any of the entries in the **publically declared** namespaces of ``M``, and
233+
6. all parameters of ``M``.
233234

234235

235236
This is easiest to understand in an example:

0 commit comments

Comments
 (0)