JsonSourceGenerator.Parser.cs (9)
507Debug.Assert(IsSymbolAccessibleWithin(typeToGenerate.Type, within: contextType), "should not generate metadata for inaccessible types.");
582if (!IsSymbolAccessibleWithin(valueType, within: contextType) ||
583(keyType != null && !IsSymbolAccessibleWithin(keyType, within: contextType)))
625else if (constructor != null && !IsSymbolAccessibleWithin(constructor, within: contextType))
1203!IsSymbolAccessibleWithin(memberType, within: contextType))
1399else if (IsSymbolAccessibleWithin(getMethod, within: contextType))
1419else if (IsSymbolAccessibleWithin(setMethod, within: contextType))
1447else if (IsSymbolAccessibleWithin(fieldInfo, within: contextType))
1617!namedConverterType.Constructors.Any(c => c.Parameters.Length == 0 && IsSymbolAccessibleWithin(c, within: contextType)))