Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1062)

Side by Side Diff: pkg/analysis_server/tool/spec/check_all_test.dart

Issue 2966623003: Add the tests of the spec generator to the unit tests (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/analysis_server/test/test_all.dart ('k') | pkg/analyzer_plugin/test/test_all.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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:io'; 5 import 'dart:io';
6 6
7 import 'package:front_end/src/codegen/tools.dart'; 7 import 'package:front_end/src/codegen/tools.dart';
8 import 'package:path/path.dart'; 8 import 'package:path/path.dart';
9 9
10 import 'generate_all.dart'; 10 import 'generate_all.dart';
11 11
12 /** 12 /**
13 * Check that all targets have been code generated. If they haven't tell the 13 * Check that all targets have been code generated. If they haven't tell the
14 * user to run generate_all.dart. 14 * user to run generate_all.dart.
15 */ 15 */
16 main() { 16 main() {
17 String script = Platform.script.toFilePath(windows: Platform.isWindows); 17 String script = Platform.script.toFilePath(windows: Platform.isWindows);
18 String pkgPath = normalize(join(dirname(script), '..', '..')); 18 List<String> components = split(script);
19 GeneratedContent.checkAll(pkgPath, 'tool/spec/generate_all.dart', allTargets); 19 int index = components.indexOf('analysis_server');
20 String pkgPath = joinAll(components.sublist(0, index + 1));
21 GeneratedContent.checkAll(
22 pkgPath, join('tool', 'spec', 'generate_all.dart'), allTargets);
20 } 23 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/test_all.dart ('k') | pkg/analyzer_plugin/test/test_all.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698