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

Unified Diff: pkg/front_end/lib/src/fasta/testing/suite.dart

Issue 2726843003: Rename FeContext to FastaContext. (Closed)
Patch Set: Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/front_end/test/fasta/compile_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/testing/suite.dart
diff --git a/pkg/front_end/lib/src/fasta/testing/suite.dart b/pkg/front_end/lib/src/fasta/testing/suite.dart
index f4bd276ef5201ca26f456362a4092d3307c9ca0d..b8883e28e7bdebc5d0fba357da076b7708ac968b 100644
--- a/pkg/front_end/lib/src/fasta/testing/suite.dart
+++ b/pkg/front_end/lib/src/fasta/testing/suite.dart
@@ -63,7 +63,7 @@ String shortenAstKindName(AstKind astKind) {
throw "Unknown AST kind: $astKind";
}
-class FeContext extends TestContext {
+class FastaContext extends TestContext {
final TranslateUri uriTranslator;
final List<Step> steps;
@@ -73,7 +73,7 @@ class FeContext extends TestContext {
Future<Program> platform;
- FeContext(
+ FastaContext(
Uri sdk,
Uri vm,
Uri packages,
@@ -122,33 +122,36 @@ class FeContext extends TestContext {
});
}
- static Future<FeContext> create(
- Chain suite,
- Map<String, String> environment,
- Uri sdk,
- Uri vm,
- Uri packages,
- bool strongMode,
- DartSdk dartSdk,
- bool updateExpectations) async {
- TranslateUri uriTranslator = await TranslateUri.parse(packages);
- String astKindString = environment[AST_KIND_INDEX];
- AstKind astKind =
- astKindString == null ? null : AstKind.values[int.parse(astKindString)];
- return new FeContext(
- sdk,
- vm,
- packages,
- strongMode,
- dartSdk,
- updateExpectations,
- uriTranslator,
- environment.containsKey(ENABLE_FULL_COMPILE),
- astKind);
+ static Future<FastaContext> create(
+ Chain suite, Map<String, String> environment) async {
+ return TestContext.create(suite, environment, (Chain suite,
+ Map<String, String> environment,
+ Uri sdk,
+ Uri vm,
+ Uri packages,
+ bool strongMode,
+ DartSdk dartSdk,
+ bool updateExpectations) async {
+ TranslateUri uriTranslator = await TranslateUri.parse(packages);
+ String astKindString = environment[AST_KIND_INDEX];
+ AstKind astKind = astKindString == null
+ ? null
+ : AstKind.values[int.parse(astKindString)];
+ return new FastaContext(
+ sdk,
+ vm,
+ packages,
+ strongMode,
+ dartSdk,
+ updateExpectations,
+ uriTranslator,
+ environment.containsKey(ENABLE_FULL_COMPILE),
+ astKind);
+ });
}
}
-class Outline extends Step<TestDescription, Program, FeContext> {
+class Outline extends Step<TestDescription, Program, FastaContext> {
final bool fullCompile;
final AstKind astKind;
@@ -162,7 +165,7 @@ class Outline extends Step<TestDescription, Program, FeContext> {
bool get isCompiler => fullCompile;
Future<Result<Program>> run(
- TestDescription description, FeContext context) async {
+ TestDescription description, FastaContext context) async {
Program platform = await context.createPlatform();
Ticker ticker = new Ticker();
DillTarget dillTarget = new DillTarget(ticker, context.uriTranslator);
« no previous file with comments | « no previous file | pkg/front_end/test/fasta/compile_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698