[antlr-interest] Bug in Cross Reference tool

Jim O'Connor Jim.OConnor at microfocus.com
Mon Aug 25 10:08:56 PDT 2003


Cross reference tool

Refs.g

BUG - "scope" should not be the pararmeter to currentScope.addImport();
This case rarely happens.

Fix -         currentScope.addImport(cs);
        // System.out.println("import class "+cs);




//Original code
packageOrClassIdentifier
{
    String r = null;
    Scope scope = null;
}
	:	IDENT
        {
        FileScope currentScope = (FileScope)scopeStack.peek();
        ClassScope cs=project.getClassScope(#IDENT.getText());
        currentScope.addImport(scope);
        // System.out.println("import class "+scope);
        }


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list