use of org.jetbrains.plugins.ruby.ruby.lang.psi.controlStructures.methods.RNamedArgument in project intellij-plugins by JetBrains.
the class RubyMotionTypeProvider method calculateObjCName.
private static String calculateObjCName(final String methodName, final List<RArgument> arguments) {
final StringBuilder objCNameBuilder = new StringBuilder(methodName).append(":");
for (RArgument argument : arguments) {
if (argument instanceof RNamedArgument) {
final RPsiElement nameIdentifier = ((RNamedArgument) argument).getNameIdentifier();
assert nameIdentifier != null;
objCNameBuilder.append(nameIdentifier.getName()).append(":");
}
}
return objCNameBuilder.toString();
}
Aggregations