File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 11{
2- "name" : " ng-language-service " ,
2+ "name" : " ng-template " ,
33 "displayName" : " Angular Language Service" ,
44 "description" : " Editor services for Angular templates" ,
5- "version" : " 0.1.6 " ,
5+ "version" : " 0.1.7 " ,
66 "publisher" : " Angular" ,
77 "icon" : " angular.png" ,
88 "engines" : {
Original file line number Diff line number Diff line change 11{
2- "name" : " ng-language-service " ,
2+ "name" : " ng-template " ,
33 "description" : " Angular Language Service." ,
4- "version" : " 0.1.6 " ,
4+ "version" : " 0.1.7 " ,
55 "author" : " Angular" ,
66 "license" : " MIT" ,
77 "engines" : {
Original file line number Diff line number Diff line change @@ -2749,6 +2749,7 @@ export class LineNode implements LineCollection {
27492749 // assume (rangeStart < this.totalChars) && (rangeLength <= this.totalChars)
27502750 let childIndex = 0 ;
27512751 let child = this . children [ 0 ] ;
2752+ if ( ! child ) return ;
27522753 let childCharCount = child . charCount ( ) ;
27532754 // find sub-tree containing start
27542755 let adjustedStart = rangeStart ;
@@ -2757,6 +2758,7 @@ export class LineNode implements LineCollection {
27572758 adjustedStart -= childCharCount ;
27582759 childIndex ++ ;
27592760 child = this . children [ childIndex ] ;
2761+ if ( ! child ) break ;
27602762 childCharCount = child . charCount ( ) ;
27612763 }
27622764 // Case I: both start and end of range in same subtree
@@ -2781,6 +2783,7 @@ export class LineNode implements LineCollection {
27812783 adjustedLength -= childCharCount ;
27822784 childIndex ++ ;
27832785 child = this . children [ childIndex ] ;
2786+ if ( ! child ) break ;
27842787 childCharCount = child . charCount ( ) ;
27852788 }
27862789 if ( adjustedLength > 0 ) {
You can’t perform that action at this time.
0 commit comments