aboutsummaryrefslogtreecommitdiffstats
path: root/javaparser-symbol-solver-testing/src/test/resources/LocalVariableInParent.java.txt
diff options
context:
space:
mode:
Diffstat (limited to 'javaparser-symbol-solver-testing/src/test/resources/LocalVariableInParent.java.txt')
-rw-r--r--javaparser-symbol-solver-testing/src/test/resources/LocalVariableInParent.java.txt57
1 files changed, 57 insertions, 0 deletions
diff --git a/javaparser-symbol-solver-testing/src/test/resources/LocalVariableInParent.java.txt b/javaparser-symbol-solver-testing/src/test/resources/LocalVariableInParent.java.txt
new file mode 100644
index 000000000..066ab16f9
--- /dev/null
+++ b/javaparser-symbol-solver-testing/src/test/resources/LocalVariableInParent.java.txt
@@ -0,0 +1,57 @@
+import java.util.List;
+
+class Node {
+}
+
+class Comment {
+}
+
+class LocalVariableInParent {
+
+ void foo1() {
+ for (Node child : null){
+ String s;
+ for (Object c : null){
+ if (true){
+ s;
+ }
+ }
+ }
+ }
+
+ void foo3() {
+ for (Node child : null){
+ String s;
+ for (Object c : null){
+ s;
+ }
+ }
+ }
+
+ void foo2() {
+ for (Node child : null){
+ String s;
+ s;
+ }
+ }
+
+ void foo4() {
+ List<Node> children = node.getChildrenNodes();
+ for (Node child : children){
+ List<Comment> commentsInsideChild = new LinkedList<Comment>();
+ for (Comment c : commentsToAttribute){
+ if (true){
+ commentsInsideChild.add(c);
+ }
+ }
+ }
+ }
+
+ void foo5() {
+ List<Comment> commentsInsideChild;
+ Comment c;
+ commentsInsideChild.add(c);
+ }
+
+
+} \ No newline at end of file