Lua For IDEA / testdata / parsing / lua / statements / assignment / reassigned1.lua.test

The idea13 branch has multiple heads

local a = 1
do
    a =  2
end
return a
-----
Lua script: test.lua(0,38)
  Parameter: ...(0,0)
    <empty list>
  Local Declaration With Assignment Statement local a = 1(0,11)
    PsiElement(local)('local')(0,5)
    PsiWhiteSpace(' ')(5,6)
    Identifier List (Count 1)(6,7)
      Local Decl: a(6,7)
        PsiElement(identifier)('a')(6,7)
    PsiWhiteSpace(' ')(7,8)
    PsiElement(=)('=')(8,9)
    PsiWhiteSpace(' ')(9,10)
    Expression List (Count 1)(10,11)
      Literal:1(10,11)
        PsiElement(number)('1')(10,11)
  PsiWhiteSpace('\n')(11,12)
  Do Block(12,29)
    PsiElement(do)('do')(12,14)
    PsiWhiteSpace('\n    ')(14,19)
    Block(19,25)
      Assignment Statement a =  2(19,25)
        Identifier List (Count 1)(19,20)
          Reference: a(19,20)
            Local Decl: a(19,20)
              PsiElement(identifier)('a')(19,20)
        PsiWhiteSpace(' ')(20,21)
        PsiElement(=)('=')(21,22)
        PsiWhiteSpace('  ')(22,24)
        Expression List (Count 1)(24,25)
          Literal:2(24,25)
            PsiElement(number)('2')(24,25)
    PsiWhiteSpace('\n')(25,26)
    PsiElement(end)('end')(26,29)
  PsiWhiteSpace('\n')(29,30)
  Return statement(30,38)
    PsiElement(return)('return')(30,36)
    PsiWhiteSpace(' ')(36,37)
    Expression List (Count 1)(37,38)
      Reference: a(37,38)
        Local: a(37,38)
          PsiElement(identifier)('a')(37,38)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.