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 /// Tools to help implement refactoring like transformations to Dart code. | 5 /// Tools to help implement refactoring like transformations to Dart code. |
6 /// | 6 /// |
7 /// [TextEditTransaction] supports making a series of changes to a text buffer. | 7 /// [TextEditTransaction] supports making a series of changes to a text buffer. |
8 /// [guessIndent] helps to guess the appropriate indentiation for the new code. | 8 /// [guessIndent] helps to guess the appropriate indentiation for the new code. |
9 library source_maps.refactor; | 9 library source_maps.refactor; |
10 | 10 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 } | 124 } |
125 } | 125 } |
126 | 126 |
127 return code.substring(lineStart, whitespaceEnd); | 127 return code.substring(lineStart, whitespaceEnd); |
128 } | 128 } |
129 | 129 |
130 const int _CR = 13; | 130 const int _CR = 13; |
131 const int _LF = 10; | 131 const int _LF = 10; |
132 const int _TAB = 9; | 132 const int _TAB = 9; |
133 const int _SPACE = 32; | 133 const int _SPACE = 32; |
OLD | NEW |