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

Unified Diff: tools/dom/src/html_native_DOMImplementation.dart

Issue 313763002: Ignore mirrors without valid names. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 | « sdk/lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/src/html_native_DOMImplementation.dart
diff --git a/tools/dom/src/html_native_DOMImplementation.dart b/tools/dom/src/html_native_DOMImplementation.dart
index 701379796bc994b3b7bf9e96832d57e66e0dbaec..457db86b4bc8f5859c873f54ec3062447ff2a45a 100644
--- a/tools/dom/src/html_native_DOMImplementation.dart
+++ b/tools/dom/src/html_native_DOMImplementation.dart
@@ -598,6 +598,7 @@ class _Utils {
var libraryMirror = classMirror.owner;
classMirror.declarations.forEach((symbol, declaration) {
var name = _getShortSymbolName(symbol, declaration);
+ if (name.isEmpty) return;
if (declaration is VariableMirror) {
if (accessorPropertiesOnly) return;
if (!declaration.isStatic) return;
@@ -675,6 +676,7 @@ class _Utils {
declarations.forEach((Symbol symbol, Mirror declaration) {
if (declaration is TypedefMirror || declaration is ClassMirror) return;
var name = _getShortSymbolName(symbol, declaration);
+ if (name.isEmpty) return;
bool isField = declaration is VariableMirror ||
(declaration is MethodMirror &&
treatPropertyAsField(declaration, libraryMirror));
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698