Skip to content

Commit

Permalink
Rename getIntermediateEmbeddedType
Browse files Browse the repository at this point in the history
  • Loading branch information
owen-mc committed Nov 11, 2024
1 parent d3a6452 commit 13fb92a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/ql/lib/semmle/go/dataflow/internal/FlowSummaryImpl.qll
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ module SourceSinkInterpretationInput implements
or
// `syntacticQualBaseType`'s underlying type might be a struct type and `sse`
// might be a promoted method or field in it.
targetType = getIntermediateEmbeddedType(e, syntacticQualBaseType.getUnderlyingType())
targetType = getAnIntermediateEmbeddedType(e, syntacticQualBaseType.getUnderlyingType())
)
)
}
Expand All @@ -327,7 +327,7 @@ module SourceSinkInterpretationInput implements
* which is a promoted method or field of `st`, or its base type if it's a
* pointer type.
*/
private Type getIntermediateEmbeddedType(Entity e, StructType st) {
private Type getAnIntermediateEmbeddedType(Entity e, StructType st) {
exists(Field field1, Field field2, int depth1, int depth2, Type t2 |
field1 = st.getFieldAtDepth(_, depth1) and
field2 = st.getFieldAtDepth(_, depth2) and
Expand Down

0 comments on commit 13fb92a

Please sign in to comment.