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

Side by Side Diff: pkg/analyzer/lib/src/context/context.dart

Issue 1465303002: Propagate types for import/export closure before resolving. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/incremental_resolver.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after
1148 setValue(IMPORTED_LIBRARIES, Source.EMPTY_LIST); 1148 setValue(IMPORTED_LIBRARIES, Source.EMPTY_LIST);
1149 // IMPORT_SOURCE_CLOSURE 1149 // IMPORT_SOURCE_CLOSURE
1150 setValue(INCLUDED_PARTS, Source.EMPTY_LIST); 1150 setValue(INCLUDED_PARTS, Source.EMPTY_LIST);
1151 setValue(IS_LAUNCHABLE, false); 1151 setValue(IS_LAUNCHABLE, false);
1152 setValue(LIBRARY_ELEMENT, library); 1152 setValue(LIBRARY_ELEMENT, library);
1153 setValue(LIBRARY_ELEMENT1, library); 1153 setValue(LIBRARY_ELEMENT1, library);
1154 setValue(LIBRARY_ELEMENT2, library); 1154 setValue(LIBRARY_ELEMENT2, library);
1155 setValue(LIBRARY_ELEMENT3, library); 1155 setValue(LIBRARY_ELEMENT3, library);
1156 setValue(LIBRARY_ELEMENT4, library); 1156 setValue(LIBRARY_ELEMENT4, library);
1157 setValue(LIBRARY_ELEMENT5, library); 1157 setValue(LIBRARY_ELEMENT5, library);
1158 setValue(LIBRARY_ELEMENT6, library);
1159 setValue(LIBRARY_ELEMENT7, library);
1158 setValue(LINE_INFO, new LineInfo(<int>[0])); 1160 setValue(LINE_INFO, new LineInfo(<int>[0]));
1159 setValue(PARSE_ERRORS, AnalysisError.NO_ERRORS); 1161 setValue(PARSE_ERRORS, AnalysisError.NO_ERRORS);
1160 entry.setState(PARSED_UNIT, CacheState.FLUSHED); 1162 entry.setState(PARSED_UNIT, CacheState.FLUSHED);
1161 entry.setState(RESOLVE_TYPE_NAMES_ERRORS, CacheState.FLUSHED); 1163 entry.setState(RESOLVE_TYPE_NAMES_ERRORS, CacheState.FLUSHED);
1162 setValue(SCAN_ERRORS, AnalysisError.NO_ERRORS); 1164 setValue(SCAN_ERRORS, AnalysisError.NO_ERRORS);
1163 setValue(SOURCE_KIND, SourceKind.LIBRARY); 1165 setValue(SOURCE_KIND, SourceKind.LIBRARY);
1164 entry.setState(TOKEN_STREAM, CacheState.FLUSHED); 1166 entry.setState(TOKEN_STREAM, CacheState.FLUSHED);
1165 setValue(UNITS, <Source>[librarySource]); 1167 setValue(UNITS, <Source>[librarySource]);
1166 1168
1167 LibrarySpecificUnit unit = 1169 LibrarySpecificUnit unit =
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after
2154 DartSdk sdk = factory.dartSdk; 2156 DartSdk sdk = factory.dartSdk;
2155 if (sdk == null) { 2157 if (sdk == null) {
2156 throw new IllegalArgumentException( 2158 throw new IllegalArgumentException(
2157 "The source factory for an SDK analysis context must have a DartUriRes olver"); 2159 "The source factory for an SDK analysis context must have a DartUriRes olver");
2158 } 2160 }
2159 return new AnalysisCache(<CachePartition>[ 2161 return new AnalysisCache(<CachePartition>[
2160 AnalysisEngine.instance.partitionManager_new.forSdk(sdk) 2162 AnalysisEngine.instance.partitionManager_new.forSdk(sdk)
2161 ]); 2163 ]);
2162 } 2164 }
2163 } 2165 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/incremental_resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698