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

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

Issue 2302993003: Fix recently introduced strong mode errors (Closed)
Patch Set: Created 4 years, 3 months 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 | « pkg/analyzer/lib/src/summary/summarize_ast.dart ('k') | no next file » | 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.task.dart; 5 library analyzer.src.task.dart;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/dart/ast/ast.dart'; 9 import 'package:analyzer/dart/ast/ast.dart';
10 import 'package:analyzer/dart/ast/token.dart'; 10 import 'package:analyzer/dart/ast/token.dart';
(...skipping 1578 matching lines...) Expand 10 before | Expand all | Expand 10 after
1589 } 1589 }
1590 // 1590 //
1591 // Try to get the existing LibraryElement. 1591 // Try to get the existing LibraryElement.
1592 // 1592 //
1593 LibraryElementImpl libraryElement; 1593 LibraryElementImpl libraryElement;
1594 { 1594 {
1595 InternalAnalysisContext internalContext = 1595 InternalAnalysisContext internalContext =
1596 context as InternalAnalysisContext; 1596 context as InternalAnalysisContext;
1597 AnalysisCache analysisCache = internalContext.analysisCache; 1597 AnalysisCache analysisCache = internalContext.analysisCache;
1598 CacheEntry cacheEntry = internalContext.getCacheEntry(target); 1598 CacheEntry cacheEntry = internalContext.getCacheEntry(target);
1599 libraryElement = analysisCache.getValue(target, LIBRARY_ELEMENT1); 1599 libraryElement = analysisCache.getValue(target, LIBRARY_ELEMENT1) as Libra ryElementImpl;
1600 if (libraryElement == null && 1600 if (libraryElement == null &&
1601 internalContext.aboutToComputeResult(cacheEntry, LIBRARY_ELEMENT1)) { 1601 internalContext.aboutToComputeResult(cacheEntry, LIBRARY_ELEMENT1)) {
1602 libraryElement = analysisCache.getValue(target, LIBRARY_ELEMENT1); 1602 libraryElement = analysisCache.getValue(target, LIBRARY_ELEMENT1) as Lib raryElementImpl;
1603 } 1603 }
1604 } 1604 }
1605 // 1605 //
1606 // Create a new LibraryElement. 1606 // Create a new LibraryElement.
1607 // 1607 //
1608 if (libraryElement == null) { 1608 if (libraryElement == null) {
1609 libraryElement = 1609 libraryElement =
1610 new LibraryElementImpl.forNode(owningContext, libraryNameNode); 1610 new LibraryElementImpl.forNode(owningContext, libraryNameNode);
1611 libraryElement.synthetic = modificationTime < 0; 1611 libraryElement.synthetic = modificationTime < 0;
1612 libraryElement.definingCompilationUnit = definingCompilationUnitElement; 1612 libraryElement.definingCompilationUnit = definingCompilationUnitElement;
(...skipping 4740 matching lines...) Expand 10 before | Expand all | Expand 10 after
6353 6353
6354 @override 6354 @override
6355 bool moveNext() { 6355 bool moveNext() {
6356 if (_newSources.isEmpty) { 6356 if (_newSources.isEmpty) {
6357 return false; 6357 return false;
6358 } 6358 }
6359 currentTarget = _newSources.removeLast(); 6359 currentTarget = _newSources.removeLast();
6360 return true; 6360 return true;
6361 } 6361 }
6362 } 6362 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/summary/summarize_ast.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698