Files
sdk/pkg/dev_compiler/test/sourcemap/stacktrace_ddk_suite.dart
T
Jenny Messerly f17ccdfbea fix #31782, implement not-null analysis for dartdevk
Conceptually this is a port of analyzer/nullable_type_inference.dart.
It contains some refactoring and other improvements, as well as tests.

Change-Id: I448440793f11e2e87583d9d47c0e6a1e54ae21f7
Reviewed-on: https://dart-review.googlesource.com/34308
Commit-Queue: Jenny Messerly <jmesserly@google.com>
Reviewed-by: Vijay Menon <vsm@google.com>
2018-01-12 22:40:50 +00:00

30 lines
798 B
Dart

import 'package:front_end/src/api_unstable/ddc.dart' as fe;
import 'package:testing/testing.dart';
import 'common.dart';
import 'ddc_common.dart';
import 'sourcemaps_ddk_suite.dart' as ddk;
Future<ChainContext> createContext(
Chain suite, Map<String, String> environment) async {
return new StackTraceContext();
}
class StackTraceContext extends ChainContextWithCleanupHelper
implements WithCompilerState {
fe.InitializedCompilerState compilerState;
List<Step> _steps;
List<Step> get steps {
return _steps ??= <Step>[
const Setup(),
const SetCwdToSdkRoot(),
new TestStackTrace(new ddk.DevCompilerRunner(this, false), "ddk.",
const ["ddk.", "ddc."]),
];
}
}
main(List<String> arguments) => runMe(arguments, createContext, "testing.json");