From a905e30e47b5e9b5e9690ed0f17a27e0b1d29179 Mon Sep 17 00:00:00 2001 From: Ayman Nadeem Date: Tue, 24 Jul 2018 12:53:35 -0400 Subject: [PATCH] test field access --- .../{field-access.java => FieldAccess.A.java} | 0 test/fixtures/java/corpus/FieldAccess.B.java | 5 ++++ .../java/corpus/FieldAccess.diffA-B.txt | 23 +++++++++++++++++++ .../java/corpus/FieldAccess.diffB-A.txt | 23 +++++++++++++++++++ .../java/corpus/FieldAccess.parseA.txt | 14 +++++++++++ .../java/corpus/FieldAccess.parseB.txt | 19 +++++++++++++++ 6 files changed, 84 insertions(+) rename test/fixtures/java/corpus/{field-access.java => FieldAccess.A.java} (100%) create mode 100644 test/fixtures/java/corpus/FieldAccess.B.java create mode 100644 test/fixtures/java/corpus/FieldAccess.diffA-B.txt create mode 100644 test/fixtures/java/corpus/FieldAccess.diffB-A.txt create mode 100644 test/fixtures/java/corpus/FieldAccess.parseA.txt create mode 100644 test/fixtures/java/corpus/FieldAccess.parseB.txt diff --git a/test/fixtures/java/corpus/field-access.java b/test/fixtures/java/corpus/FieldAccess.A.java similarity index 100% rename from test/fixtures/java/corpus/field-access.java rename to test/fixtures/java/corpus/FieldAccess.A.java diff --git a/test/fixtures/java/corpus/FieldAccess.B.java b/test/fixtures/java/corpus/FieldAccess.B.java new file mode 100644 index 000000000..24ee8a00b --- /dev/null +++ b/test/fixtures/java/corpus/FieldAccess.B.java @@ -0,0 +1,5 @@ +class Grouped { + Flowable(K key) { + System.out.println(favorite().mountain); + } +} diff --git a/test/fixtures/java/corpus/FieldAccess.diffA-B.txt b/test/fixtures/java/corpus/FieldAccess.diffA-B.txt new file mode 100644 index 000000000..2f0e2ed1d --- /dev/null +++ b/test/fixtures/java/corpus/FieldAccess.diffA-B.txt @@ -0,0 +1,23 @@ +(Statements + (Class + (Identifier) + (Statements + (Constructor + (Identifier) + (Annotation + (Identifier) + (Identifier)) + (Statements + {+(Call + {+(MemberAccess + {+(MemberAccess + {+(Identifier)+})+})+} + {+(MemberAccess + {+(Call + {+(Identifier)+} + {+(Empty)+})+})+} + {+(Empty)+})+} + {-(Assignment + {-(MemberAccess + {-(This)-})-} + {-(Identifier)-})-}))))) diff --git a/test/fixtures/java/corpus/FieldAccess.diffB-A.txt b/test/fixtures/java/corpus/FieldAccess.diffB-A.txt new file mode 100644 index 000000000..4718bae4a --- /dev/null +++ b/test/fixtures/java/corpus/FieldAccess.diffB-A.txt @@ -0,0 +1,23 @@ +(Statements + (Class + (Identifier) + (Statements + (Constructor + (Identifier) + (Annotation + (Identifier) + (Identifier)) + (Statements + {+(Assignment + {+(MemberAccess + {+(This)+})+} + {+(Identifier)+})+} + {-(Call + {-(MemberAccess + {-(MemberAccess + {-(Identifier)-})-})-} + {-(MemberAccess + {-(Call + {-(Identifier)-} + {-(Empty)-})-})-} + {-(Empty)-})-}))))) diff --git a/test/fixtures/java/corpus/FieldAccess.parseA.txt b/test/fixtures/java/corpus/FieldAccess.parseA.txt new file mode 100644 index 000000000..873d606ef --- /dev/null +++ b/test/fixtures/java/corpus/FieldAccess.parseA.txt @@ -0,0 +1,14 @@ +(Statements + (Class + (Identifier) + (Statements + (Constructor + (Identifier) + (Annotation + (Identifier) + (Identifier)) + (Statements + (Assignment + (MemberAccess + (This)) + (Identifier))))))) diff --git a/test/fixtures/java/corpus/FieldAccess.parseB.txt b/test/fixtures/java/corpus/FieldAccess.parseB.txt new file mode 100644 index 000000000..940f3a775 --- /dev/null +++ b/test/fixtures/java/corpus/FieldAccess.parseB.txt @@ -0,0 +1,19 @@ +(Statements + (Class + (Identifier) + (Statements + (Constructor + (Identifier) + (Annotation + (Identifier) + (Identifier)) + (Statements + (Call + (MemberAccess + (MemberAccess + (Identifier))) + (MemberAccess + (Call + (Identifier) + (Empty))) + (Empty)))))))