From 6e82ab5410f4d035ad99f51954cdea4f6a8dff89 Mon Sep 17 00:00:00 2001 From: Ayman Nadeem Date: Tue, 24 Jul 2018 17:31:50 -0400 Subject: [PATCH] llama expression --- .../corpus/{lambda.java => Lambda.A.java} | 0 test/fixtures/java/corpus/Lambda.B.java | 5 ++++ test/fixtures/java/corpus/Lambda.diffA-B.txt | 26 +++++++++++++++++++ test/fixtures/java/corpus/Lambda.diffB-A.txt | 26 +++++++++++++++++++ test/fixtures/java/corpus/Lambda.parseA.txt | 13 ++++++++++ test/fixtures/java/corpus/Lambda.parseB.txt | 22 ++++++++++++++++ 6 files changed, 92 insertions(+) rename test/fixtures/java/corpus/{lambda.java => Lambda.A.java} (100%) create mode 100644 test/fixtures/java/corpus/Lambda.B.java create mode 100644 test/fixtures/java/corpus/Lambda.diffA-B.txt create mode 100644 test/fixtures/java/corpus/Lambda.diffB-A.txt create mode 100644 test/fixtures/java/corpus/Lambda.parseA.txt create mode 100644 test/fixtures/java/corpus/Lambda.parseB.txt diff --git a/test/fixtures/java/corpus/lambda.java b/test/fixtures/java/corpus/Lambda.A.java similarity index 100% rename from test/fixtures/java/corpus/lambda.java rename to test/fixtures/java/corpus/Lambda.A.java diff --git a/test/fixtures/java/corpus/Lambda.B.java b/test/fixtures/java/corpus/Lambda.B.java new file mode 100644 index 000000000..ac7696f67 --- /dev/null +++ b/test/fixtures/java/corpus/Lambda.B.java @@ -0,0 +1,5 @@ +class LambdaTest { + void singleton() { + stateOwner.add(x -> System.out.println("State changed")); + } +} diff --git a/test/fixtures/java/corpus/Lambda.diffA-B.txt b/test/fixtures/java/corpus/Lambda.diffA-B.txt new file mode 100644 index 000000000..b649a9532 --- /dev/null +++ b/test/fixtures/java/corpus/Lambda.diffA-B.txt @@ -0,0 +1,26 @@ +(Statements + (Class + (Identifier) + (Statements + (Method + (Void) + (Empty) + (Identifier) + (Statements + {+(Call + {+(MemberAccess + {+(Identifier)+})+} + {+(Lambda + {+(Identifier)+} + {+(LambdaBody + {+(Call + {+(MemberAccess + {+(MemberAccess + {+(Identifier)+})+})+} + {+(TextElement)+} + {+(Empty)+})+})+})+} + {+(Empty)+})+} + {-(Lambda + {-(Identifier)-} + {-(LambdaBody + {-(Identifier)-})-})-}))))) diff --git a/test/fixtures/java/corpus/Lambda.diffB-A.txt b/test/fixtures/java/corpus/Lambda.diffB-A.txt new file mode 100644 index 000000000..001ac87d5 --- /dev/null +++ b/test/fixtures/java/corpus/Lambda.diffB-A.txt @@ -0,0 +1,26 @@ +(Statements + (Class + (Identifier) + (Statements + (Method + (Void) + (Empty) + (Identifier) + (Statements + {+(Lambda + {+(Identifier)+} + {+(LambdaBody + {+(Identifier)+})+})+} + {-(Call + {-(MemberAccess + {-(Identifier)-})-} + {-(Lambda + {-(Identifier)-} + {-(LambdaBody + {-(Call + {-(MemberAccess + {-(MemberAccess + {-(Identifier)-})-})-} + {-(TextElement)-} + {-(Empty)-})-})-})-} + {-(Empty)-})-}))))) diff --git a/test/fixtures/java/corpus/Lambda.parseA.txt b/test/fixtures/java/corpus/Lambda.parseA.txt new file mode 100644 index 000000000..8c577d9bf --- /dev/null +++ b/test/fixtures/java/corpus/Lambda.parseA.txt @@ -0,0 +1,13 @@ +(Statements + (Class + (Identifier) + (Statements + (Method + (Void) + (Empty) + (Identifier) + (Statements + (Lambda + (Identifier) + (LambdaBody + (Identifier)))))))) diff --git a/test/fixtures/java/corpus/Lambda.parseB.txt b/test/fixtures/java/corpus/Lambda.parseB.txt new file mode 100644 index 000000000..09abfb3ee --- /dev/null +++ b/test/fixtures/java/corpus/Lambda.parseB.txt @@ -0,0 +1,22 @@ +(Statements + (Class + (Identifier) + (Statements + (Method + (Void) + (Empty) + (Identifier) + (Statements + (Call + (MemberAccess + (Identifier)) + (Lambda + (Identifier) + (LambdaBody + (Call + (MemberAccess + (MemberAccess + (Identifier))) + (TextElement) + (Empty)))) + (Empty)))))))