internal AnalysisResult(ISharpenSuggestion suggestion, SingleSyntaxTreeAnalysisContext analysisContext, string filePath, SyntaxToken startingToken, SyntaxNode displayTextNode) { this.displayTextNode = displayTextNode; Suggestion = suggestion; AnalysisContext = analysisContext; FilePath = filePath; Position = startingToken.GetLocation().GetLineSpan(); }
internal AnalysisResult(ISharpenSuggestion suggestion, SingleSyntaxTreeAnalysisContext analysisContext, string filePath, SyntaxToken startingToken, SyntaxNode displayTextNode) : this(suggestion, analysisContext, filePath, startingToken, displayTextNode, Engine.DisplayText.For) { }
public SuggestionTreeViewItem(BaseTreeViewItem parent, IAnalysisResultTreeViewBuilder treeViewBuilder, int numberOfItems, ISharpenSuggestion suggestion) : base(parent, treeViewBuilder, numberOfItems, suggestion.FriendlyName, null) { Suggestion = suggestion; }