11 references to IsSymbolAccessibleWithin
System.Text.Json.SourceGeneration (11)
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)) 2488!IsSymbolAccessibleWithin(memberType, within: contextType)) 2745else if (IsSymbolAccessibleWithin(getMethod, within: contextType)) 2761else if (IsSymbolAccessibleWithin(setMethod, within: contextType)) 2785else if (IsSymbolAccessibleWithin(fieldInfo, within: contextType)) 3003IMethodSymbol? accessibleParameterlessCtor = namedConverterType?.Constructors.FirstOrDefault(c => c.Parameters.Length == 0 && IsSymbolAccessibleWithin(c, within: contextType)); 3029IMethodSymbol? accessibleParameterlessCtor = namedClassifierType?.Constructors.FirstOrDefault(c => c.Parameters.Length == 0 && IsSymbolAccessibleWithin(c, within: contextType));