use of com.perl5.lang.perl.psi.PerlVariableDeclarationElement in project Perl5-IDEA by Camelcade.
the class MasonCoreUtil method fillVariablesList.
public static void fillVariablesList(PsiElement parent, List<PerlVariableDeclarationElement> targetList, List<VariableDescription> sourceList) {
for (VariableDescription variableDescription : sourceList) {
String variableType = variableDescription.variableType;
if (StringUtil.isEmpty(variableType)) {
variableType = null;
}
targetList.add(PerlImplicitVariableDeclaration.createGlobal(parent, variableDescription.variableName, variableType));
}
}
Aggregations