| OLD | NEW |
| 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 analyzer.src.context.context; | 5 library analyzer.src.context.context; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 | 9 |
| 10 import 'package:analyzer/instrumentation/instrumentation.dart'; | 10 import 'package:analyzer/instrumentation/instrumentation.dart'; |
| (...skipping 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1080 // IMPORT_SOURCE_CLOSURE | 1080 // IMPORT_SOURCE_CLOSURE |
| 1081 setValue(INCLUDED_PARTS, Source.EMPTY_LIST); | 1081 setValue(INCLUDED_PARTS, Source.EMPTY_LIST); |
| 1082 setValue(IS_CLIENT, true); | 1082 setValue(IS_CLIENT, true); |
| 1083 setValue(IS_LAUNCHABLE, false); | 1083 setValue(IS_LAUNCHABLE, false); |
| 1084 setValue(LIBRARY_ELEMENT, library); | 1084 setValue(LIBRARY_ELEMENT, library); |
| 1085 setValue(LIBRARY_ELEMENT1, library); | 1085 setValue(LIBRARY_ELEMENT1, library); |
| 1086 setValue(LIBRARY_ELEMENT2, library); | 1086 setValue(LIBRARY_ELEMENT2, library); |
| 1087 setValue(LIBRARY_ELEMENT3, library); | 1087 setValue(LIBRARY_ELEMENT3, library); |
| 1088 setValue(LIBRARY_ELEMENT4, library); | 1088 setValue(LIBRARY_ELEMENT4, library); |
| 1089 setValue(LIBRARY_ELEMENT5, library); | 1089 setValue(LIBRARY_ELEMENT5, library); |
| 1090 setValue(LIBRARY_ELEMENT6, library); |
| 1090 setValue(LINE_INFO, new LineInfo(<int>[0])); | 1091 setValue(LINE_INFO, new LineInfo(<int>[0])); |
| 1091 setValue(PARSE_ERRORS, AnalysisError.NO_ERRORS); | 1092 setValue(PARSE_ERRORS, AnalysisError.NO_ERRORS); |
| 1092 entry.setState(PARSED_UNIT, CacheState.FLUSHED); | 1093 entry.setState(PARSED_UNIT, CacheState.FLUSHED); |
| 1093 entry.setState(RESOLVE_TYPE_NAMES_ERRORS, CacheState.FLUSHED); | 1094 entry.setState(RESOLVE_TYPE_NAMES_ERRORS, CacheState.FLUSHED); |
| 1094 setValue(SCAN_ERRORS, AnalysisError.NO_ERRORS); | 1095 setValue(SCAN_ERRORS, AnalysisError.NO_ERRORS); |
| 1095 setValue(SOURCE_KIND, SourceKind.LIBRARY); | 1096 setValue(SOURCE_KIND, SourceKind.LIBRARY); |
| 1096 entry.setState(TOKEN_STREAM, CacheState.FLUSHED); | 1097 entry.setState(TOKEN_STREAM, CacheState.FLUSHED); |
| 1097 setValue(UNITS, <Source>[librarySource]); | 1098 setValue(UNITS, <Source>[librarySource]); |
| 1098 | 1099 |
| 1099 LibrarySpecificUnit unit = | 1100 LibrarySpecificUnit unit = |
| (...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1971 PendingFuture pendingFuture = | 1972 PendingFuture pendingFuture = |
| 1972 new PendingFuture<T>(_context, target, computeValue); | 1973 new PendingFuture<T>(_context, target, computeValue); |
| 1973 if (!pendingFuture.evaluate(entry)) { | 1974 if (!pendingFuture.evaluate(entry)) { |
| 1974 _context._pendingFutureTargets | 1975 _context._pendingFutureTargets |
| 1975 .putIfAbsent(target, () => <PendingFuture>[]) | 1976 .putIfAbsent(target, () => <PendingFuture>[]) |
| 1976 .add(pendingFuture); | 1977 .add(pendingFuture); |
| 1977 } | 1978 } |
| 1978 return pendingFuture.future; | 1979 return pendingFuture.future; |
| 1979 } | 1980 } |
| 1980 } | 1981 } |
| OLD | NEW |