Skip to content

Commit a73505e

Browse files
committed
language reference section on 'additional' annotation
1 parent ec90968 commit a73505e

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,20 @@ own body, or they must inherit from another class that overrides ``isSource``:
9797
// doesn't need to override `isSource`, because it inherits it from ConfigA
9898
}
9999
100+
.. index:: additional
101+
.. _additional:
102+
103+
``additional``
104+
============
105+
106+
**Available for**: |classes|, |algebraic datatypes|, |type unions|, |non-member predicates|, |modules|, |aliases|, |signatures|
107+
108+
The ``additional`` annotation can be used on declarations directly inside of modules that implement |module signatures|.
109+
All declarations in such modules that are not required by a module signature must be annotated with ``additional``.
110+
111+
Omitting ``additional`` on such declarations, or using the annotation in any other context, will result in a compiler error.
112+
Other than that, the annotation has no effect.
113+
100114
.. index:: cached
101115
.. _cached:
102116

0 commit comments

Comments
 (0)