Skip to content

Commit c9cf183

Browse files
committed
C#: Fix merge conflicts.
1 parent 08d13ea commit c9cf183

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

csharp/ql/src/semmle/code/csharp/frameworks/JsonNET.qll

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,26 +49,26 @@ module JsonNET {
4949
// ToString methods
5050
c = getAToStringMethod() and
5151
preservesValue = true and
52-
source = any(CallableFlowSourceArg arg | arg.getCallable() = c and arg.getArgumentIndex() = 0) and
52+
source = any(CallableFlowSourceArg arg | arg.getArgumentIndex() = 0) and
5353
sink instanceof CallableFlowSinkReturn
5454
or
5555
// Deserialize methods
5656
c = getADeserializeMethod() and
5757
preservesValue = false and
58-
source = any(CallableFlowSourceArg arg | arg.getCallable() = c and arg.getArgumentIndex() = 0) and
58+
source = any(CallableFlowSourceArg arg | arg.getArgumentIndex() = 0) and
5959
sink instanceof CallableFlowSinkReturn
6060
or
6161
// Serialize methods
6262
c = getASerializeMethod() and
6363
preservesValue = false and
64-
source = any(CallableFlowSourceArg arg | arg.getCallable() = c and arg.getArgumentIndex() = 0) and
64+
source = any(CallableFlowSourceArg arg | arg.getArgumentIndex() = 0) and
6565
sink instanceof CallableFlowSinkReturn
6666
or
6767
// Populate methods
6868
c = getAPopulateMethod() and
6969
preservesValue = false and
70-
source = any(CallableFlowSourceArg arg | arg.getCallable() = c and arg.getArgumentIndex() = 0) and
71-
sink = any(CallableFlowSinkArg arg | arg.getCallable() = c and arg.getArgumentIndex() = 1)
70+
source = any(CallableFlowSourceArg arg | arg.getArgumentIndex() = 0) and
71+
sink = any(CallableFlowSinkArg arg | arg.getArgumentIndex() = 1)
7272
}
7373
}
7474

@@ -144,14 +144,14 @@ module JsonNET {
144144
// Serialize
145145
c = this.getSerializeMethod() and
146146
preservesValue = false and
147-
source = any(CallableFlowSourceArg arg | arg.getCallable() = c and arg.getArgumentIndex() = 0) and
148-
sink = any(CallableFlowSinkArg arg | arg.getCallable() = c and arg.getArgumentIndex() = 1)
147+
source = any(CallableFlowSourceArg arg | arg.getArgumentIndex() = 0) and
148+
sink = any(CallableFlowSinkArg arg | arg.getArgumentIndex() = 1)
149149
or
150150
// Deserialize
151151
c = this.getDeserializeMethod() and
152152
preservesValue = false and
153-
source = any(CallableFlowSourceArg arg | arg.getCallable() = c and arg.getArgumentIndex() = 0) and
154-
sink = any(CallableFlowSinkArg arg | arg.getCallable() = c and arg.getArgumentIndex() = 1)
153+
source = any(CallableFlowSourceArg arg | arg.getArgumentIndex() = 0) and
154+
sink = any(CallableFlowSinkArg arg | arg.getArgumentIndex() = 1)
155155
}
156156
}
157157

@@ -203,15 +203,15 @@ module JsonNET {
203203
or
204204
// Parse method
205205
c = this.getParseMethod() and
206-
source = any(CallableFlowSourceArg arg | arg.getCallable() = c and arg.getArgumentIndex() = 0) and
206+
source = any(CallableFlowSourceArg arg | arg.getArgumentIndex() = 0) and
207207
sink instanceof CallableFlowSinkReturn and
208208
preservesValue = false
209209
or
210210
// operator string
211211
c = any(Operator op |
212212
op.getDeclaringType() = this.getABaseType*() and op.getReturnType() instanceof StringType
213213
) and
214-
source = any(CallableFlowSourceArg arg | arg.getCallable() = c and arg.getArgumentIndex() = 0) and
214+
source = any(CallableFlowSourceArg arg | arg.getArgumentIndex() = 0) and
215215
sink instanceof CallableFlowSinkReturn and
216216
preservesValue = false
217217
or

0 commit comments

Comments
 (0)