Skip to content

Commit

Permalink
Move variable declaration (preparatory to other refactoring)
Browse files Browse the repository at this point in the history
  • Loading branch information
mernst authored May 9, 2024
1 parent b18059c commit e41509c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ public S initialStore(UnderlyingAST underlyingAST, List<LocalVariableNode> param
}

} else if (underlyingAST.getKind() == UnderlyingAST.Kind.LAMBDA) {
CFGLambda lambda = (CFGLambda) underlyingAST;
if (fixedInitialStore != null) {
// Create a copy and keep only the field values (nothing else applies).
store = analysis.createCopiedStore(fixedInitialStore);
Expand All @@ -307,7 +308,6 @@ public S initialStore(UnderlyingAST underlyingAST, List<LocalVariableNode> param
store.initializeMethodParameter(p, analysis.createAbstractValue(anno));
}

CFGLambda lambda = (CFGLambda) underlyingAST;
@SuppressWarnings("interning:assignment") // used in == tests
@InternedDistinct Tree enclosingTree =
TreePathUtil.enclosingOfKind(
Expand Down

0 comments on commit e41509c

Please sign in to comment.