Grammar improvement.
Now STATIC_INIT node should have correct line and column numbers.
This commit is contained in:
parent
32d19d6801
commit
7d5a2853eb
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue