Skip to content

Commit 812f939

Browse files
authored
Correct <partDeclaration> (#2280)
Correct the language specification grammar rule about `<partDeclaration>` such that it includes `<metadata>`.
1 parent 8fb9f0a commit 812f939

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

specification/dartLangSpec.tex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
% - Add several lexical rules about identifiers, clarifying different kinds.
4242
% - Clarify the conflicts between extension members and `Object` instance
4343
% members.
44+
% - Correct <partDeclaration> to include metadata.
4445
%
4546
% 2.14
4647
% - Add constraint on type of parameter which is covariant-by-declaration in
@@ -19772,7 +19773,8 @@ \subsection{Parts}
1977219773

1977319774
<partHeader> ::= <metadata> \PART{} \OF{} (<dottedIdentifierList> | <uri>) `;'
1977419775

19775-
<partDeclaration> ::= <partHeader> <topLevelDeclaration>* <EOF>
19776+
<partDeclaration> ::=
19777+
<partHeader> (<metadata> <topLevelDeclaration>)* <EOF>
1977619778
\end{grammar}
1977719779

1977819780
\LMHash{}%

0 commit comments

Comments
 (0)