OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 dart2js.util.command_line; | 5 library dart2js.util.command_line; |
6 | 6 |
7 /// The accepted escapes in the input of the --batch processor. | 7 /// The accepted escapes in the input of the --batch processor. |
8 /// | 8 /// |
9 /// Contrary to Dart strings it does not contain hex escapes (\u or \x). | 9 /// Contrary to Dart strings it does not contain hex escapes (\u or \x). |
10 Map<String, String> ESCAPE_MAPPING = | 10 Map<String, String> ESCAPE_MAPPING = |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 buffer.clear(); | 69 buffer.clear(); |
70 continue; | 70 continue; |
71 } | 71 } |
72 buffer.write(c); | 72 buffer.write(c); |
73 } | 73 } |
74 if (inQuotes) throw new FormatException("Unclosed quotes: $line"); | 74 if (inQuotes) throw new FormatException("Unclosed quotes: $line"); |
75 if (buffer.isNotEmpty) result.add(buffer.toString()); | 75 if (buffer.isNotEmpty) result.add(buffer.toString()); |
76 return result; | 76 return result; |
77 } | 77 } |
78 | 78 |
OLD | NEW |