@Override
public Void visitParameterDeclaration( ParameterDeclaration node, SourceIndex index )
{
ParameterDefinition def = node.getUserData( Keys.PARAMETER_DEFINITION );
ClassEntry classEntry = new ClassEntry( def.getDeclaringType().getInternalName() );
MethodDefinition methodDef = (MethodDefinition)def.getMethod();
BehaviorEntry behaviorEntry;
if( methodDef.isConstructor() )
{
behaviorEntry = new ConstructorEntry( classEntry, methodDef.getSignature() );
}
else
{
behaviorEntry = new MethodEntry( classEntry, methodDef.getName(), methodDef.getSignature() );
}
ArgumentEntry argumentEntry = new ArgumentEntry( behaviorEntry, def.getPosition(), node.getName() );
index.addDeclaration( node.getNameToken(), argumentEntry );
return recurse( node, index );