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

Side by Side Diff: pkg/front_end/test/fasta/sdk_test.dart

Issue 2828583003: remove dependencies to analyzer from lib/src/fasta (Closed)
Patch Set: rebase Created 3 years, 7 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/front_end/test/fasta/outline_test.dart ('k') | pkg/front_end/test/fasta/strong_test.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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 library fasta.test.compile_test; 5 library fasta.test.compile_test;
6 6
7 import 'dart:async' show Future; 7 import 'dart:async' show Future;
8 8
9 import 'package:front_end/src/fasta/testing/suite.dart'; 9 import 'testing/suite.dart';
10 10
11 import 'package:front_end/src/fasta/testing/kernel_chain.dart' 11 import 'package:front_end/src/fasta/testing/kernel_chain.dart'
12 show MatchExpectation; 12 show MatchExpectation;
13 13
14 Future<FastaContext> createContext( 14 Future<FastaContext> createContext(
15 Chain suite, Map<String, String> environment) async { 15 Chain suite, Map<String, String> environment) async {
16 environment[ENABLE_FULL_COMPILE] = ""; 16 environment[ENABLE_FULL_COMPILE] = "";
17 environment[AST_KIND_INDEX] = "${AstKind.Kernel.index}"; 17 environment[AST_KIND_INDEX] = "${AstKind.Kernel.index}";
18 FastaContext context = await FastaContext.create(suite, environment); 18 FastaContext context = await FastaContext.create(suite, environment);
19 int index; 19 int index;
20 for (int i = 0; i < context.steps.length; i++) { 20 for (int i = 0; i < context.steps.length; i++) {
21 if (context.steps[i] is MatchExpectation) { 21 if (context.steps[i] is MatchExpectation) {
22 index = i; 22 index = i;
23 break; 23 break;
24 } 24 }
25 } 25 }
26 context.steps.removeAt(index); 26 context.steps.removeAt(index);
27 return context; 27 return context;
28 } 28 }
29 29
30 main(List<String> arguments) => runMe(arguments, createContext); 30 main(List<String> arguments) => runMe(arguments, createContext);
OLDNEW
« no previous file with comments | « pkg/front_end/test/fasta/outline_test.dart ('k') | pkg/front_end/test/fasta/strong_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698