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
Original file line number
Diff line number
Diff line change
@@ -827,7 +827,7 @@ The types specified after the ``extends`` keyword are the *base types* of the cl
827
827
828
828
The types specified after the ``instanceof`` keyword are the *instanceof types* of the class.
829
829
830
-
A class type is said to *inherit* from the base types of the associated class type. In addition, inheritance is transitive: If a type ``A`` inherits from a type ``B``, and ``B`` inherits from a type ``C``, then ``A`` inherits from ``C``.
830
+
A class type is said to *inherit* from the base types. In addition, inheritance is transitive: If a type ``A`` inherits from a type ``B``, and ``B`` inherits from a type ``C``, then ``A`` inherits from ``C``.
831
831
832
832
A class adds a mapping from the class name to the class declaration to the current module's declared type environment.
833
833
@@ -1186,11 +1186,11 @@ If the call includes a closure, then all declared predicate arguments, the enclo
1186
1186
1187
1187
A call to a member predicate may be a *direct* call:
1188
1188
- If the receiver is not a super expression it is not direct.
1189
-
- The receiver is ``A.super`` and ``A`` is an instanceof type and not a base type then it is not direct.
1190
-
- The receiver is ``A.super`` and ``A`` is a base type type and not an instanceof type then it is direct.
1191
-
- If the receiver is ``A.super`` and ``A`` is a base type and an instanceof type then the call is not valid
1192
-
- The receiver is ``super`` and the member predicate is in the exported member predicate environment of an instanceof type and not in the exported member predicate environment of a base type then it isn't direct.
1193
-
- The receiver is ``super`` and the member predicate is in the exported member predicate environment of a base type and not in the exported member predicate environment of an instanceof type then it is direct.
1189
+
- If the receiver is ``A.super`` and ``A`` is an instanceof type and not a base type then it is not direct.
1190
+
- If the receiver is ``A.super`` and ``A`` is a base type type and not an instanceof type then it is direct.
1191
+
- If the receiver is ``A.super`` and ``A`` is a base type and an instanceof type then the call is not valid.
1192
+
- If the receiver is ``super`` and the member predicate is in the exported member predicate environment of an instanceof type and not in the exported member predicate environment of a base type then it isn't direct.
1193
+
- If the receiver is ``super`` and the member predicate is in the exported member predicate environment of a base type and not in the exported member predicate environment of an instanceof type then it is direct.
1194
1194
- If the receiver is ``super`` and the member predicate is in the exported member predicate environment of a base type and in the exported member predicate environment of an instanceof type then the call is not valid.
1195
1195
1196
1196
If the call resolves to a member predicate, then the *receiver values* are as follows. If the call has a receiver, then the receiver values are the values of that receiver. If the call does not have a receiver, then the single receiver value is the value of ``this`` in the contextual named tuple.
0 commit comments