@@ -99,8 +99,8 @@ private newtype TSummarizedCallableBase =
99
99
TSyntheticCallable ( SyntheticCallable c )
100
100
101
101
/**
102
- * A callable with a flow summary. This is either a regular `Callable` or a
103
- * `SyntheticCallable`.
102
+ * A callable that may have a flow summary. This is either a regular `Callable`
103
+ * or a `SyntheticCallable`.
104
104
*/
105
105
class SummarizedCallableBase extends TSummarizedCallableBase {
106
106
/** Gets a textual representation of this callable. */
@@ -149,9 +149,9 @@ class SummarizedCallableBase extends TSummarizedCallableBase {
149
149
Type getReturnType ( ) {
150
150
result = this .asCallable ( ) .getReturnType ( )
151
151
or
152
- result = this .asSyntheticCallable ( ) .getReturnType ( )
153
- or
154
152
exists ( SyntheticCallable sc | sc = this .asSyntheticCallable ( ) |
153
+ result = sc .getReturnType ( )
154
+ or
155
155
not exists ( sc .getReturnType ( ) ) and
156
156
result instanceof TypeObject
157
157
)
@@ -161,10 +161,10 @@ class SummarizedCallableBase extends TSummarizedCallableBase {
161
161
class SummarizedCallable = Impl:: Public:: SummarizedCallable ;
162
162
163
163
/**
164
- * An adaptor class to add the flow summaries specified on `SyntheticCallable`
164
+ * An adapter class to add the flow summaries specified on `SyntheticCallable`
165
165
* to `SummarizedCallable`.
166
166
*/
167
- private class SummarizedSyntheticCallableAdaptor extends SummarizedCallable , TSyntheticCallable {
167
+ private class SummarizedSyntheticCallableAdapter extends SummarizedCallable , TSyntheticCallable {
168
168
override predicate propagatesFlow (
169
169
SummaryComponentStack input , SummaryComponentStack output , boolean preservesValue
170
170
) {
0 commit comments