if(pt!=null)
type=pt.getText();
}
}
List<VariableDeclaratorsContext> vars = ctx.getRuleContexts(VariableDeclaratorsContext.class);
VariableDeclaratorContext v;
for(VariableDeclaratorsContext vc : vars) {
v = vc.getRuleContext(VariableDeclaratorContext.class, 0);
if(v!=null) {
VariableDeclaratorIdContext vi = v.getRuleContext(VariableDeclaratorIdContext.class, 0);
if(vi.getChildCount()>0) {
//System.out.println("VAR "+vi.getChild(0).getText()+" of type "+type);
AutocompleteCandidate c = new AutocompleteCandidate(JavaCompletionTypes.NAME, vi.getChild(0).getText());
registry.addCandidate(c);
if(type!=null) {