Browse Source

Some cleaning;

Make some types internal.
pull/191/merge
Eusebiu Marcu 15 years ago
parent
commit
ecdb366bdb
  1. 2
      Debugger/ILSpy.Debugger/AvalonEdit/IToolTip.cs
  2. 17
      Debugger/ILSpy.Debugger/AvalonEdit/TextEditorWeakEventManager.cs
  3. 17
      Debugger/ILSpy.Debugger/DebuggedData.cs
  4. 17
      Debugger/ILSpy.Debugger/Models/RunningProcess.cs
  5. 4
      Debugger/ILSpy.Debugger/Models/TreeModel/ArrayRangeNode.cs
  6. 3
      Debugger/ILSpy.Debugger/Models/TreeModel/ChildNodesOfObject.cs
  7. 2
      Debugger/ILSpy.Debugger/Models/TreeModel/ExpressionNode.cs
  8. 2
      Debugger/ILSpy.Debugger/Models/TreeModel/ICorDebug.cs
  9. 2
      Debugger/ILSpy.Debugger/Models/TreeModel/IEnumerableNode.cs
  10. 2
      Debugger/ILSpy.Debugger/Models/TreeModel/IListNode.cs
  11. 2
      Debugger/ILSpy.Debugger/Models/TreeModel/ISetText.cs
  12. 2
      Debugger/ILSpy.Debugger/Models/TreeModel/ITreeNode.cs
  13. 2
      Debugger/ILSpy.Debugger/Models/TreeModel/IVisualizerCommand.cs
  14. 2
      Debugger/ILSpy.Debugger/Models/TreeModel/SavedTreeNode.cs
  15. 2
      Debugger/ILSpy.Debugger/Models/TreeModel/StackFrameNode.cs
  16. 2
      Debugger/ILSpy.Debugger/Models/TreeModel/TreeNode.cs
  17. 10
      Debugger/ILSpy.Debugger/Models/TreeModel/Utils.cs
  18. 2
      Debugger/ILSpy.Debugger/Services/Debugger/DebuggerService.cs
  19. 2
      Debugger/ILSpy.Debugger/Services/Debugger/WindowsDebugger.cs
  20. 17
      Debugger/ILSpy.Debugger/Services/ImageService/ImageService.cs
  21. 22
      Debugger/ILSpy.Debugger/Services/ParserService/ParserService.cs
  22. 2
      Debugger/ILSpy.Debugger/ToolTips/DebuggerPopup.cs
  23. 3
      Debugger/ILSpy.Debugger/ToolTips/DebuggerTooltipControl.xaml
  24. 2
      Debugger/ILSpy.Debugger/ToolTips/DebuggerTooltipControl.xaml.cs
  25. 2
      Debugger/ILSpy.Debugger/ToolTips/LazyItemsControl.cs
  26. 4
      Debugger/ILSpy.Debugger/ToolTips/Models/ToolTipRequestEventArgs.cs
  27. 7
      Debugger/ILSpy.Debugger/ToolTips/TextEditorListener.cs
  28. 2
      Debugger/ILSpy.Debugger/ToolTips/VirtualizingIEnumerable.cs
  29. 2
      ILSpy/Commands/DebuggerCommands.cs
  30. 2
      ILSpy/TextView/DecompilerTextView.cs

2
Debugger/ILSpy.Debugger/AvalonEdit/IToolTip.cs

@ -10,7 +10,7 @@ namespace ILSpy.Debugger.AvalonEdit
/// Content of text editor tooltip (used as <see cref="ToolTipRequestEventArgs.ContentToShow"/>), /// Content of text editor tooltip (used as <see cref="ToolTipRequestEventArgs.ContentToShow"/>),
/// specifying whether it should be displayed in a WPF Popup. /// specifying whether it should be displayed in a WPF Popup.
/// </summary> /// </summary>
public interface ITooltip internal interface ITooltip
{ {
/// <summary> /// <summary>
/// If true, this ITooltip will be displayed in a WPF Popup. /// If true, this ITooltip will be displayed in a WPF Popup.

17
Debugger/ILSpy.Debugger/AvalonEdit/TextEditorWeakEventManager.cs

@ -1,20 +1,5 @@
// Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// // This code is distributed under MIT X11 license (for details please see \doc\license.txt)
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Windows; using System.Windows;

17
Debugger/ILSpy.Debugger/DebuggedData.cs

@ -1,20 +1,5 @@
// Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// // This code is distributed under MIT X11 license (for details please see \doc\license.txt)
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

17
Debugger/ILSpy.Debugger/Models/RunningProcess.cs

@ -1,20 +1,5 @@
// Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// // This code is distributed under MIT X11 license (for details please see \doc\license.txt)
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Diagnostics; using System.Diagnostics;

4
Debugger/ILSpy.Debugger/Models/TreeModel/ArrayRangeNode.cs

@ -10,7 +10,7 @@ using ICSharpCode.NRefactory.CSharp;
namespace ILSpy.Debugger.Models.TreeModel namespace ILSpy.Debugger.Models.TreeModel
{ {
public partial class Utils internal static partial class Utils
{ {
public static IEnumerable<TreeNode> LazyGetChildNodesOfArray(Expression expression, ArrayDimensions dimensions) public static IEnumerable<TreeNode> LazyGetChildNodesOfArray(Expression expression, ArrayDimensions dimensions)
{ {
@ -22,7 +22,7 @@ namespace ILSpy.Debugger.Models.TreeModel
} }
/// <summary> This is a partent node for all elements within a given bounds </summary> /// <summary> This is a partent node for all elements within a given bounds </summary>
public class ArrayRangeNode: TreeNode internal class ArrayRangeNode: TreeNode
{ {
const int MaxElementCount = 100; const int MaxElementCount = 100;

3
Debugger/ILSpy.Debugger/Models/TreeModel/ChildNodesOfObject.cs

@ -14,7 +14,7 @@ using Module = Debugger.Module;
namespace ILSpy.Debugger.Models.TreeModel namespace ILSpy.Debugger.Models.TreeModel
{ {
public partial class Utils internal partial class Utils
{ {
public static IEnumerable<TreeNode> LazyGetChildNodesOfObject(Expression targetObject, DebugType shownType) public static IEnumerable<TreeNode> LazyGetChildNodesOfObject(Expression targetObject, DebugType shownType)
{ {
@ -94,7 +94,6 @@ namespace ILSpy.Debugger.Models.TreeModel
return nodes; return nodes;
} }
public static IEnumerable<TreeNode> LazyGetItemsOfIList(Expression targetObject) public static IEnumerable<TreeNode> LazyGetItemsOfIList(Expression targetObject)
{ {
// This is needed for expanding IEnumerable<T> // This is needed for expanding IEnumerable<T>

2
Debugger/ILSpy.Debugger/Models/TreeModel/ExpressionNode.cs

@ -19,7 +19,7 @@ using ILSpy.Debugger.Services.Debugger;
namespace ILSpy.Debugger.Models.TreeModel namespace ILSpy.Debugger.Models.TreeModel
{ {
public class ExpressionNode: TreeNode, ISetText, INotifyPropertyChanged internal class ExpressionNode: TreeNode, ISetText, INotifyPropertyChanged
{ {
bool evaluated; bool evaluated;

2
Debugger/ILSpy.Debugger/Models/TreeModel/ICorDebug.cs

@ -7,7 +7,7 @@ using Debugger;
namespace ILSpy.Debugger.Models.TreeModel namespace ILSpy.Debugger.Models.TreeModel
{ {
public class ICorDebug internal class ICorDebug
{ {
public class InfoNode: TreeNode public class InfoNode: TreeNode
{ {

2
Debugger/ILSpy.Debugger/Models/TreeModel/IEnumerableNode.cs

@ -10,7 +10,7 @@ namespace ILSpy.Debugger.Models.TreeModel
/// <summary> /// <summary>
/// IEnumerable node in the variable tree. /// IEnumerable node in the variable tree.
/// </summary> /// </summary>
public class IEnumerableNode : TreeNode internal class IEnumerableNode : TreeNode
{ {
Expression targetObject; Expression targetObject;
Expression debugListExpression; Expression debugListExpression;

2
Debugger/ILSpy.Debugger/Models/TreeModel/IListNode.cs

@ -4,7 +4,7 @@ using ICSharpCode.NRefactory.CSharp;
namespace ILSpy.Debugger.Models.TreeModel namespace ILSpy.Debugger.Models.TreeModel
{ {
public class IListNode : TreeNode internal class IListNode : TreeNode
{ {
Expression targetObject; Expression targetObject;
int count; int count;

2
Debugger/ILSpy.Debugger/Models/TreeModel/ISetText.cs

@ -4,7 +4,7 @@ using System;
namespace ILSpy.Debugger.Models.TreeModel namespace ILSpy.Debugger.Models.TreeModel
{ {
public interface ISetText internal interface ISetText
{ {
bool CanSetText { get; } bool CanSetText { get; }

2
Debugger/ILSpy.Debugger/Models/TreeModel/ITreeNode.cs

@ -10,7 +10,7 @@ namespace ILSpy.Debugger.Models.TreeModel
/// <summary> /// <summary>
/// Node that can be bound to <see cref="DebuggerTooltipControl" />. /// Node that can be bound to <see cref="DebuggerTooltipControl" />.
/// </summary> /// </summary>
public interface ITreeNode : IComparable<ITreeNode> internal interface ITreeNode : IComparable<ITreeNode>
{ {
string Name { get; } string Name { get; }

2
Debugger/ILSpy.Debugger/Models/TreeModel/IVisualizerCommand.cs

@ -10,7 +10,7 @@ namespace ILSpy.Debugger.Models.TreeModel
/// <summary> /// <summary>
/// Command called from <see cref="VisualizerPicker"/>. /// Command called from <see cref="VisualizerPicker"/>.
/// </summary> /// </summary>
public interface IVisualizerCommand internal interface IVisualizerCommand
{ {
/// <summary> /// <summary>
/// Can this command execute? /// Can this command execute?

2
Debugger/ILSpy.Debugger/Models/TreeModel/SavedTreeNode.cs

@ -5,7 +5,7 @@ using System.Windows.Media;
namespace ILSpy.Debugger.Models.TreeModel namespace ILSpy.Debugger.Models.TreeModel
{ {
public class SavedTreeNode : TreeNode internal class SavedTreeNode : TreeNode
{ {
public override bool CanSetText { public override bool CanSetText {
get { return true; } get { return true; }

2
Debugger/ILSpy.Debugger/Models/TreeModel/StackFrameNode.cs

@ -8,7 +8,7 @@ using ICSharpCode.NRefactory.CSharp;
namespace ILSpy.Debugger.Models.TreeModel namespace ILSpy.Debugger.Models.TreeModel
{ {
public class StackFrameNode: TreeNode internal class StackFrameNode: TreeNode
{ {
StackFrame stackFrame; StackFrame stackFrame;

2
Debugger/ILSpy.Debugger/Models/TreeModel/TreeNode.cs

@ -13,7 +13,7 @@ namespace ILSpy.Debugger.Models.TreeModel
/// A node in the variable tree. /// A node in the variable tree.
/// The node is imutable. /// The node is imutable.
/// </summary> /// </summary>
public class TreeNode : ITreeNode internal class TreeNode : ITreeNode
{ {
string text = string.Empty; string text = string.Empty;

10
Debugger/ILSpy.Debugger/Models/TreeModel/Utils.cs

@ -7,7 +7,7 @@ using Debugger;
namespace ILSpy.Debugger.Models.TreeModel namespace ILSpy.Debugger.Models.TreeModel
{ {
public static partial class Utils internal static partial class Utils
{ {
/// <param name="process">Process on which to track debuggee state</param> /// <param name="process">Process on which to track debuggee state</param>
public static void DoEvents(Process process) public static void DoEvents(Process process)
@ -38,14 +38,6 @@ namespace ILSpy.Debugger.Models.TreeModel
} }
} }
public class PrintTimes: PrintTime
{
public PrintTimes(string text): base(text + " - end")
{
//LoggingService.InfoFormatted("{0} - start", text);
}
}
public class PrintTime: IDisposable public class PrintTime: IDisposable
{ {
string text; string text;

2
Debugger/ILSpy.Debugger/Services/Debugger/DebuggerService.cs

@ -7,7 +7,7 @@ using ICSharpCode.AvalonEdit.Document;
using ICSharpCode.Decompiler; using ICSharpCode.Decompiler;
using ICSharpCode.NRefactory.CSharp.Resolver; using ICSharpCode.NRefactory.CSharp.Resolver;
using ILSpy.Debugger.Bookmarks; using ILSpy.Debugger.Bookmarks;
using ILSpy.Debugger.ToolTips; using ILSpy.Debugger.Tooltips;
using Mono.Cecil; using Mono.Cecil;
namespace ILSpy.Debugger.Services namespace ILSpy.Debugger.Services

2
Debugger/ILSpy.Debugger/Services/Debugger/WindowsDebugger.cs

@ -472,7 +472,7 @@ namespace ILSpy.Debugger.Services
} }
} }
public ITreeNode GetNode(string variable, string currentImageName = null) internal ITreeNode GetNode(string variable, string currentImageName = null)
{ {
try { try {
var expression = GetExpression(variable); var expression = GetExpression(variable);

17
Debugger/ILSpy.Debugger/Services/ImageService/ImageService.cs

@ -1,20 +1,5 @@
// Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// // This code is distributed under MIT X11 license (for details please see \doc\license.txt)
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Windows.Media; using System.Windows.Media;

22
Debugger/ILSpy.Debugger/Services/ParserService/ParserService.cs

@ -1,27 +1,15 @@
// Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team // Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team
// // This code is distributed under MIT X11 license (for details please see \doc\license.txt)
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
namespace ILSpy.Debugger.Services namespace ILSpy.Debugger.Services
{ {
public static class ParserService /// <summary>
/// Very naive parser.
/// </summary>
static class ParserService
{ {
static HashSet<string> mySet = new HashSet<string>(); static HashSet<string> mySet = new HashSet<string>();

2
Debugger/ILSpy.Debugger/ToolTips/DebuggerPopup.cs

@ -13,7 +13,7 @@ namespace ILSpy.Debugger.Tooltips
/// <summary> /// <summary>
/// Popup containing <see cref="DebuggerTooltipControl"></see>. /// Popup containing <see cref="DebuggerTooltipControl"></see>.
/// </summary> /// </summary>
public class DebuggerPopup : Popup internal class DebuggerPopup : Popup
{ {
internal DebuggerTooltipControl contentControl; internal DebuggerTooltipControl contentControl;

3
Debugger/ILSpy.Debugger/ToolTips/DebuggerTooltipControl.xaml

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<UserControl <UserControl
x:Class="ILSpy.Debugger.Tooltips.DebuggerTooltipControl" x:Class="ILSpy.Debugger.Tooltips.DebuggerTooltipControl"
x:ClassModifier="internal"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:aero="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero" xmlns:aero="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"

2
Debugger/ILSpy.Debugger/ToolTips/DebuggerTooltipControl.xaml.cs

@ -23,7 +23,7 @@ namespace ILSpy.Debugger.Tooltips
/// <summary> /// <summary>
/// Default Control used as content of SharpDevelop debugger tooltips. /// Default Control used as content of SharpDevelop debugger tooltips.
/// </summary> /// </summary>
public partial class DebuggerTooltipControl : UserControl, ITooltip internal partial class DebuggerTooltipControl : UserControl, ITooltip
{ {
private const double ChildPopupOpenXOffet = 16; private const double ChildPopupOpenXOffet = 16;
private const double ChildPopupOpenYOffet = 15; private const double ChildPopupOpenYOffet = 15;

2
Debugger/ILSpy.Debugger/ToolTips/LazyItemsControl.cs

@ -13,7 +13,7 @@ namespace ILSpy.Debugger.Tooltips
/// ItemsControl wrapper that takes VirtualizingIEnumerable as source, /// ItemsControl wrapper that takes VirtualizingIEnumerable as source,
/// and adds additional items from the source to underlying ItemsControl when scrolled to bottom. /// and adds additional items from the source to underlying ItemsControl when scrolled to bottom.
/// </summary> /// </summary>
public class LazyItemsControl<T> internal class LazyItemsControl<T>
{ {
private ItemsControl itemsControl; private ItemsControl itemsControl;
private int initialItemsCount; private int initialItemsCount;

4
Debugger/ILSpy.Debugger/ToolTips/Models/ToolTipRequestEventArgs.cs

@ -5,9 +5,9 @@ using System;
using ICSharpCode.AvalonEdit; using ICSharpCode.AvalonEdit;
using ICSharpCode.NRefactory.CSharp; using ICSharpCode.NRefactory.CSharp;
namespace ILSpy.Debugger.ToolTips namespace ILSpy.Debugger.Tooltips
{ {
public class ToolTipRequestEventArgs : EventArgs internal class ToolTipRequestEventArgs : EventArgs
{ {
/// <summary> /// <summary>
/// Gets whether the tool tip request was handled. /// Gets whether the tool tip request was handled.

7
Debugger/ILSpy.Debugger/ToolTips/TextEditorListener.cs

@ -13,12 +13,9 @@ using ICSharpCode.NRefactory.CSharp;
using ILSpy.Debugger.AvalonEdit; using ILSpy.Debugger.AvalonEdit;
using ILSpy.Debugger.Services; using ILSpy.Debugger.Services;
namespace ILSpy.Debugger.ToolTips namespace ILSpy.Debugger.Tooltips
{ {
/// <summary> public sealed class TextEditorListener : IWeakEventListener
/// Description of TextEditorListener.
/// </summary>
public class TextEditorListener : IWeakEventListener
{ {
private static readonly TextEditorListener instance; private static readonly TextEditorListener instance;

2
Debugger/ILSpy.Debugger/ToolTips/VirtualizingIEnumerable.cs

@ -12,7 +12,7 @@ namespace ILSpy.Debugger.Tooltips
/// from underlying IEnumerable&lt;T&gt;. /// from underlying IEnumerable&lt;T&gt;.
/// Can be used as source for <see cref="LazyItemsControl" />. /// Can be used as source for <see cref="LazyItemsControl" />.
/// </summary> /// </summary>
public class VirtualizingIEnumerable<T> : ObservableCollection<T> internal class VirtualizingIEnumerable<T> : ObservableCollection<T>
{ {
private IEnumerator<T> originalSourceEnumerator; private IEnumerator<T> originalSourceEnumerator;

2
ILSpy/Commands/DebuggerCommands.cs

@ -220,7 +220,7 @@ namespace ICSharpCode.ILSpy.Commands
var settings = ILSpySettings.Load(); var settings = ILSpySettings.Load();
XElement e = settings["DebuggerSettings"]; XElement e = settings["DebuggerSettings"];
var showWarnings = (bool?)e.Attribute("showWarnings"); var showWarnings = (bool?)e.Attribute("showWarnings");
if (showWarnings.HasValue && showWarnings.Value) if ((showWarnings.HasValue && showWarnings.Value) || !showWarnings.HasValue)
MessageBox.Show("Warning: When attaching to an application, some local variables might not be available. If possible, use the \"Start Executable\" command.", MessageBox.Show("Warning: When attaching to an application, some local variables might not be available. If possible, use the \"Start Executable\" command.",
"Attach to a process", MessageBoxButton.OK, MessageBoxImage.Warning); "Attach to a process", MessageBoxButton.OK, MessageBoxImage.Warning);

2
ILSpy/TextView/DecompilerTextView.cs

@ -45,7 +45,7 @@ using ICSharpCode.NRefactory.Documentation;
using ILSpy.Debugger; using ILSpy.Debugger;
using ILSpy.Debugger.AvalonEdit; using ILSpy.Debugger.AvalonEdit;
using ILSpy.Debugger.Bookmarks; using ILSpy.Debugger.Bookmarks;
using ILSpy.Debugger.ToolTips; using ILSpy.Debugger.Tooltips;
using Microsoft.Win32; using Microsoft.Win32;
using TextEditorWeakEventManager = ILSpy.Debugger.AvalonEdit.TextEditorWeakEventManager; using TextEditorWeakEventManager = ILSpy.Debugger.AvalonEdit.TextEditorWeakEventManager;

Loading…
Cancel
Save