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

Unified Diff: lib/dom/scripts/systemhtml.py

Issue 9963123: Use a better error message when $!MEMBERS isn't used in a template file. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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: lib/dom/scripts/systemhtml.py
diff --git a/lib/dom/scripts/systemhtml.py b/lib/dom/scripts/systemhtml.py
index 16321dae9cc69b6a1a4fe151e19a192711b1d79c..10e8f1b5ff988169d1d082345502eb40fa9348e3 100644
--- a/lib/dom/scripts/systemhtml.py
+++ b/lib/dom/scripts/systemhtml.py
@@ -796,6 +796,9 @@ class HtmlFrogClassGenerator(FrogInterfaceGenerator):
EXTENDS=extends,
IMPLEMENTS=' implements ' + ', '.join(implements),
NATIVESPEC=' native "' + native_spec + '"')
+ if self._members_emitter == None:
+ raise Exception("Class %s doesn't use the $!MEMBERS variable" %
+ self._class_name)
# Emit a factory provider class for the constructor.
constructor_info = AnalyzeConstructor(interface)
« 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