JsonSourceGenerator.Parser.cs (11)
676Debug.Assert(IsSymbolAccessibleWithin(typeToGenerate.Type, within: contextType), "should not generate metadata for inaccessible types.");
769if (!IsSymbolAccessibleWithin(valueType, within: contextType) ||
770(keyType != null && !IsSymbolAccessibleWithin(keyType, within: contextType)))
819constructorIsInaccessible = constructor is not null && !IsSymbolAccessibleWithin(constructor, within: contextType);
847if (!IsSymbolAccessibleWithin(caseType, within: contextType))
2426!IsSymbolAccessibleWithin(memberType, within: contextType))
2683else if (IsSymbolAccessibleWithin(getMethod, within: contextType))
2699else if (IsSymbolAccessibleWithin(setMethod, within: contextType))
2723else if (IsSymbolAccessibleWithin(fieldInfo, within: contextType))
2941IMethodSymbol? accessibleParameterlessCtor = namedConverterType?.Constructors.FirstOrDefault(c => c.Parameters.Length == 0 && IsSymbolAccessibleWithin(c, within: contextType));
2967IMethodSymbol? accessibleParameterlessCtor = namedClassifierType?.Constructors.FirstOrDefault(c => c.Parameters.Length == 0 && IsSymbolAccessibleWithin(c, within: contextType));