blob: ed6eae751f89a38769a26ee6e0db36a910a1cb67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright (c) Microsoft Corporation. All rights reserved.
//
using System;
using System.Compiler;
namespace Microsoft.Ddue.Tools.Reflection {
// exposes all apis for which a topic exists
// this includes all documented members (see DocumentFilter) except for enumeration members
public class ExternalTopicFilter : ExternalDocumentedFilter {
public override bool IsExposedMember(Member member) {
// don't expose members of enumerations
if (member.DeclaringType.NodeType == NodeType.EnumNode) return (false);
// otherwise, agree with DocumentedFilter
return (base.IsExposedMember(member));
}
}
}
|