| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 'dart:async'; | 5 import 'dart:async'; |
| 6 | 6 |
| 7 import 'package:analyzer/file_system/file_system.dart'; | 7 import 'package:analyzer/file_system/file_system.dart'; |
| 8 import 'package:analyzer/src/context/context.dart'; | 8 import 'package:analyzer/src/context/context.dart'; |
| 9 import 'package:analyzer/src/dart/analysis/byte_store.dart'; | 9 import 'package:analyzer/src/dart/analysis/byte_store.dart'; |
| 10 import 'package:analyzer/src/dart/analysis/driver.dart' as driver; | 10 import 'package:analyzer/src/dart/analysis/driver.dart' as driver; |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 110 |
| 111 var sourceFactory = | 111 var sourceFactory = |
| 112 new _SourceFactoryProxy(dartSdk, _pathToUriMap, _uriToPathMap); | 112 new _SourceFactoryProxy(dartSdk, _pathToUriMap, _uriToPathMap); |
| 113 var analysisOptions = new AnalysisOptionsImpl(); | 113 var analysisOptions = new AnalysisOptionsImpl(); |
| 114 _driver = new driver.AnalysisDriver( | 114 _driver = new driver.AnalysisDriver( |
| 115 _scheduler, | 115 _scheduler, |
| 116 performanceLog, | 116 performanceLog, |
| 117 _resourceProvider, | 117 _resourceProvider, |
| 118 byteStore, | 118 byteStore, |
| 119 fileContentOverlay, | 119 fileContentOverlay, |
| 120 'front_end', |
| 120 sourceFactory, | 121 sourceFactory, |
| 121 analysisOptions); | 122 analysisOptions); |
| 122 _isInitialized = true; | 123 _isInitialized = true; |
| 123 } | 124 } |
| 124 | 125 |
| 125 @override | 126 @override |
| 126 void invalidate(String path) { | 127 void invalidate(String path) { |
| 127 throw new UnimplementedError(); | 128 throw new UnimplementedError(); |
| 128 } | 129 } |
| 129 | 130 |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 class _SourceProxy extends BasicSource { | 271 class _SourceProxy extends BasicSource { |
| 271 @override | 272 @override |
| 272 final String fullName; | 273 final String fullName; |
| 273 | 274 |
| 274 _SourceProxy(Uri uri, this.fullName) : super(uri); | 275 _SourceProxy(Uri uri, this.fullName) : super(uri); |
| 275 | 276 |
| 276 int get modificationStamp => 0; | 277 int get modificationStamp => 0; |
| 277 | 278 |
| 278 noSuchMethod(Invocation invocation) => unimplemented(); | 279 noSuchMethod(Invocation invocation) => unimplemented(); |
| 279 } | 280 } |
| OLD | NEW |