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/dart/ast/ast.dart'; | 7 import 'package:analyzer/dart/ast/ast.dart'; |
8 import 'package:analyzer/file_system/file_system.dart'; | 8 import 'package:analyzer/file_system/file_system.dart'; |
9 import 'package:analyzer/src/context/context.dart'; | 9 import 'package:analyzer/src/context/context.dart'; |
10 import 'package:analyzer/src/dart/analysis/byte_store.dart'; | 10 import 'package:analyzer/src/dart/analysis/byte_store.dart'; |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 new SourceFactory([new DartUriResolver(dartSdk)]); | 123 new SourceFactory([new DartUriResolver(dartSdk)]); |
124 | 124 |
125 var sourceFactory = new _SourceFactoryProxy(dartSdk, _fileRepository); | 125 var sourceFactory = new _SourceFactoryProxy(dartSdk, _fileRepository); |
126 var analysisOptions = new AnalysisOptionsImpl(); | 126 var analysisOptions = new AnalysisOptionsImpl(); |
127 _driver = new driver.AnalysisDriver( | 127 _driver = new driver.AnalysisDriver( |
128 _scheduler, | 128 _scheduler, |
129 performanceLog, | 129 performanceLog, |
130 _resourceProvider, | 130 _resourceProvider, |
131 byteStore, | 131 byteStore, |
132 fileContentOverlay, | 132 fileContentOverlay, |
133 'front_end', | 133 null, |
134 sourceFactory, | 134 sourceFactory, |
135 analysisOptions, | 135 analysisOptions, |
136 sdkBundle: sdkBundle); | 136 sdkBundle: sdkBundle); |
137 _isInitialized = true; | 137 _isInitialized = true; |
138 } | 138 } |
139 | 139 |
140 @override | 140 @override |
141 void invalidate(String path) { | 141 void invalidate(String path) { |
142 throw new UnimplementedError(); | 142 throw new UnimplementedError(); |
143 } | 143 } |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 class _SourceProxy extends BasicSource { | 293 class _SourceProxy extends BasicSource { |
294 @override | 294 @override |
295 final String fullName; | 295 final String fullName; |
296 | 296 |
297 _SourceProxy(Uri uri, this.fullName) : super(uri); | 297 _SourceProxy(Uri uri, this.fullName) : super(uri); |
298 | 298 |
299 int get modificationStamp => 0; | 299 int get modificationStamp => 0; |
300 | 300 |
301 noSuchMethod(Invocation invocation) => unimplemented(); | 301 noSuchMethod(Invocation invocation) => unimplemented(); |
302 } | 302 } |
OLD | NEW |