| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |