private void ProcessFunctionDeclaration(IConstructorDeclaration constructorDeclaration) { var constructorParams = constructorDeclaration.ParameterDeclarations; var interfaceCount = constructorParams.Count(regularParameterDeclaration => regularParameterDeclaration.DeclaredElement.Type.IsInterfaceType()); if (interfaceCount > _maxParams) { string message = Stringtable.TooManyArgumentsWarning; var warning = new InjectionHappyDetectorWarning(message); _highlights.Add(new HighlightingInfo(constructorDeclaration.GetNameDocumentRange(), warning)); } }
private void ProcessFunctionDeclaration(IConstructorDeclaration constructorDeclaration) { var constructorParams = constructorDeclaration.ParameterDeclarations; var interfaceCount = constructorParams.Count(regularParameterDeclaration => TypesUtil.IsInterfaceType(regularParameterDeclaration.DeclaredElement.Type)); if (interfaceCount > _maxParams) { string message = Stringtable.Warning_TooManyDependencies; var warning = new TooManyDependenciesHighlighting(message); _highlights.Add(new HighlightingInfo(constructorDeclaration.GetNameDocumentRange(), warning)); } }