Grammar improvement.

Now STATIC_INIT node should have correct line and column numbers.
This commit is contained in:
Oleg Sukhodolsky 2003-06-05 07:09:08 +00:00
parent 32d19d6801
commit 7d5a2853eb
1 changed files with 4 additions and 2 deletions

View File

@ -293,8 +293,10 @@ field!
)
// "static { ... }" class initializer
| "static" s3:compoundStatement
{#field = #(#[STATIC_INIT,"STATIC_INIT"], s3);}
| si:"static" s3:compoundStatement
{#si.setType(STATIC_INIT);
#si.setText("STATIC_INIT");
#field = #(#si, s3);}
// "{ ... }" instance initializer
| s4:compoundStatement