@@ -44,22 +44,11 @@ private predicate hasDelegateArgumentPosition2(SourceDeclarationCallable c, int
44
44
class CallableFlowSource extends TCallableFlowSource {
45
45
/** Gets a textual representation of this flow source specification. */
46
46
string toString ( ) { none ( ) }
47
-
48
- /** Gets the source of flow for call `c`, if any. */
49
- Expr getSource ( Call c ) { none ( ) }
50
-
51
- /**
52
- * Gets the type of the source for call `c`. Unlike `getSource()`, this
53
- * is defined for all flow source specifications.
54
- */
55
- Type getSourceType ( Call c ) { result = this .getSource ( c ) .getType ( ) }
56
47
}
57
48
58
49
/** A flow source specification: (method call) qualifier. */
59
50
class CallableFlowSourceQualifier extends CallableFlowSource , TCallableFlowSourceQualifier {
60
51
override string toString ( ) { result = "qualifier" }
61
-
62
- override Expr getSource ( Call c ) { result = c .getChild ( - 1 ) }
63
52
}
64
53
65
54
/** A flow source specification: (method call) argument. */
@@ -68,12 +57,7 @@ class CallableFlowSourceArg extends CallableFlowSource, TCallableFlowSourceArg {
68
57
69
58
CallableFlowSourceArg ( ) { this = TCallableFlowSourceArg ( i ) }
70
59
71
- /** Gets the index of this argument. */
72
- int getArgumentIndex ( ) { result = i }
73
-
74
60
override string toString ( ) { result = "argument " + i }
75
-
76
- override Expr getSource ( Call c ) { result = c .getArgument ( i ) }
77
61
}
78
62
79
63
/** A flow source specification: output from delegate argument. */
@@ -82,14 +66,7 @@ class CallableFlowSourceDelegateArg extends CallableFlowSource, TCallableFlowSou
82
66
83
67
CallableFlowSourceDelegateArg ( ) { this = TCallableFlowSourceDelegateArg ( i ) }
84
68
85
- /** Gets the index of this delegate argument. */
86
- int getArgumentIndex ( ) { result = i }
87
-
88
69
override string toString ( ) { result = "output from argument " + i }
89
-
90
- override Expr getSource ( Call c ) { none ( ) }
91
-
92
- override Type getSourceType ( Call c ) { result = c .getArgument ( i ) .getType ( ) }
93
70
}
94
71
95
72
/** A specification of data flow for a library (non-source code) type. */
0 commit comments