예제 #1
0
        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();
        }
예제 #2
0
 internal AnalysisResult(ISharpenSuggestion suggestion, SingleSyntaxTreeAnalysisContext analysisContext, string filePath, SyntaxToken startingToken, SyntaxNode displayTextNode)
     : this(suggestion, analysisContext, filePath, startingToken, displayTextNode, Engine.DisplayText.For)
 {
 }
예제 #3
0
 public SuggestionTreeViewItem(BaseTreeViewItem parent, IAnalysisResultTreeViewBuilder treeViewBuilder, int numberOfItems, ISharpenSuggestion suggestion)
     : base(parent, treeViewBuilder, numberOfItems, suggestion.FriendlyName, null)
 {
     Suggestion = suggestion;
 }