1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 08:54:07 +03:00

test field access

This commit is contained in:
Ayman Nadeem 2018-07-24 12:53:35 -04:00
parent 876ab5d11d
commit a905e30e47
6 changed files with 84 additions and 0 deletions

View File

@ -0,0 +1,5 @@
class Grouped {
Flowable(K key) {
System.out.println(favorite().mountain);
}
}

View File

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

View File

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

View File

@ -0,0 +1,14 @@
(Statements
(Class
(Identifier)
(Statements
(Constructor
(Identifier)
(Annotation
(Identifier)
(Identifier))
(Statements
(Assignment
(MemberAccess
(This))
(Identifier)))))))

View File

@ -0,0 +1,19 @@
(Statements
(Class
(Identifier)
(Statements
(Constructor
(Identifier)
(Annotation
(Identifier)
(Identifier))
(Statements
(Call
(MemberAccess
(MemberAccess
(Identifier)))
(MemberAccess
(Call
(Identifier)
(Empty)))
(Empty)))))))