You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/codeql/ql-language-reference/ql-language-specification.rst
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -286,8 +286,8 @@ Instantiation-relative and instantiation-nested entities
286
286
287
287
Given an *instantiated module*, every entity has a corresponding entity called the *instantiation-relative* entity, which is determined as follows:
288
288
289
-
- If the entity is the *underlying module*, its *instantiation-relative entity* is the *instantiated module*.
290
-
- If the entity is a parameter of the *underlying module*, its *instantiation-relative entity* is the corresponding argument.
289
+
- If the entity is the *underlying module*, its *instantiation-relative* entity is the *instantiated module*.
290
+
- If the entity is a parameter of the *underlying module*, its *instantiation-relative* entity is the corresponding argument.
291
291
- If the entity is declared inside the *underlying module* or its nested modules, its *instantiation-relative* entity is an *instantiation-nested* entity that is generated by the module instantiation. Parameters of any modules that are nested inside the *underlying module* are considered declared inside the module for this purpose.
292
292
- Otherwise, the entity's *instantiation-relative* entity is the initial entity itself.
293
293
@@ -318,12 +318,12 @@ Every *completely uninstantiated* entity has a *relevant set of parameters*, whi
318
318
319
319
Note that the *relevant set of parameters* by construction contains only *completely uninstantiated* parameters.
320
320
321
-
For a *completely uninstantiated* parameter, the *bottom-up instantiation-resolved* parameter relative to an entity is defined as:
321
+
For a *completely uninstantiated* parameter, the *bottom-up instantiation-resolution* relative to an entity is defined as:
322
322
323
-
- If the entity is an *instantiated module* or an *instantiation-nested* entity, the *bottom-up instantiation-resolved* parameter is the *instantiation-relative* parameter of the *bottom-up instantiation-resolved* parameter relative to the *underlying module*.
324
-
- Otherwise, the *bottom-up instantiation-resolved* parameter is the parameter itself.
323
+
- If the entity is an *instantiated module* or an *instantiation-nested* entity, the *bottom-up instantiation-resolution* is the *instantiation-relative* entity of the *bottom-up instantiation-resolution* relative to the *underlying module*.
324
+
- Otherwise, the *bottom-up instantiation-resolution* is the parameter itself.
325
325
326
-
Two *instantiated modules* or two *instantiation-nested* entities are considered *equivalent* if they have the same *underlying completely uninstantiated* entity and each parameter in its *relevant set of parameters* has the same *bottom-up instantiation-resolved* parameter relative to either *instantiated module*.
326
+
Two *instantiated modules* or two *instantiation-nested* entities are considered *equivalent* if they have the same *underlying completely uninstantiated* entity and each parameter in its *relevant set of parameters* has the same *bottom-up instantiation-resolution* relative to either *instantiated module*.
327
327
328
328
Module instantiation is applicative, meaning that *equivalent* *instantiated modules* and *equivalent* *instantiation-nested* entities are indistinguishable.
0 commit comments