| 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 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 821 space(); | 821 space(); |
| 822 token(node.leftParenthesis); | 822 token(node.leftParenthesis); |
| 823 if (node.loopVariable != null) { | 823 if (node.loopVariable != null) { |
| 824 visit(node.loopVariable); | 824 visit(node.loopVariable); |
| 825 } else { | 825 } else { |
| 826 visit(node.identifier); | 826 visit(node.identifier); |
| 827 } | 827 } |
| 828 space(); | 828 space(); |
| 829 token(node.inKeyword); | 829 token(node.inKeyword); |
| 830 space(); | 830 space(); |
| 831 visit(node.iterator); | 831 visit(node.iterable); |
| 832 token(node.rightParenthesis); | 832 token(node.rightParenthesis); |
| 833 space(); | 833 space(); |
| 834 visit(node.body); | 834 visit(node.body); |
| 835 } | 835 } |
| 836 | 836 |
| 837 visitFormalParameterList(FormalParameterList node) { | 837 visitFormalParameterList(FormalParameterList node) { |
| 838 var groupEnd = null; | 838 var groupEnd = null; |
| 839 token(node.leftParenthesis); | 839 token(node.leftParenthesis); |
| 840 var parameters = node.parameters; | 840 var parameters = node.parameters; |
| 841 var size = parameters.length; | 841 var size = parameters.length; |
| (...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1845 @override | 1845 @override |
| 1846 visitEnumConstantDeclaration(EnumConstantDeclaration node) { | 1846 visitEnumConstantDeclaration(EnumConstantDeclaration node) { |
| 1847 // TODO: implement visitEnumConstantDeclaration | 1847 // TODO: implement visitEnumConstantDeclaration |
| 1848 } | 1848 } |
| 1849 | 1849 |
| 1850 @override | 1850 @override |
| 1851 visitEnumDeclaration(EnumDeclaration node) { | 1851 visitEnumDeclaration(EnumDeclaration node) { |
| 1852 // TODO: implement visitEnumDeclaration | 1852 // TODO: implement visitEnumDeclaration |
| 1853 } | 1853 } |
| 1854 } | 1854 } |
| OLD | NEW |