JsonSourceGenerator.Parser.cs (11)
647Debug.Assert(IsSymbolAccessibleWithin(typeToGenerate.Type, within: contextType), "should not generate metadata for inaccessible types.");
740if (!IsSymbolAccessibleWithin(valueType, within: contextType) ||
741(keyType != null && !IsSymbolAccessibleWithin(keyType, within: contextType)))
790constructorIsInaccessible = constructor is not null && !IsSymbolAccessibleWithin(constructor, within: contextType);
818if (!IsSymbolAccessibleWithin(caseType, within: contextType))
2474!IsSymbolAccessibleWithin(memberType, within: contextType))
2736else if (IsSymbolAccessibleWithin(getMethod, within: contextType))
2752else if (IsSymbolAccessibleWithin(setMethod, within: contextType))
2776else if (IsSymbolAccessibleWithin(fieldInfo, within: contextType))
2996IMethodSymbol? accessibleParameterlessCtor = namedConverterType?.Constructors.FirstOrDefault(c => c.Parameters.Length == 0 && IsSymbolAccessibleWithin(c, within: contextType));
3022IMethodSymbol? accessibleParameterlessCtor = namedClassifierType?.Constructors.FirstOrDefault(c => c.Parameters.Length == 0 && IsSymbolAccessibleWithin(c, within: contextType));