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

Side by Side Diff: pkg/analyzer/test/src/dart/analysis/physical_sdk.dart

Issue 2628743002: Run the most of error generating tests with the new analysis driver. (Closed)
Patch Set: Created 3 years, 11 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/analyzer/test/generated/strong_mode_test.dart ('k') | pkg/analyzer/test/utils.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 file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'package:analyzer/file_system/physical_file_system.dart'; 5 import 'package:analyzer/file_system/physical_file_system.dart';
6 import 'package:analyzer/src/dart/sdk/sdk.dart'; 6 import 'package:analyzer/src/dart/sdk/sdk.dart';
7 import 'package:analyzer/src/generated/engine.dart' show AnalysisOptionsImpl;
7 import 'package:analyzer/src/generated/sdk.dart'; 8 import 'package:analyzer/src/generated/sdk.dart';
8 9
9 final DartSdk sdk = new FolderBasedDartSdk(PhysicalResourceProvider.INSTANCE, 10 final DartSdk sdk = new FolderBasedDartSdk(PhysicalResourceProvider.INSTANCE,
10 FolderBasedDartSdk.defaultSdkDirectory(PhysicalResourceProvider.INSTANCE)) 11 FolderBasedDartSdk.defaultSdkDirectory(PhysicalResourceProvider.INSTANCE))
11 ..useSummary = true; 12 ..useSummary = true;
13
14 final DartSdk strongSdk = new FolderBasedDartSdk(PhysicalResourceProvider.INSTAN CE,
15 FolderBasedDartSdk.defaultSdkDirectory(PhysicalResourceProvider.INSTANCE))
16 ..analysisOptions = (new AnalysisOptionsImpl()..strongMode = true)
17 ..useSummary = true;
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/strong_mode_test.dart ('k') | pkg/analyzer/test/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698