diff options
author | Daniel Grunwald <daniel@danielgrunwald.de> | 2014-06-29 16:02:00 +0400 |
---|---|---|
committer | Daniel Grunwald <daniel@danielgrunwald.de> | 2014-06-29 16:02:00 +0400 |
commit | 8e4cae8ae50b8e991cb11910d545ae7ba6dc3803 (patch) | |
tree | 8973935eb4e909f0e236a64fdef220ef3b710656 /ICSharpCode.NRefactory.Cecil | |
parent | be0aa56cecee3bde67d891450e2064a772872659 (diff) |
Add VisitErrorNode() to IAstVisitor.
This has two purposes:
* For IAstVisitor<T>, returning default(T) may cause unexpected behavior in client visitors (for example, null reference exceptions when T is a reference type). Like VisitNullNode(), the VisitErrorNode() method allows visitors to specify a more appropriate default value.
* If an error node contains comment nodes, the output visitor should output those comments.
Diffstat (limited to 'ICSharpCode.NRefactory.Cecil')
-rw-r--r-- | ICSharpCode.NRefactory.Cecil/CecilLoader.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ICSharpCode.NRefactory.Cecil/CecilLoader.cs b/ICSharpCode.NRefactory.Cecil/CecilLoader.cs index 92f642c2..b8c4747f 100644 --- a/ICSharpCode.NRefactory.Cecil/CecilLoader.cs +++ b/ICSharpCode.NRefactory.Cecil/CecilLoader.cs @@ -74,6 +74,7 @@ namespace ICSharpCode.NRefactory.TypeSystem /// Warning: if delay-loading is used and the type system is accessed by multiple threads, /// the callback may be invoked concurrently on multiple threads. /// </remarks> + [CLSCompliant(false)] public Action<IUnresolvedEntity, MemberReference> OnEntityLoaded { get; set; } /// <summary> |