Moved the reference checking to java.g

This commit is contained in:
Oliver Burn 2002-01-13 06:34:38 +00:00
parent a54d892da1
commit 3335cdeb4d
2 changed files with 2 additions and 2 deletions

View File

@ -853,7 +853,7 @@ postfixExpression
( // qualified id (id.id.id.id...) -- build the name
DOT^ ( IDENT {ver.reportReference(sFirstIdent);}
| "this"
| "class"
| "class" {ver.reportReference(sFirstIdent);}
| newExpression
| "super" // ClassName.super.field
)

View File

@ -408,7 +408,7 @@ primaryExpression
(i2:IDENT { firstExprIdent = null;}
| arrayIndex
| "this"
| "class" { if (firstExprIdent != null) { ver.reportReference(firstExprIdent.getText()); } }
| "class"
| #( "new" IDENT elist )
| "super"
)