Skip to content

Commit d0d1659

Browse files
authored
Allow doc comments to use formal parameter initializer scope (#3494)
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.
1 parent 85030bd commit d0d1659

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

specification/dartLangSpec.tex

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23076,7 +23076,14 @@ \subsubsection{Comments}
2307623076

2307723077
\LMHash{}%
2307823078
The current scope for a documentation comment immediately preceding
23079-
the declaration of a function $f$ is the formal parameter scope of $f$.
23079+
the declaration of a non-redirecting generative constructor $k$
23080+
with initializing formals is the formal parameter initializer scope of $k$
23081+
(\ref{generativeConstructors}).
23082+
23083+
\LMHash{}%
23084+
Otherwise, the current scope for a documentation comment immediately preceding
23085+
the declaration of a function $f$ is the formal parameter scope of $f$
23086+
(\ref{formalParameters}).
2308023087

2308123088

2308223089
\subsection{Operator Precedence}

0 commit comments

Comments
 (0)