| OLD | NEW |
| 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 'dart:async'; | 5 import 'dart:async'; |
| 6 import 'dart:collection'; | 6 import 'dart:collection'; |
| 7 import 'dart:typed_data'; | 7 import 'dart:typed_data'; |
| 8 | 8 |
| 9 import 'package:analyzer/context/declared_variables.dart'; | 9 import 'package:analyzer/context/declared_variables.dart'; |
| 10 import 'package:analyzer/dart/ast/ast.dart'; | 10 import 'package:analyzer/dart/ast/ast.dart'; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 * results are "eventually consistent" with the file system by simply calling | 65 * results are "eventually consistent" with the file system by simply calling |
| 66 * [changeFile] any time the contents of a file on the file system have changed. | 66 * [changeFile] any time the contents of a file on the file system have changed. |
| 67 * | 67 * |
| 68 * | 68 * |
| 69 * TODO(scheglov) Clean up the list of implicitly analyzed files. | 69 * TODO(scheglov) Clean up the list of implicitly analyzed files. |
| 70 */ | 70 */ |
| 71 class AnalysisDriver { | 71 class AnalysisDriver { |
| 72 /** | 72 /** |
| 73 * The version of data format, should be incremented on every format change. | 73 * The version of data format, should be incremented on every format change. |
| 74 */ | 74 */ |
| 75 static const int DATA_VERSION = 21; | 75 static const int DATA_VERSION = 22; |
| 76 | 76 |
| 77 /** | 77 /** |
| 78 * The number of exception contexts allowed to write. Once this field is | 78 * The number of exception contexts allowed to write. Once this field is |
| 79 * zero, we stop writing any new exception contexts in this process. | 79 * zero, we stop writing any new exception contexts in this process. |
| 80 */ | 80 */ |
| 81 static int allowedNumberOfContextsToWrite = 10; | 81 static int allowedNumberOfContextsToWrite = 10; |
| 82 | 82 |
| 83 /** | 83 /** |
| 84 * The name of the driver, e.g. the name of the folder. | 84 * The name of the driver, e.g. the name of the folder. |
| 85 */ | 85 */ |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 AnalysisDriver( | 240 AnalysisDriver( |
| 241 this._scheduler, | 241 this._scheduler, |
| 242 PerformanceLog logger, | 242 PerformanceLog logger, |
| 243 this._resourceProvider, | 243 this._resourceProvider, |
| 244 this._byteStore, | 244 this._byteStore, |
| 245 this._contentOverlay, | 245 this._contentOverlay, |
| 246 this.name, | 246 this.name, |
| 247 SourceFactory sourceFactory, | 247 SourceFactory sourceFactory, |
| 248 this._analysisOptions, | 248 this._analysisOptions, |
| 249 {PackageBundle sdkBundle, | 249 {PackageBundle sdkBundle, |
| 250 this.analyzeWithoutTasks: false}) | 250 this.analyzeWithoutTasks: true}) |
| 251 : _logger = logger, | 251 : _logger = logger, |
| 252 _sourceFactory = sourceFactory.clone(), | 252 _sourceFactory = sourceFactory.clone(), |
| 253 _sdkBundle = sdkBundle { | 253 _sdkBundle = sdkBundle { |
| 254 _testView = new AnalysisDriverTestView(this); | 254 _testView = new AnalysisDriverTestView(this); |
| 255 _createFileTracker(logger); | 255 _createFileTracker(logger); |
| 256 _scheduler._add(this); | 256 _scheduler._add(this); |
| 257 _search = new Search(this); | 257 _search = new Search(this); |
| 258 } | 258 } |
| 259 | 259 |
| 260 /** | 260 /** |
| (...skipping 1601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1862 libraryDeclarations.add(new TopLevelDeclarationInSource( | 1862 libraryDeclarations.add(new TopLevelDeclarationInSource( |
| 1863 file.source, declaration, isExported)); | 1863 file.source, declaration, isExported)); |
| 1864 } | 1864 } |
| 1865 } | 1865 } |
| 1866 } | 1866 } |
| 1867 | 1867 |
| 1868 // We're not done yet. | 1868 // We're not done yet. |
| 1869 return false; | 1869 return false; |
| 1870 } | 1870 } |
| 1871 } | 1871 } |
| OLD | NEW |