Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8610)

Unified Diff: docs/language/dartLangSpec.tex

Issue 2371743002: Make it a compile-time error if a library has `part "uri";` twice for the same uri. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: docs/language/dartLangSpec.tex
diff --git a/docs/language/dartLangSpec.tex b/docs/language/dartLangSpec.tex
index cfd15366a65a5c01b149210f8a1bfb4a021a770d..363908843ef747097acecefef97f43cd83d5f173 100644
--- a/docs/language/dartLangSpec.tex
+++ b/docs/language/dartLangSpec.tex
@@ -6942,6 +6942,9 @@ A {\em part header} begins with \PART{} \OF{} followed by the name of the libr
\LMHash{}
Compiling a part directive of the form \code{\PART{} $s$;} causes the Dart system to attempt to compile the contents of the URI that is the value of $s$. The top-level declarations at that URI are then compiled by the Dart compiler in the scope of the current library. It is a compile-time error if the contents of the URI are not a valid part declaration. It is a static warning if the referenced part declaration $p$ names a library other than the current library as the library to which $p$ belongs.
+\LMHash{}
+It's a compile-time error if the same library contains two part directives with the same URI.
+
eernst 2016/09/26 14:26:36 At first, it seemed reasonable to put a criterion
Lasse Reichstein Nielsen 2016/09/26 16:40:57 I considered something similar. Since I wrote the
\subsection{Scripts}
\LMLabel{scripts}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698