1 write to FullyQualifiedName
System.Text.Json.SourceGeneration (1)
src\runtime\src\libraries\Common\src\SourceGenerators\TypeRef.cs (1)
19FullyQualifiedName = type.GetFullyQualifiedName();
73 references to FullyQualifiedName
System.Text.Json.SourceGeneration (73)
JsonSourceGenerator.Emitter.cs (67)
285string typeFQN = typeMetadata.TypeRef.FullyQualifiedName; 304string typeFQN = typeMetadata.TypeRef.FullyQualifiedName; 305string converterFQN = typeMetadata.ConverterType.FullyQualifiedName; 325string typeFQN = typeMetadata.TypeRef.FullyQualifiedName; 326string underlyingTypeFQN = typeMetadata.NullableUnderlyingType.FullyQualifiedName; 344string typeFQN = typeMetadata.TypeRef.FullyQualifiedName; 360string typeFQN = typeMetadata.TypeRef.FullyQualifiedName; 379string? keyTypeFQN = collectionKeyType?.FullyQualifiedName; 384string valueTypeFQN = collectionValueType.FullyQualifiedName; 392string typeFQN = typeGenerationSpec.TypeRef.FullyQualifiedName; 493writer.WriteLine($"foreach ({valueTypeGenerationSpec.TypeRef.FullyQualifiedName} element in value.Span)"); 505writer.WriteLine($"foreach ({valueTypeGenerationSpec.TypeRef.FullyQualifiedName} element in value)"); 538writer.WriteLine($"foreach ({KeyValuePairTypeRef}<{keyType.FullyQualifiedName}, {valueTypeGenerationSpec.TypeRef.FullyQualifiedName}> entry in value)"); 587: $$"""new[] {{{string.Join(", ", typeMetadata.CtorParamGenSpecs.Select(p => $"typeof({p.ParameterType.FullyQualifiedName})"))}}}"""; 589constructorInfoFactoryFunc = $"static () => typeof({typeMetadata.TypeRef.FullyQualifiedName}).GetConstructor(InstanceMemberBindingFlags, binder: null, {argTypes}, modifiers: null)"; 598string genericArg = typeMetadata.TypeRef.FullyQualifiedName; 620jsonTypeInfo = {{JsonMetadataServicesTypeRef}}.CreateObjectInfo<{{typeMetadata.TypeRef.FullyQualifiedName}}>(options, objectInfo); 679string genericArg = typeMetadata.TypeRef.FullyQualifiedName; 695: $$"""new {{JsonUnionCaseInfoTypeRef}}[] { {{string.Join(", ", unionCases.Select(c => $"new {JsonUnionCaseInfoTypeRef}(typeof({c.CaseType.FullyQualifiedName})) {{ IsNullable = {(c.IsNullable ? "true" : "false")} }}"))}} }"""; 698? $"new {classifierFactoryType.FullyQualifiedName}()" 726string patternTypeFQN = caseSpec.PatternType.FullyQualifiedName; 764writer.WriteLine($"null => (typeof({nullCase.CaseType.FullyQualifiedName}), (object?)null),"); 786string patternTypeFQN = caseSpec.PatternType.FullyQualifiedName; 787string caseTypeFQN = caseSpec.CaseType.FullyQualifiedName; 823string fqn = caseSpec.CaseType.FullyQualifiedName; 845string declaringTypeFQN = property.DeclaringType.FullyQualifiedName; 856string propertyTypeFQN = isIgnoredPropertyOfUnusedType ? "object" : property.PropertyType.FullyQualifiedName; 868string converterFQN = property.ConverterType.FullyQualifiedName; 873? $"GetConverterForNullableProperty<{nullableUnderlyingType.FullyQualifiedName}>(new {converterFQN}(), options)" 880{ IsProperty: true } => $"typeof({property.DeclaringType.FullyQualifiedName}).GetProperty({FormatStringLiteral(property.MemberName)}, InstanceMemberBindingFlags, null, typeof({propertyTypeFQN}), {EmptyTypeArray}, null)", 881_ => $"typeof({property.DeclaringType.FullyQualifiedName}).GetField({FormatStringLiteral(property.MemberName)}, InstanceMemberBindingFlags)", 890DeclaringType = typeof({{property.DeclaringType.FullyQualifiedName}}), 1133string declaringTypeFQN = property.DeclaringType.FullyQualifiedName; 1134string propertyTypeFQN = property.PropertyType.FullyQualifiedName; 1143string key = property.DeclaringType.FullyQualifiedName; 1280string openPropertyTypeFQN = property.OpenPropertyTypeFQN ?? property.PropertyType.FullyQualifiedName; 1339string closedTypeArgs = property.DeclaringType.FullyQualifiedName; 1379string typeFQN = typeSpec.TypeRef.FullyQualifiedName; 1405string typeFQN = useGenericWrapper ? typeSpec.OpenDeclaringTypeFQN! : typeSpec.TypeRef.FullyQualifiedName; 1431string parameterTypeFQN = (useGenericWrapper ? param.OpenParameterTypeFQN : null) ?? param.ParameterType.FullyQualifiedName; 1458: $"new global::System.Type[] {{{string.Join(", ", parameters.Select(p => $"typeof({p.ParameterType.FullyQualifiedName}){(p.RefKind is RefKind.None ? "" : ".MakeByRefType()")}"))}}}"; 1481writer.WriteLine($"p{param.ParameterIndex} = ({param.ParameterType.FullyQualifiedName})args[{param.ParameterIndex}]!;"); 1566ParameterType = typeof({{spec.ParameterType.FullyQualifiedName}}), 1591ParameterType = typeof({{spec.ParameterType.FullyQualifiedName}}), 1615string exceptionMessage = string.Format(ExceptionMessages.InvalidSerializablePropertyConfiguration, typeGenSpec.TypeRef.FullyQualifiedName); 1666? $"(({propertyGenSpec.DeclaringType.FullyQualifiedName})value)" 1677writer.WriteLine($"{propertyGenSpec.PropertyType.FullyQualifiedName} {localVariableName} = {rawValueExpr};"); 1702writer.WriteLine($"if (!{EqualityComparerTypeRef}<{propertyGenSpec.PropertyType.FullyQualifiedName}>.Default.Equals(default, {propValueExpr}))"); 1779sb.Append($"var __temp{param.ParameterIndex} = ({param.ParameterType.FullyQualifiedName})args[{param.ArgsIndex}]; "); 1790sb.Append($"return new {typeGenerationSpec.TypeRef.FullyQualifiedName}("); 1801sb = new($"static args => new {typeGenerationSpec.TypeRef.FullyQualifiedName}("); 1821sb.Append($"{property.Name} = ({property.ParameterType.FullyQualifiedName})args[{property.ParameterIndex}], "); 1843_ => $"({param.ParameterType.FullyQualifiedName})args[{param.ArgsIndex}]", // None or In (in doesn't require keyword at call site) 1864? typeGenSpec.TypeRef.FullyQualifiedName 1865: typeGenSpec.TypeRef.FullyQualifiedName + "?"; 1977string typeFQN = typeMetadata.TypeRef.FullyQualifiedName; 2032throw new {{InvalidOperationExceptionTypeRef}}(string.Format("{{ExceptionMessages.ClosedTypeInferenceRequiresCompileTimeOptIn}}", typeof({{typeSpec.TypeRef.FullyQualifiedName}}))); 2040string contextTypeRef = contextSpec.ContextType.FullyQualifiedName; 2152writer.WriteLine($"new {converter.FullyQualifiedName}(),"); 2167writer.WriteLine($"new {classifier.FullyQualifiedName}(),"); 2374if (type == typeof({{metadata.TypeRef.FullyQualifiedName}})) 2414=> classifierFactoryType is not null ? $"new {classifierFactoryType.FullyQualifiedName}()" : "null"; 2455string derivedTypeExpr = $"typeof({derivedType.DerivedType.FullyQualifiedName})"; 2495{ RuntimeTypeRef: TypeRef runtimeType } => $"() => new {runtimeType.FullyQualifiedName}()", 2496{ IsValueTuple: true } => $"() => default({typeSpec.TypeRef.FullyQualifiedName})", 2497{ ConstructionStrategy: ObjectConstructionStrategy.ParameterlessConstructor, ConstructorIsInaccessible: false } => $"() => new {typeSpec.TypeRef.FullyQualifiedName}()",
JsonSourceGenerator.Parser.cs (1)
183GeneratedTypes = _generatedTypes.Values.OrderBy(t => t.TypeRef.FullyQualifiedName).ToImmutableEquatableArray(),
src\runtime\src\libraries\Common\src\SourceGenerators\CSharpSyntaxUtilities.cs (2)
22return $"default({type.FullyQualifiedName})"; 57string FormatNumber() => $"({type.FullyQualifiedName})({Convert.ToString(value, CultureInfo.InvariantCulture)})";
src\runtime\src\libraries\Common\src\SourceGenerators\TypeRef.cs (3)
38public bool Equals(TypeRef? other) => other != null && FullyQualifiedName == other.FullyQualifiedName; 40public override int GetHashCode() => FullyQualifiedName.GetHashCode();