use of cfml.parsing.cfscript.script.CFFunctionParameter in project CFLint by cflint.
the class ArgTypeChecker method expression.
@Override
public void expression(final CFScriptStatement expression, final Context context, final BugList bugs) {
if (expression instanceof CFFuncDeclStatement) {
final CFFuncDeclStatement function = (CFFuncDeclStatement) expression;
for (final CFFunctionParameter argument : function.getFormals()) {
final String name = argument.getName();
final String variableType = argument.getType();
if (variableType == null) {
context.addMessage("ARG_TYPE_MISSING", name);
} else if ("any".equals(variableType)) {
context.addMessage("ARG_TYPE_ANY", name);
}
}
}
}
Aggregations