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

Unified Diff: pkg/analyzer/test/generated/ast_test.dart

Issue 709493002: Fix 'Unused local variable' hints in analyzer and analysis_server. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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/test/file_system/memory_file_system_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/ast_test.dart
diff --git a/pkg/analyzer/test/generated/ast_test.dart b/pkg/analyzer/test/generated/ast_test.dart
index 58ea86fe1a4652037741709bebe8dbd1d147d068..f1ccfbf3d8d8a40cd9b4868659760fe8cb95d88b 100644
--- a/pkg/analyzer/test/generated/ast_test.dart
+++ b/pkg/analyzer/test/generated/ast_test.dart
@@ -957,8 +957,7 @@ class SimpleIdentifierTest extends ParserTestCase {
SimpleIdentifier identifier = AstFactory.identifier3("a");
Expression iterator = AstFactory.listLiteral([]);
Statement body = AstFactory.block([]);
- ForEachStatement forEachStatement =
- AstFactory.forEachStatement2(identifier, iterator, body);
+ AstFactory.forEachStatement2(identifier, iterator, body);
expect(identifier.inGetterContext(), isFalse);
}
@@ -990,8 +989,7 @@ class SimpleIdentifierTest extends ParserTestCase {
SimpleIdentifier identifier = AstFactory.identifier3("a");
Expression iterator = AstFactory.listLiteral([]);
Statement body = AstFactory.block([]);
- ForEachStatement forEachStatement =
- AstFactory.forEachStatement2(identifier, iterator, body);
+ AstFactory.forEachStatement2(identifier, iterator, body);
expect(identifier.inSetterContext(), isTrue);
}
@@ -1207,7 +1205,7 @@ class SimpleStringLiteralTest extends ParserTestCase {
class StringInterpolationTest extends ParserTestCase {
void test_contentsOffsetEnd() {
- var be = AstFactory.interpolationExpression(AstFactory.identifier3('bb'));
+ AstFactory.interpolationExpression(AstFactory.identifier3('bb'));
// 'a${bb}ccc'
{
var ae = AstFactory.interpolationString("'a", "a");
« no previous file with comments | « pkg/analyzer/test/file_system/memory_file_system_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698