| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 import 'dart:convert'; | 5 import 'dart:convert'; |
| 6 import 'dart:io' as io; | 6 import 'dart:io' as io; |
| 7 | 7 |
| 8 import '../lib/shared_messages.dart'; | 8 import 'package:dart_messages/shared_messages.dart'; |
| 9 | 9 |
| 10 const String jsonPath = '../lib/generated/shared_messages.json'; | 10 const String jsonPath = '../lib/generated/shared_messages.json'; |
| 11 const String dart2jsPath = | 11 const String dart2jsPath = |
| 12 '../../compiler/lib/src/diagnostics/generated/shared_messages.dart'; | 12 '../../compiler/lib/src/diagnostics/generated/shared_messages.dart'; |
| 13 const String analyzerPath = | 13 const String analyzerPath = |
| 14 '../../analyzer/lib/src/generated/generated/shared_messages.dart'; | 14 '../../analyzer/lib/src/generated/generated/shared_messages.dart'; |
| 15 | 15 |
| 16 final String dontEditWarning = """ | 16 final String dontEditWarning = """ |
| 17 /* | 17 /* |
| 18 DON'T EDIT. GENERATED. DON'T EDIT. | 18 DON'T EDIT. GENERATED. DON'T EDIT. |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 /// Translates the shared messages in `../lib/shared_messages.dart` to JSON, | 242 /// Translates the shared messages in `../lib/shared_messages.dart` to JSON, |
| 243 /// dart2js, and analyzer formats. | 243 /// dart2js, and analyzer formats. |
| 244 /// | 244 /// |
| 245 /// Emits the json-output to [jsonPath], the dart2js-output to [dart2jsPath], | 245 /// Emits the json-output to [jsonPath], the dart2js-output to [dart2jsPath], |
| 246 /// and the analyzer-output to [analyzerPath]. | 246 /// and the analyzer-output to [analyzerPath]. |
| 247 void main() { | 247 void main() { |
| 248 emitJson(); | 248 emitJson(); |
| 249 emitDart2js(); | 249 emitDart2js(); |
| 250 emitAnalyzer(); | 250 emitAnalyzer(); |
| 251 } | 251 } |
| OLD | NEW |