File tree Expand file tree Collapse file tree 1 file changed +15
-16
lines changed
extensions/ql-vscode/src/log-insights Expand file tree Collapse file tree 1 file changed +15
-16
lines changed Original file line number Diff line number Diff line change @@ -75,9 +75,9 @@ async function generateSummarySymbols(summaryPath: string): Promise<SummarySymbo
7575 predicateName = nonRecursiveMatch . groups ! . predicateName ;
7676 } else {
7777 const recursiveMatch = startLine . match ( RECURSIVE_TUPLE_COUNT_REGEXP ) ;
78- if ( recursiveMatch ) {
79- predicateName = recursiveMatch . groups ! . predicateName ;
80- iteration = parseInt ( recursiveMatch . groups ! . iteration ) ;
78+ if ( recursiveMatch ?. groups ) {
79+ predicateName = recursiveMatch . groups . predicateName ;
80+ iteration = parseInt ( recursiveMatch . groups . iteration ) ;
8181 }
8282 }
8383
@@ -92,21 +92,20 @@ async function generateSummarySymbols(summaryPath: string): Promise<SummarySymbo
9292 }
9393 lineNumber ++ ;
9494 }
95- if ( raEndLine === undefined ) {
96- raEndLine = lineNumber - 1 ;
97- }
98- let symbol = symbols . predicates [ predicateName ] ;
99- if ( symbol === undefined ) {
100- symbol = {
101- iterations : { }
95+ if ( raEndLine !== undefined ) {
96+ let symbol = symbols . predicates [ predicateName ] ;
97+ if ( symbol === undefined ) {
98+ symbol = {
99+ iterations : { }
100+ } ;
101+ symbols . predicates [ predicateName ] = symbol ;
102+ }
103+ symbol . iterations [ iteration ] = {
104+ startLine : lineNumber ,
105+ raStartLine : raStartLine ,
106+ raEndLine : raEndLine
102107 } ;
103- symbols . predicates [ predicateName ] = symbol ;
104108 }
105- symbol . iterations [ iteration ] = {
106- startLine : lineNumber ,
107- raStartLine : raStartLine ,
108- raEndLine : raEndLine
109- } ;
110109 }
111110 }
112111
You can’t perform that action at this time.
0 commit comments