|
41 | 41 | % version of the language which will actually be specified by the next stable
|
42 | 42 | % release of this document.
|
43 | 43 | %
|
| 44 | +% Sep 2025 |
| 45 | +% - Remove the rules about DartDoc comments. This topic is now handled by each |
| 46 | +% of the tools that process those comments in any way. |
| 47 | +% |
44 | 48 | % Jul 2025
|
45 | 49 | % - Clarify that operator `[]` and `[]=` are included in the `void` allowlist
|
46 | 50 | % rule about formal parameters of type `void`, and so are setters.
|
@@ -23406,40 +23410,15 @@ \subsubsection{Comments}
|
23406 | 23410 | Dart supports both single-line and multi-line comments.
|
23407 | 23411 | A \Index{single line comment} begins with the token \code{//}.
|
23408 | 23412 | Everything between \code{//} and the end of line
|
23409 |
| -must be ignored by the Dart compiler |
23410 |
| -unless the comment is a documentation comment. |
| 23413 | +must be ignored by the Dart compiler. |
23411 | 23414 |
|
23412 | 23415 | \LMHash{}%
|
23413 | 23416 | A \Index{multi-line comment} begins with the token \code{/*}
|
23414 | 23417 | and ends with the token \code{*/}.
|
23415 |
| -Everything between \code{/}* and \code{*}/ |
23416 |
| -must be ignored by the Dart compiler |
23417 |
| -unless the comment is a documentation comment. |
| 23418 | +Everything between \code{/*} and \code{*/} |
| 23419 | +must be ignored by the Dart compiler. |
23418 | 23420 | Comments may nest.
|
23419 | 23421 |
|
23420 |
| -\LMHash{}% |
23421 |
| -\IndexCustom{Documentation comments}{documentation comments} |
23422 |
| -are comments that begin with the tokens \code{///} or \code{/**}. |
23423 |
| -Documentation comments are intended to be processed by |
23424 |
| -a tool that produces human readable documentation. |
23425 |
| - |
23426 |
| -\LMHash{}% |
23427 |
| -The current scope for a documentation comment immediately preceding |
23428 |
| -the declaration of a class $C$ is the |
23429 |
| -\IndexCustom{body scope}{scope!for statement body} |
23430 |
| -of $C$. |
23431 |
| - |
23432 |
| -\LMHash{}% |
23433 |
| -The current scope for a documentation comment immediately preceding |
23434 |
| -the declaration of a non-redirecting generative constructor $k$ |
23435 |
| -with initializing formals is the formal parameter initializer scope of $k$ |
23436 |
| -(\ref{generativeConstructors}). |
23437 |
| - |
23438 |
| -\LMHash{}% |
23439 |
| -Otherwise, the current scope for a documentation comment immediately preceding |
23440 |
| -the declaration of a function $f$ is the formal parameter scope of $f$ |
23441 |
| -(\ref{formalParameters}). |
23442 |
| - |
23443 | 23422 |
|
23444 | 23423 | \subsection{Operator Precedence}
|
23445 | 23424 | \LMLabel{operatorPrecedence}
|
|
0 commit comments