| OLD | NEW |
| 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:math" as math; | 10 import "dart:math" as math; |
| (...skipping 5080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5091 if (librarySources.length != 1) { | 5091 if (librarySources.length != 1) { |
| 5092 return false; | 5092 return false; |
| 5093 } | 5093 } |
| 5094 // do resolution | 5094 // do resolution |
| 5095 Source librarySource = librarySources[0]; | 5095 Source librarySource = librarySources[0]; |
| 5096 CompilationUnit oldUnit = | 5096 CompilationUnit oldUnit = |
| 5097 getResolvedCompilationUnit2(unitSource, librarySource); | 5097 getResolvedCompilationUnit2(unitSource, librarySource); |
| 5098 PoorMansIncrementalResolver resolver = new PoorMansIncrementalResolver( | 5098 PoorMansIncrementalResolver resolver = new PoorMansIncrementalResolver( |
| 5099 typeProvider, | 5099 typeProvider, |
| 5100 unitSource, | 5100 unitSource, |
| 5101 librarySource, | |
| 5102 dartEntry, | 5101 dartEntry, |
| 5103 analysisOptions.incrementalApi); | 5102 analysisOptions.incrementalApi); |
| 5104 bool success = resolver.resolve(oldUnit, newCode); | 5103 bool success = resolver.resolve(oldUnit, newCode); |
| 5105 if (!success) { | 5104 if (!success) { |
| 5106 return false; | 5105 return false; |
| 5107 } | 5106 } |
| 5108 // prepare notice | 5107 // prepare notice |
| 5109 ChangeNoticeImpl notice = _getNotice(unitSource); | 5108 ChangeNoticeImpl notice = _getNotice(unitSource); |
| 5110 notice.compilationUnit = oldUnit; | 5109 notice.compilationUnit = oldUnit; |
| 5111 // TODO(scheglov) apply updated errors | 5110 // TODO(scheglov) apply updated errors |
| (...skipping 5591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10703 cache.offset, | 10702 cache.offset, |
| 10704 cache.offset + cache.oldLength); | 10703 cache.offset + cache.oldLength); |
| 10705 // Update the resolution | 10704 // Update the resolution |
| 10706 TypeProvider typeProvider = this.typeProvider; | 10705 TypeProvider typeProvider = this.typeProvider; |
| 10707 if (_updatedUnit != null && typeProvider != null) { | 10706 if (_updatedUnit != null && typeProvider != null) { |
| 10708 CompilationUnitElement element = _updatedUnit.element; | 10707 CompilationUnitElement element = _updatedUnit.element; |
| 10709 if (element != null) { | 10708 if (element != null) { |
| 10710 LibraryElement library = element.library; | 10709 LibraryElement library = element.library; |
| 10711 if (library != null) { | 10710 if (library != null) { |
| 10712 IncrementalResolver resolver = new IncrementalResolver( | 10711 IncrementalResolver resolver = new IncrementalResolver( |
| 10713 typeProvider, | |
| 10714 element, | 10712 element, |
| 10715 cache.offset, | 10713 cache.offset, |
| 10716 cache.oldLength, | 10714 cache.oldLength, |
| 10717 cache.newLength); | 10715 cache.newLength); |
| 10718 resolver.resolve(parser.updatedNode); | 10716 resolver.resolve(parser.updatedNode); |
| 10719 } | 10717 } |
| 10720 } | 10718 } |
| 10721 } | 10719 } |
| 10722 } | 10720 } |
| 10723 } | 10721 } |
| (...skipping 3701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14425 | 14423 |
| 14426 @override | 14424 @override |
| 14427 Object visitPolymerTagDartElement(PolymerTagDartElement element) { | 14425 Object visitPolymerTagDartElement(PolymerTagDartElement element) { |
| 14428 if (element.name == PolymerHtmlUnitBuilder_this._elementName) { | 14426 if (element.name == PolymerHtmlUnitBuilder_this._elementName) { |
| 14429 throw new PolymerHtmlUnitBuilder_FoundTagDartElementError( | 14427 throw new PolymerHtmlUnitBuilder_FoundTagDartElementError( |
| 14430 element as PolymerTagDartElementImpl); | 14428 element as PolymerTagDartElementImpl); |
| 14431 } | 14429 } |
| 14432 return null; | 14430 return null; |
| 14433 } | 14431 } |
| 14434 } | 14432 } |
| OLD | NEW |