# forConstructorParameter static method

ResolvableType forConstructorParameter(

1. ConstructorDeclaration constructor,
2. int parameterIndex

)

## Implementation

    static ResolvableType forConstructorParameter(ConstructorDeclaration constructor, int parameterIndex) {
      final params = constructor.getParameters();
      if (parameterIndex >= 0 && parameterIndex < params.length) {
        final param = params[parameterIndex];
        final typeProvider = _ParameterTypeProvider(param);
        return forTypeWithProviderAndResolver(param.getType(), typeProvider, null);
      }
      return NONE;
    }