EcmaScriptGrammar.FUNCTION_EXPRESSION);
}
@Override
public void leaveNode(AstNode node) {
SourceFunction function = (SourceFunction) getContext().peekSourceCode();
if (function.getInt(EcmaScriptMetric.COMPLEXITY) > maximumFunctionComplexityThreshold) {
getContext().createLineViolation(this,
"Function has a complexity of {0,number,integer} which is greater than {1,number,integer} authorized.", node,
function.getInt(EcmaScriptMetric.COMPLEXITY), maximumFunctionComplexityThreshold);
}
}