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

Unified Diff: pkg/analyzer/test/generated/all_the_rest.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/scanner.dart ('k') | pkg/analyzer/test/generated/parser_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/all_the_rest.dart
diff --git a/pkg/analyzer/test/generated/all_the_rest.dart b/pkg/analyzer/test/generated/all_the_rest.dart
index 8bfeefe1815d2f7088cf9ce1d2347f413ab1f6a5..fb99dca35116de1fbb31f5624b13421e0371eee3 100644
--- a/pkg/analyzer/test/generated/all_the_rest.dart
+++ b/pkg/analyzer/test/generated/all_the_rest.dart
@@ -10958,7 +10958,7 @@ class XmlValidator extends ht.RecursiveXmlVisitor<Object> {
Object visitXmlAttributeNode(ht.XmlAttributeNode actual) {
if (actual.parent is! ht.XmlTagNode) {
_errors.add(
- "Expected ${actual.runtimeType.toString()} to have parent of type XmlTagNode");
+ "Expected ${actual.runtimeType} to have parent of type XmlTagNode");
}
String actualName = actual.name;
String actualValue = actual.valueToken.lexeme;
@@ -10987,7 +10987,7 @@ class XmlValidator extends ht.RecursiveXmlVisitor<Object> {
Object visitXmlTagNode(ht.XmlTagNode actual) {
if (!(actual.parent is ht.HtmlUnit || actual.parent is ht.XmlTagNode)) {
_errors.add(
- "Expected ${actual.runtimeType.toString()} to have parent of type HtmlUnit or XmlTagNode");
+ "Expected ${actual.runtimeType} to have parent of type HtmlUnit or XmlTagNode");
}
if (_expectedTagsInOrderVisited != null) {
String actualTag = actual.tag;
@@ -11073,15 +11073,15 @@ class XmlValidator extends ht.RecursiveXmlVisitor<Object> {
}
void _validateNode(ht.XmlNode node) {
if (node.beginToken == null) {
- _errors.add("No begin token for ${node.runtimeType.toString()}");
+ _errors.add("No begin token for ${node.runtimeType}");
}
if (node.endToken == null) {
- _errors.add("No end token for ${node.runtimeType.toString()}");
+ _errors.add("No end token for ${node.runtimeType}");
}
int nodeStart = node.offset;
int nodeLength = node.length;
if (nodeStart < 0 || nodeLength < 0) {
- _errors.add("No source info for ${node.runtimeType.toString()}");
+ _errors.add("No source info for ${node.runtimeType}");
}
ht.XmlNode parent = node.parent;
if (parent != null) {
@@ -11090,11 +11090,11 @@ class XmlValidator extends ht.RecursiveXmlVisitor<Object> {
int parentEnd = parentStart + parent.length;
if (nodeStart < parentStart) {
_errors.add(
- "Invalid source start (${nodeStart}) for ${node.runtimeType.toString()} inside ${parent.runtimeType.toString()} (${parentStart})");
+ "Invalid source start (${nodeStart}) for ${node.runtimeType} inside ${parent.runtimeType} (${parentStart})");
}
if (nodeEnd > parentEnd) {
_errors.add(
- "Invalid source end (${nodeEnd}) for ${node.runtimeType.toString()} inside ${parent.runtimeType.toString()} (${parentStart})");
+ "Invalid source end (${nodeEnd}) for ${node.runtimeType} inside ${parent.runtimeType} (${parentStart})");
}
}
}
« no previous file with comments | « pkg/analyzer/lib/src/generated/scanner.dart ('k') | pkg/analyzer/test/generated/parser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698