Skip to content

Commit 20e8d48

Browse files
smowtonowen-mc
authored andcommitted
Add comment noting that a Method or Field might have multiple SourceOrSinkElements
1 parent 520acc4 commit 20e8d48

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

go/ql/lib/semmle/go/dataflow/internal/FlowSummaryImpl.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ module SourceSinkInterpretationInput implements
149149
)
150150
}
151151

152+
// Note that due to embedding, which is currently implemented via some Methods
153+
// or Fields having multiple qualified names, a given Method or Field is liable
154+
// to have more than one SourceOrSinkElement, one for each of the names it claims.
152155
private newtype TSourceOrSinkElement =
153156
TMethodEntityElement(Method m, string pkg, string type, boolean subtypes) {
154157
m.hasQualifiedName(pkg, type, _) and subtypes = [true, false]

0 commit comments

Comments
 (0)