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

Side by Side Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 652903006: Issue 21373. Fix for removing line info in case of exception (causes NPE in outline computer). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine; 8 library engine;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 1992 matching lines...) Expand 10 before | Expand all | Expand 10 after
2003 _recordElementData( 2003 _recordElementData(
2004 dartEntry, 2004 dartEntry,
2005 library.libraryElement, 2005 library.libraryElement,
2006 librarySource, htmlSource); 2006 librarySource, htmlSource);
2007 } 2007 }
2008 _cache.storedAst(source); 2008 _cache.storedAst(source);
2009 } else { 2009 } else {
2010 dartEntry.recordResolutionErrorInLibrary( 2010 dartEntry.recordResolutionErrorInLibrary(
2011 librarySource, 2011 librarySource,
2012 thrownException); 2012 thrownException);
2013 _cache.remove(source);
2014 } 2013 }
2015 if (source != librarySource) { 2014 if (source != librarySource) {
2016 _workManager.add(source, SourcePriority.PRIORITY_PART); 2015 _workManager.add(source, SourcePriority.PRIORITY_PART);
2017 } 2016 }
2018 ChangeNoticeImpl notice = _getNotice(source); 2017 ChangeNoticeImpl notice = _getNotice(source);
2019 notice.compilationUnit = unit; 2018 notice.compilationUnit = unit;
2020 notice.setErrors(dartEntry.allErrors, lineInfo); 2019 notice.setErrors(dartEntry.allErrors, lineInfo);
2021 } 2020 }
2022 } 2021 }
2023 } 2022 }
(...skipping 11456 matching lines...) Expand 10 before | Expand all | Expand 10 after
13480 _index++; 13479 _index++;
13481 if (_index >= _manager._workQueues[_queueIndex].length) { 13480 if (_index >= _manager._workQueues[_queueIndex].length) {
13482 _index = 0; 13481 _index = 0;
13483 _queueIndex++; 13482 _queueIndex++;
13484 while (_queueIndex < _manager._workQueues.length && _manager._workQueues[_ queueIndex].isEmpty) { 13483 while (_queueIndex < _manager._workQueues.length && _manager._workQueues[_ queueIndex].isEmpty) {
13485 _queueIndex++; 13484 _queueIndex++;
13486 } 13485 }
13487 } 13486 }
13488 } 13487 }
13489 } 13488 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/analysis/notification_outline_test.dart ('k') | pkg/analyzer/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698