myText = text;
}
public static DartParameterDescription[] getParameters(DartComponent element, DartGenericSpecialization specialization) {
final DartFormalParameterList parameterList = PsiTreeUtil.getChildOfType(element, DartFormalParameterList.class);
if (parameterList == null) {
return new DartParameterDescription[0];
}
final List<DartNormalFormalParameter> list = parameterList.getNormalFormalParameterList();
final DartParameterDescription[] result = new DartParameterDescription[list.size()];
for (int i = 0, size = list.size(); i < size; i++) {
result[i] = new DartParameterDescription(DartPresentableUtil.getPresentableNormalFormalParameter(list.get(i), specialization));
}
return result;