mirror of
https://github.com/github/semantic.git
synced 2024-12-22 22:31:36 +03:00
bd939d2579
`identifier` in the Python assignment module was too eager to reduce a nested Attribute into a dotted identifier. Removing it fixes method calls, which now have a unit test.
48 lines
887 B
Plaintext
48 lines
887 B
Plaintext
(Program
|
|
(Let
|
|
{ (Identifier)
|
|
->(Empty) }
|
|
{ (Call
|
|
{-(Identifier)-}
|
|
{-(Identifier)-}
|
|
{-(TextElement)-}
|
|
{-(Empty)-})
|
|
->(MemberAccess
|
|
{+(Identifier)+}
|
|
{+(Identifier)+}) }
|
|
(
|
|
(Assignment
|
|
(Identifier)
|
|
(Boolean))
|
|
{-(ForEach
|
|
{-(Identifier)-}
|
|
{-(Identifier)-}
|
|
{-(
|
|
{-(Assignment
|
|
{-(Identifier)-}
|
|
{-(Boolean)-})-})-})-}))
|
|
{+(
|
|
{+(Let
|
|
{+(Empty)+}
|
|
{+(Call
|
|
{+(MemberAccess
|
|
{+(Identifier)+}
|
|
{+(Identifier)+})+}
|
|
{+(Identifier)+}
|
|
{+(TextElement)+}
|
|
{+(Identifier)+}
|
|
{+(Empty)+})+}
|
|
{+([])+})+}
|
|
{+(Let
|
|
{+(Empty)+}
|
|
{+(Call
|
|
{+(MemberAccess
|
|
{+(Identifier)+}
|
|
{+(Identifier)+})+}
|
|
{+(Identifier)+}
|
|
{+(TextElement)+}
|
|
{+(Identifier)+}
|
|
{+(Empty)+})+}
|
|
{+(
|
|
{+(Identifier)+})+})+})+})
|