Skip to content

Commit

Permalink
Spotless fix and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
oxisto committed Nov 29, 2023
1 parent 2cfd0d0 commit 9626e2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -474,5 +474,4 @@ class GoExtraPass(ctx: TranslationContext) : ComponentPass(ctx), ScopeProvider {
override fun cleanup() {
// Nothing to do
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,10 @@ class PythonAddDeclarationsPass(ctx: TranslationContext) : ComponentPass(ctx), S
val decl = handleReference(it)
if (decl != null) {
// We cannot assign an initializer here because this will lead to duplicate
// DFG edges, but we need to propagate the type information
// DFG edges, but we need to propagate the type information from our value
// to the declaration. We therefore add the declaration to the observers of
// the value's type, so that it gets informed and can change its own type
// accordingly.
assignExpression
.findValue(it)
?.registerTypeObserver(InitializerTypePropagation(decl))
Expand Down

0 comments on commit 9626e2d

Please sign in to comment.