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