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

Unified Diff: sdk/lib/html/dartium/html_dartium.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, 6 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:
Download patch
« no previous file with comments | « no previous file | tools/dom/src/html_native_DOMImplementation.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index 8ae17712c11f59d627a603dc087d106b4ddadf48..c93a3d7470b56dec5a69372c02a2ffe4142ec34e 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -38013,7 +38013,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();
}
@@ -38118,7 +38119,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
@@ -38164,7 +38165,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 | « no previous file | tools/dom/src/html_native_DOMImplementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698