Skip to content

Commit

Permalink
Allow doc comments to use formal parameter initializer scope (#3494)
Browse files Browse the repository at this point in the history
Allow doc comments to use the formal parameter initializer scope. In particular, a parameter of the form `this.name` is then in scope, as well as everything which was in scope before this change.
  • Loading branch information
parlough authored Jan 10, 2024
1 parent 85030bd commit d0d1659
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion specification/dartLangSpec.tex
Original file line number Diff line number Diff line change
Expand Up @@ -23076,7 +23076,14 @@ \subsubsection{Comments}

\LMHash{}%
The current scope for a documentation comment immediately preceding
the declaration of a function $f$ is the formal parameter scope of $f$.
the declaration of a non-redirecting generative constructor $k$
with initializing formals is the formal parameter initializer scope of $k$
(\ref{generativeConstructors}).

\LMHash{}%
Otherwise, the current scope for a documentation comment immediately preceding
the declaration of a function $f$ is the formal parameter scope of $f$
(\ref{formalParameters}).


\subsection{Operator Precedence}
Expand Down

0 comments on commit d0d1659

Please sign in to comment.