Skip to content

Commit

Permalink
Add comment noting that a Method or Field might have multiple SourceO…
Browse files Browse the repository at this point in the history
…rSinkElements
  • Loading branch information
smowton authored and owen-mc committed Nov 11, 2024
1 parent 520acc4 commit 20e8d48
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions go/ql/lib/semmle/go/dataflow/internal/FlowSummaryImpl.qll
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ module SourceSinkInterpretationInput implements
)
}

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

0 comments on commit 20e8d48

Please sign in to comment.