public ComplexityCodeInsightsHighlight( ITypeMemberDeclaration declaration, int complexity, int percentage, ICodeInsightsProvider provider, IconHost iconHost) : base( declaration.GetNameDocumentRange(), GetLensText(percentage), GetMoreText(complexity, percentage), provider, declaration.DeclaredElement, iconHost.Transform(GetIconId(percentage))) { }
/// <summary> /// Initializes a new instance of the <see cref="ValueAnalysisSuggestion"/> class. /// </summary> /// <param name="solution"> /// The solution. /// </param> /// <param name="typeMemberDeclaration"> /// The type member declaration. /// </param> public ValueAnalysisSuggestion(ISolution solution, ITypeMemberDeclaration typeMemberDeclaration) : base(Name, typeMemberDeclaration, typeMemberDeclaration.GetNameDocumentRange(), "Type members should be annotated with Value Analysis attributes. [Agent Johnson]") { this.solution = solution; this.typeMemberDeclaration = typeMemberDeclaration; }