@@ -77,13 +77,11 @@ class ExternalApi extends DotNet::Callable {
77
77
78
78
/** Gets a node that is an output from a call to this API. */
79
79
private DataFlow:: Node getAnOutput ( ) {
80
- exists (
81
- Call c , DataFlowDispatch:: NonDelegateDataFlowCall dc , DataFlowImplCommon:: ReturnKindExt ret
82
- |
80
+ exists ( Call c , DataFlowDispatch:: NonDelegateDataFlowCall dc |
83
81
dc .getDispatchCall ( ) .getCall ( ) = c and
84
82
c .getTarget ( ) .getUnboundDeclaration ( ) = this
85
83
|
86
- result = ret . getAnOutNode ( dc )
84
+ result = DataFlowDispatch :: getAnOutNode ( dc , _ )
87
85
)
88
86
}
89
87
@@ -119,18 +117,17 @@ class ExternalApi extends DotNet::Callable {
119
117
}
120
118
121
119
/**
122
- * Gets the nested name of the declaration .
120
+ * Gets the nested name of the type `t` .
123
121
*
124
- * If the declaration is not a nested type, the result is the same as \`getName()\`.
122
+ * If the type is not a nested type, the result is the same as \`getName()\`.
125
123
* Otherwise the name of the nested type is prefixed with a \`+\` and appended to
126
124
* the name of the enclosing type, which might be a nested type as well.
127
125
*/
128
- private string nestedName ( Declaration declaration ) {
129
- not exists ( declaration .getDeclaringType ( ) .getUnboundDeclaration ( ) ) and
130
- result = declaration .getName ( )
126
+ private string nestedName ( Type t ) {
127
+ not exists ( t .getDeclaringType ( ) .getUnboundDeclaration ( ) ) and
128
+ result = t .getName ( )
131
129
or
132
- nestedName ( declaration .getDeclaringType ( ) .getUnboundDeclaration ( ) ) + "+" + declaration .getName ( ) =
133
- result
130
+ nestedName ( t .getDeclaringType ( ) .getUnboundDeclaration ( ) ) + "+" + t .getName ( ) = result
134
131
}
135
132
136
133
/**
0 commit comments