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

Side by Side Diff: pkg/analyzer/lib/src/services/formatter_impl.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/analyzer/bin/formatter.dart ('k') | pkg/analyzer/lib/src/services/writer.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library formatter_impl; 5 library formatter_impl;
6 6
7 import 'dart:math'; 7 import 'dart:math';
8 8
9 import 'package:analyzer/analyzer.dart'; 9 import 'package:analyzer/analyzer.dart';
10 import 'package:analyzer/src/generated/parser.dart'; 10 import 'package:analyzer/src/generated/parser.dart';
(...skipping 1276 matching lines...) Expand 10 before | Expand all | Expand 10 after
1287 indent(); 1287 indent();
1288 newlines(); 1288 newlines();
1289 visitNodes(node.members, separatedBy: newlines, followedBy: newlines); 1289 visitNodes(node.members, separatedBy: newlines, followedBy: newlines);
1290 token(node.rightBracket, precededBy: unindent); 1290 token(node.rightBracket, precededBy: unindent);
1291 1291
1292 } 1292 }
1293 1293
1294 visitSymbolLiteral(SymbolLiteral node) { 1294 visitSymbolLiteral(SymbolLiteral node) {
1295 token(node.poundSign); 1295 token(node.poundSign);
1296 var components = node.components; 1296 var components = node.components;
1297 var size = components.length;
1298 for (var component in components) { 1297 for (var component in components) {
1299 // The '.' separator 1298 // The '.' separator
1300 if (component.previous.lexeme == '.') { 1299 if (component.previous.lexeme == '.') {
1301 token(component.previous); 1300 token(component.previous);
1302 } 1301 }
1303 token(component); 1302 token(component);
1304 } 1303 }
1305 } 1304 }
1306 1305
1307 visitThisExpression(ThisExpression node) { 1306 visitThisExpression(ThisExpression node) {
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
1845 @override 1844 @override
1846 visitEnumConstantDeclaration(EnumConstantDeclaration node) { 1845 visitEnumConstantDeclaration(EnumConstantDeclaration node) {
1847 // TODO: implement visitEnumConstantDeclaration 1846 // TODO: implement visitEnumConstantDeclaration
1848 } 1847 }
1849 1848
1850 @override 1849 @override
1851 visitEnumDeclaration(EnumDeclaration node) { 1850 visitEnumDeclaration(EnumDeclaration node) {
1852 // TODO: implement visitEnumDeclaration 1851 // TODO: implement visitEnumDeclaration
1853 } 1852 }
1854 } 1853 }
OLDNEW
« no previous file with comments | « pkg/analyzer/bin/formatter.dart ('k') | pkg/analyzer/lib/src/services/writer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698