mirror of
https://github.com/github/codeql.git
synced 2025-12-20 02:44:30 +01:00
Python: small refactor (reviewer suggestion)
This commit is contained in:
@@ -263,10 +263,11 @@ module Impl implements RegexTreeViewSig {
|
|||||||
/* inclusive vs exclusive */
|
/* inclusive vs exclusive */
|
||||||
)
|
)
|
||||||
or
|
or
|
||||||
exists(StringPart part, int localOffset | part = this.getPart(localOffset) |
|
exists(StringPart part, int localOffset, int partStartColumn |
|
||||||
filepath = part.getLocation().getFile().getAbsolutePath() and
|
part = this.getPart(localOffset)
|
||||||
startline = part.getLocation().getStartLine() and
|
|
|
||||||
startcolumn = part.getLocation().getStartColumn() + localOffset and
|
part.getLocation().hasLocationInfo(filepath, startline, partStartColumn, _, _) and
|
||||||
|
startcolumn = partStartColumn + localOffset and
|
||||||
endline = startline and
|
endline = startline and
|
||||||
endcolumn = (end - start) + startcolumn
|
endcolumn = (end - start) + startcolumn
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user