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

Unified Diff: pkg/analyzer/lib/src/generated/constant.dart

Issue 674183002: Drop unnecessary toString() in interpolations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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 | « pkg/analyzer/lib/src/generated/ast.dart ('k') | pkg/analyzer/lib/src/generated/element.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/constant.dart
diff --git a/pkg/analyzer/lib/src/generated/constant.dart b/pkg/analyzer/lib/src/generated/constant.dart
index b34a67854f6bd53e1ee2f71f7b6b3dda85981949..23dec9e39e5d3102509ff25020007ff2c5fa544f 100644
--- a/pkg/analyzer/lib/src/generated/constant.dart
+++ b/pkg/analyzer/lib/src/generated/constant.dart
@@ -1926,7 +1926,7 @@ class DartObjectImpl implements DartObject {
return new DartObjectImpl(typeProvider.stringType, result);
}
// We should never get here.
- throw new IllegalStateException("add returned a ${result.runtimeType.toString()}");
+ throw new IllegalStateException("add returned a ${result.runtimeType}");
}
/**
@@ -2011,7 +2011,7 @@ class DartObjectImpl implements DartObject {
return new DartObjectImpl(typeProvider.numType, result);
}
// We should never get here.
- throw new IllegalStateException("divide returned a ${result.runtimeType.toString()}");
+ throw new IllegalStateException("divide returned a ${result.runtimeType}");
}
/**
@@ -2217,7 +2217,7 @@ class DartObjectImpl implements DartObject {
return new DartObjectImpl(typeProvider.numType, result);
}
// We should never get here.
- throw new IllegalStateException("minus returned a ${result.runtimeType.toString()}");
+ throw new IllegalStateException("minus returned a ${result.runtimeType}");
}
/**
@@ -2237,7 +2237,7 @@ class DartObjectImpl implements DartObject {
return new DartObjectImpl(typeProvider.numType, result);
}
// We should never get here.
- throw new IllegalStateException("negated returned a ${result.runtimeType.toString()}");
+ throw new IllegalStateException("negated returned a ${result.runtimeType}");
}
/**
@@ -2291,7 +2291,7 @@ class DartObjectImpl implements DartObject {
return new DartObjectImpl(typeProvider.numType, result);
}
// We should never get here.
- throw new IllegalStateException("remainder returned a ${result.runtimeType.toString()}");
+ throw new IllegalStateException("remainder returned a ${result.runtimeType}");
}
/**
@@ -2341,11 +2341,11 @@ class DartObjectImpl implements DartObject {
return new DartObjectImpl(typeProvider.numType, result);
}
// We should never get here.
- throw new IllegalStateException("times returned a ${result.runtimeType.toString()}");
+ throw new IllegalStateException("times returned a ${result.runtimeType}");
}
@override
- String toString() => "${type.displayName} (${_state.toString()})";
+ String toString() => "${type.displayName} ($_state)";
}
/**
« no previous file with comments | « pkg/analyzer/lib/src/generated/ast.dart ('k') | pkg/analyzer/lib/src/generated/element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698