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

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

Issue 310363002: Fix dart analyzer warnings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix errors 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 457db86b4bc8f5859c873f54ec3062447ff2a45a..4ac5eff90ae8d0a60aa46e7c25d6839b7c3da703 100644
--- a/tools/dom/src/html_native_DOMImplementation.dart
+++ b/tools/dom/src/html_native_DOMImplementation.dart
@@ -522,7 +522,8 @@ class _Utils {
static String describeFunction(function) {
if (function is _Trampoline) return function._methodMirror.source;
try {
- return reflect(function).function.source;
+ var mirror = reflect(function);
+ return mirror.function.source;
} catch (e) {
return function.toString();
}
@@ -627,7 +628,7 @@ class _Utils {
}
static void _fillMethodMirrorProperty(LibraryMirror libraryMirror,
- Mirror methodOwner, MethodMirror methodMirror, Symbol symbol,
+ methodOwner, MethodMirror methodMirror, Symbol symbol,
bool accessorPropertiesOnly, _Property property) {
if (methodMirror.isRegularMethod) {
property
@@ -673,7 +674,7 @@ class _Utils {
bool ownProperties, bool accessorPropertiesOnly,
bool hideFields, bool hideMethods,
Map<String, _Property> properties) {
- declarations.forEach((Symbol symbol, Mirror declaration) {
+ declarations.forEach((symbol, declaration) {
if (declaration is TypedefMirror || declaration is ClassMirror) return;
var name = _getShortSymbolName(symbol, declaration);
if (name.isEmpty) return;
« 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