Files
sdk/pkg/dev_compiler/test/sourcemap/stacktrace_ddk_suite.dart
T
Nate Bosch aa246f6588 Add return types on all main declarations
Reduces the noise when disallowing implicit dynamic.

Change-Id: I98b03cb675ecd4b9e7f4135efa274fb57eb87832
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/104164
Reviewed-by: Nicholas Shahan <nshahan@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
2019-06-11 00:19:00 +00:00

33 lines
820 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 StackTraceContext();
}
class StackTraceContext extends ChainContextWithCleanupHelper
implements WithCompilerState {
@override
fe.InitializedCompilerState compilerState;
List<Step> _steps;
@override
List<Step> get steps {
return _steps ??= <Step>[
const Setup(),
const SetCwdToSdkRoot(),
TestStackTrace(
ddk.DevCompilerRunner(this, false), "ddk.", const ["ddk.", "ddc."]),
];
}
}
void main(List<String> arguments) =>
runMe(arguments, createContext, "testing.json");