public boolean visit(CatchClause catchClause) throws Exception { ISourceElementRequestor.FieldInfo info = new ISourceElementRequestor.FieldInfo(); info.modifiers = Modifiers.AccPublic; SimpleReference var = catchClause.getVariable(); info.name = var.getName(); info.nameSourceEnd = var.sourceEnd() - 1; info.nameSourceStart = var.sourceStart(); info.declarationStart = catchClause.sourceStart(); fInfoStack.push(info); fRequestor.enterField(info); return true; }
public boolean endvisit(CatchClause catchClause) throws Exception { fRequestor.exitField(catchClause.sourceEnd() - 1); fInfoStack.pop(); return true; }