Skip to content

Commit b27d374

Browse files
committed
mention 'additional' and 'extensible' annotations
1 parent a6c1ffc commit b27d374

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

docs/codeql/ql-language-reference/annotations.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ For example, to declare a module ``M`` as private, you could use:
1616
}
1717
1818
Note that some annotations act on an entity itself, whilst others act on a particular *name* for the entity:
19-
- Act on an **entity**: ``abstract``, ``bindingset``, ``cached``, ``external``, ``language``,
19+
- Act on an **entity**: ``abstract``, ``bindingset``, ``cached``, ``extensible``, ``external``, ``language``,
2020
``override``, ``pragma``, and ``transient``
21-
- Act on a **name**: ``deprecated``, ``final``, ``library``, ``private``, and ``query``
21+
- Act on a **name**: ``additional``, ``deprecated``, ``final``, ``library``, ``private``, and ``query``
2222

2323
For example, if you annotate an entity with ``private``, then only that particular name is
2424
private. You could still access that entity under a different name (using an :ref:`alias <aliases>`).

docs/codeql/ql-language-reference/ql-language-specification.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,8 @@ A predicate definition adds a mapping from the predicate name and arity to the p
933933

934934
When a predicate is a top-level clause in a module, it is called a non-member predicate. See below for "`Member predicates <#member-predicates>`__."
935935

936-
A valid non-member predicate can be annotated with ``cached``, ``deprecated``, ``external``, ``transient``, ``private``, and ``query``. Note, the ``transient`` annotation can only be applied if the non-member predicate is also annotated with ``external``.
936+
A valid non-member predicate can be annotated with ``additional``, ``cached``, ``deprecated``, ``extensible``, ``external``, ``transient``, ``private``, and ``query``.
937+
Note, the ``transient`` annotation can only be applied if the non-member predicate is also annotated with ``external``.
937938

938939
The head of the predicate gives a name, an optional *result type*, and a sequence of variables declarations that are *arguments*:
939940

@@ -979,7 +980,7 @@ A class type is said to *final inherit* from base types that are final or refere
979980

980981
A class adds a mapping from the class name to the class declaration to the current module's declared type environment.
981982

982-
A valid class can be annotated with ``abstract``, ``final``, ``library``, and ``private``. Any other annotation renders the class invalid.
983+
A valid class can be annotated with ``abstract``, ``additional``, ``final``, ``library``, and ``private``. Any other annotation renders the class invalid.
983984

984985
A valid class may not inherit from itself, or from more than one primitive type. The set of types that a valid class inherits from must be disjoint from the set of types that it final inherits from.
985986

0 commit comments

Comments
 (0)