Skip to content

Commit 444b100

Browse files
committed
Minor fix in definitions.qll
1 parent a9e93e5 commit 444b100

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

csharp/ql/src/definitions.qll

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,11 @@ private class TypeMentionUse extends Use, TypeMention {
154154
override predicate hasLocationInfo(
155155
string filepath, int startline, int startcolumn, int endline, int endcolumn
156156
) {
157-
this.getType() instanceof ConstructedType and
158157
Use.super.hasLocationInfo(filepath, startline, startcolumn, endline, _) and
159158
endcolumn =
160159
startcolumn +
161160
this.getType().(ConstructedType).getUnboundGeneric().getNameWithoutBrackets().length() - 1
162161
or
163-
this.getType() instanceof UnboundGenericType and
164162
Use.super.hasLocationInfo(filepath, startline, startcolumn, endline, _) and
165163
endcolumn =
166164
startcolumn + this.getType().(UnboundGenericType).getNameWithoutBrackets().length() - 1

0 commit comments

Comments
 (0)