@@ -207,30 +207,10 @@ private module Impl implements RegexTreeViewSig {
207
207
*/
208
208
Location getLocation ( ) { result = re .getLocation ( ) }
209
209
210
- /*
211
- * pragma[noinline]
212
- * private predicate componentHasLocationInfo(
213
- * int i, string filepath, int startline, int startcolumn, int endline, int endcolumn
214
- * ) {
215
- * re.getComponent(i)
216
- * .getLocation()
217
- * .hasLocationInfo(filepath, startline, startcolumn, endline, endcolumn)
218
- * }
219
- */
220
-
221
210
/** Holds if this term is found at the specified location offsets. */
222
211
predicate hasLocationInfo (
223
212
string filepath , int startline , int startcolumn , int endline , int endcolumn
224
213
) {
225
- /*
226
- * exists(int re_start |
227
- * this.componentHasLocationInfo(0, filepath, startline, re_start, _, _) and
228
- * this.componentHasLocationInfo(re.getNumberOfComponents() - 1, filepath, _, _, endline, _) and
229
- * startcolumn = re_start + start and
230
- * endcolumn = re_start + end - 1
231
- * )
232
- */
233
-
234
214
filepath = re .getFile ( ) .getAbsolutePath ( ) and
235
215
startline = re .getLocation ( ) .getStartLine ( ) and
236
216
startcolumn = re .getLocation ( ) .getStartColumn ( ) and
0 commit comments