Skip to content

Commit b7b0a11

Browse files
authored
Merge pull request #1584 from paulvanbrenk/trailingWhiteSpace
Remove trailing whitespace
2 parents ec76ac1 + 9d9f685 commit b7b0a11

File tree

478 files changed

+15
-521
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

478 files changed

+15
-521
lines changed

Common/Product/ReplWindow/GlobalSuppressions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@
1111
// file manually.
1212

1313
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1017:MarkAssembliesWithComVisible")]
14-

Common/Product/ReplWindow/Repl/History.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,4 +207,3 @@ internal class HistoryEntry
207207
}
208208
}
209209
}
210-

Common/Product/ReplWindow/Repl/IMultipleScopeEvaluator.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,3 @@ bool EnableMultipleScopes
5050
}
5151
}
5252
}
53-

Common/Product/ReplWindow/Repl/IReplCommand2.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,3 @@ IEnumerable<string> Aliases
2121
}
2222
}
2323
}
24-

Common/Product/ReplWindow/Repl/IReplEvaluator.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,3 @@ public interface IReplEvaluator : IDisposable
7777
void AbortCommand();
7878
}
7979
}
80-

Common/Product/ReplWindow/Repl/IReplWindow.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,4 +170,3 @@ public interface IReplWindow3 : IReplWindow2
170170
PropertyCollection Properties { get; }
171171
}
172172
}
173-

Common/Product/ReplWindow/Repl/InlineReplAdornment.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,3 @@ public static void RemoveAllAdornments(ITextView view)
8383
}
8484
}
8585
}
86-

Common/Product/ReplWindow/Repl/InlineReplAdornmentManager.cs

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@ public IEnumerable<ITagSpan<IntraTextAdornmentTag>> GetTags(NormalizedSnapshotSp
3030
if (_tags[i].Item1.Snapshot != _textView.TextSnapshot)
3131
{
3232
// update to the latest snapshot
33-
_tags[i] = new Tuple<SnapshotPoint, ZoomableInlineAdornment>(
33+
_tags[i] = Tuple.Create(
3434
_tags[i].Item1.TranslateTo(_textView.TextSnapshot, PointTrackingMode.Negative),
35-
_tags[i].Item2
36-
);
35+
_tags[i].Item2);
3736
}
3837

3938
var span = new SnapshotSpan(_textView.TextSnapshot, _tags[i].Item1, 0);
@@ -64,7 +63,7 @@ public void AddAdornment(ZoomableInlineAdornment uiElement, SnapshotPoint target
6463
return;
6564
}
6665
var targetLine = targetLoc.GetContainingLine();
67-
_tags.Add(new Tuple<SnapshotPoint, ZoomableInlineAdornment>(targetLoc, uiElement));
66+
_tags.Add(Tuple.Create(targetLoc, uiElement));
6867
var handler = TagsChanged;
6968
if (handler != null)
7069
{
@@ -74,17 +73,10 @@ public void AddAdornment(ZoomableInlineAdornment uiElement, SnapshotPoint target
7473
}
7574
}
7675

77-
public IList<Tuple<SnapshotPoint, ZoomableInlineAdornment>> Adornments
78-
{
79-
get { return _tags; }
80-
}
76+
public IList<Tuple<SnapshotPoint, ZoomableInlineAdornment>> Adornments => _tags;
8177

82-
public void RemoveAll()
83-
{
84-
_tags.Clear();
85-
}
78+
public void RemoveAll() => _tags.Clear();
8679

8780
public event EventHandler<SnapshotSpanEventArgs> TagsChanged;
8881
}
8982
}
90-

Common/Product/ReplWindow/Repl/ReplWindowProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public IReplWindow CreateReplWindow(IContentType contentType, string/*!*/ title,
4646
{
4747
string[] roles = evaluator.GetType().GetCustomAttributes(typeof(ReplRoleAttribute), true).Select(r => ((ReplRoleAttribute)r).Name).ToArray();
4848
window = CreateReplWindowInternal(evaluator, contentType, roles, curId, title, languageServiceGuid, replId);
49-
if ((null == window) || (null == window.Frame))
49+
if (window?.Frame == null)
5050
{
5151
throw new NotSupportedException(Resources.CanNotCreateWindow);
5252
}

Common/Product/ReplWindow/ReplMouseProcessor.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,4 +188,3 @@ public void PreprocessQueryContinueDrag(System.Windows.QueryContinueDragEventArg
188188
}
189189
}
190190
}
191-

0 commit comments

Comments
 (0)