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

Side by Side Diff: lib/src/analysis_context.dart

Issue 1644823002: Remove library tags, they aren't needed (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 library dev_compiler.src.analysis_context;
6
7 import 'package:analyzer/src/generated/engine.dart'; 5 import 'package:analyzer/src/generated/engine.dart';
8 import 'package:analyzer/src/generated/java_io.dart' show JavaFile; 6 import 'package:analyzer/src/generated/java_io.dart' show JavaFile;
9 import 'package:analyzer/src/generated/sdk_io.dart' show DirectoryBasedDartSdk; 7 import 'package:analyzer/src/generated/sdk_io.dart' show DirectoryBasedDartSdk;
10 import 'package:analyzer/src/generated/source.dart' show DartUriResolver; 8 import 'package:analyzer/src/generated/source.dart' show DartUriResolver;
11 import 'package:analyzer/src/generated/source_io.dart'; 9 import 'package:analyzer/src/generated/source_io.dart';
12 10
13 import 'dart_sdk.dart'; 11 import 'dart_sdk.dart';
14 import 'multi_package_resolver.dart'; 12 import 'multi_package_resolver.dart';
15 import 'options.dart'; 13 import 'options.dart';
16 14
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 DartUriResolver createMockSdkResolver(Map<String, String> mockSources) => 67 DartUriResolver createMockSdkResolver(Map<String, String> mockSources) =>
70 new MockDartSdk(mockSources, reportMissing: true).resolver; 68 new MockDartSdk(mockSources, reportMissing: true).resolver;
71 69
72 /// Creates a [DartUriResolver] that uses the SDK at the given [sdkPath]. 70 /// Creates a [DartUriResolver] that uses the SDK at the given [sdkPath].
73 DartUriResolver createSdkPathResolver(String sdkPath) { 71 DartUriResolver createSdkPathResolver(String sdkPath) {
74 var sdk = new DirectoryBasedDartSdk( 72 var sdk = new DirectoryBasedDartSdk(
75 new JavaFile(sdkPath), /*useDart2jsPaths:*/ true); 73 new JavaFile(sdkPath), /*useDart2jsPaths:*/ true);
76 sdk.context.analysisOptions.strongMode = true; 74 sdk.context.analysisOptions.strongMode = true;
77 return new DartUriResolver(sdk); 75 return new DartUriResolver(sdk);
78 } 76 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698