JsonSourceGenerator.Parser.cs (11)
591Debug.Assert(IsSymbolAccessibleWithin(typeToGenerate.Type, within: contextType), "should not generate metadata for inaccessible types.");
673if (!IsSymbolAccessibleWithin(valueType, within: contextType) ||
674(keyType != null && !IsSymbolAccessibleWithin(keyType, within: contextType)))
717constructorIsInaccessible = constructor is not null && !IsSymbolAccessibleWithin(constructor, within: contextType);
742if (!IsSymbolAccessibleWithin(caseType, within: contextType))
1904!IsSymbolAccessibleWithin(memberType, within: contextType))
2140else if (IsSymbolAccessibleWithin(getMethod, within: contextType))
2160else if (IsSymbolAccessibleWithin(setMethod, within: contextType))
2188else if (IsSymbolAccessibleWithin(fieldInfo, within: contextType))
2398!namedConverterType.Constructors.Any(c => c.Parameters.Length == 0 && IsSymbolAccessibleWithin(c, within: contextType)))
2419!namedClassifierType.Constructors.Any(c => c.Parameters.Length == 0 && IsSymbolAccessibleWithin(c, within: contextType)))