35 references to DeclarationInfo
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (35)
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\MemberAndDeclarationInfo.cs (9)
51
internal static bool IsSet(this
DeclarationInfo
info,
DeclarationInfo
value)
75
private readonly
DeclarationInfo
_info;
77
public MemberAndDeclarationInfo(MemberInfo member, string displayName, DkmClrDebuggerBrowsableAttributeState? browsableState,
DeclarationInfo
info, int inheritanceLevel, bool isGenerated, bool canFavorite, bool isFavorite)
92
public bool HideNonPublic => _info.IsSet(
DeclarationInfo
.HideNonPublic);
93
public bool IncludeTypeInMemberName => _info.IsSet(
DeclarationInfo
.IncludeTypeInMemberName);
94
public bool RequiresExplicitCast => _info.IsSet(
DeclarationInfo
.RequiresExplicitCast);
165
private static bool SupportsCanFavorite(MemberInfo member,
DeclarationInfo
info)
184
if (info.IsSet(
DeclarationInfo
.IncludeTypeInMemberName))
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\TypeHelpers.cs (26)
46
var
memberLocation =
DeclarationInfo
.FromSubTypeOfDeclaredType;
47
var previousDeclarationMap = includeInherited ? new Dictionary<string,
DeclarationInfo
>() : null;
54
Debug.Assert(memberLocation ==
DeclarationInfo
.FromSubTypeOfDeclaredType);
55
memberLocation =
DeclarationInfo
.FromDeclaredTypeOrBase;
90
var
hideNonPublicBehavior =
DeclarationInfo
.None;
97
hideNonPublicBehavior =
DeclarationInfo
.HideNonPublic;
132
var
previousDeclaration =
DeclarationInfo
.None;
141
previousDeclaration |=
DeclarationInfo
.IncludeTypeInMemberName;
146
(previousDeclaration & ~(
DeclarationInfo
.RequiresExplicitCast |
147
DeclarationInfo
.FromSubTypeOfDeclaredType)) |
152
Debug.Assert(memberNameAlreadySeen != (previousDeclaration ==
DeclarationInfo
.None));
155
if (!memberNameAlreadySeen || previousDeclaration.IsSet(
DeclarationInfo
.RequiresExplicitCast))
167
if (memberLocation.IsSet(
DeclarationInfo
.FromSubTypeOfDeclaredType))
171
previousDeclaration |=
DeclarationInfo
.RequiresExplicitCast;
173
else if (previousDeclaration.IsSet(
DeclarationInfo
.FromSubTypeOfDeclaredType))
180
previousDeclaration &= ~
DeclarationInfo
.RequiresExplicitCast;
193
canFavorite: supportsFavorites && !previousDeclaration.HasFlag(
DeclarationInfo
.IncludeTypeInMemberName),
194
isFavorite: favoritesMemberNames?.ContainsKey(memberName) == true && !previousDeclaration.HasFlag(
DeclarationInfo
.IncludeTypeInMemberName)));
210
private static
DeclarationInfo
AccessingBaseMemberWithSameNameRequiresExplicitCast(this MemberInfo member)
215
return
DeclarationInfo
.RequiresExplicitCast;
221
return
DeclarationInfo
.RequiresExplicitCast;
223
return
DeclarationInfo
.None;
895
return new MemberAndDeclarationInfo(member, displayName: member.Name, browsableState: null, info:
DeclarationInfo
.None, inheritanceLevel: 0, isGenerated: false, canFavorite: false, isFavorite: false);