Skip to content

Commit ecbe317

Browse files
committed
Improved debugging display for declarations.
1 parent f334e44 commit ecbe317

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/AST/Declaration.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.Collections.Generic;
3+
using System.Diagnostics;
34
using System.Linq;
45

56
namespace CppSharp.AST
@@ -47,6 +48,7 @@ public enum GenerationKind
4748
/// <summary>
4849
/// Represents a C++ declaration.
4950
/// </summary>
51+
[DebuggerDisplay("{ToString()} [{GetType().Name}]")]
5052
public abstract class Declaration : INamedDecl
5153
{
5254
public SourceLocation Location;

0 commit comments

Comments
 (0)