11 references to IsSymbolAccessibleWithin
System.Text.Json.SourceGeneration (11)
JsonSourceGenerator.Parser.cs (11)
592Debug.Assert(IsSymbolAccessibleWithin(typeToGenerate.Type, within: contextType), "should not generate metadata for inaccessible types."); 674if (!IsSymbolAccessibleWithin(valueType, within: contextType) || 675(keyType != null && !IsSymbolAccessibleWithin(keyType, within: contextType))) 718constructorIsInaccessible = constructor is not null && !IsSymbolAccessibleWithin(constructor, within: contextType); 746if (!IsSymbolAccessibleWithin(caseType, within: contextType)) 2191!IsSymbolAccessibleWithin(memberType, within: contextType)) 2427else if (IsSymbolAccessibleWithin(getMethod, within: contextType)) 2447else if (IsSymbolAccessibleWithin(setMethod, within: contextType)) 2475else if (IsSymbolAccessibleWithin(fieldInfo, within: contextType)) 2685!namedConverterType.Constructors.Any(c => c.Parameters.Length == 0 && IsSymbolAccessibleWithin(c, within: contextType))) 2706!namedClassifierType.Constructors.Any(c => c.Parameters.Length == 0 && IsSymbolAccessibleWithin(c, within: contextType)))