Skip to content

Commit

Permalink
Add missing QLDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
owen-mc committed Nov 6, 2024
1 parent 6e1c7f1 commit 3f4c6ba
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 @@ -174,10 +174,13 @@ module SourceSinkInterpretationInput implements
result = [this.asMethodEntity(), this.asFieldEntity(), this.asOtherEntity()]
}

/** Gets this source or sink element as a method, if it is one. */
Method asMethodEntity() { this = TMethodEntityElement(result, _, _, _) }

/** Gets this source or sink element as a field, if it is one. */
Field asFieldEntity() { this = TFieldEntityElement(result, _, _, _) }

/** Gets this source or sink element as an entity which isn't a field or method, if it is one. */
Entity asOtherEntity() { this = TOtherEntityElement(result) }

/** Gets this source or sink element as an AST node, if it is one. */
Expand Down

0 comments on commit 3f4c6ba

Please sign in to comment.