1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +03:00

llama expression

This commit is contained in:
Ayman Nadeem 2018-07-24 17:31:50 -04:00
parent f524368c0b
commit 6e82ab5410
6 changed files with 92 additions and 0 deletions

View File

@ -0,0 +1,5 @@
class LambdaTest {
void singleton() {
stateOwner.add(x -> System.out.println("State changed"));
}
}

View File

@ -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)-})-})-})))))

View File

@ -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)-})-})))))

View File

@ -0,0 +1,13 @@
(Statements
(Class
(Identifier)
(Statements
(Method
(Void)
(Empty)
(Identifier)
(Statements
(Lambda
(Identifier)
(LambdaBody
(Identifier))))))))

View File

@ -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)))))))