-
-
Notifications
You must be signed in to change notification settings - Fork 806
Remove Symbol references from IOutputTypeInfo and implementations
#9058
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
0465de0
5e0f85b
adf7836
7b0429b
e8644c9
6b43d4d
657af55
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -536,7 +536,7 @@ protected void WriteFieldFlags(Resolver resolver) | |
|
|
||
| public virtual void WriteConfigureMethod(IOutputTypeInfo type) | ||
| { | ||
| if (type.RuntimeType is null) | ||
| if (type.RuntimeTypeName is null) | ||
| { | ||
| Writer.WriteIndentedLine( | ||
| "static partial void Configure(global::HotChocolate.Types.IObjectTypeDescriptor descriptor);"); | ||
|
|
@@ -545,7 +545,7 @@ public virtual void WriteConfigureMethod(IOutputTypeInfo type) | |
| { | ||
| Writer.WriteIndentedLine( | ||
| "static partial void Configure(global::HotChocolate.Types.IObjectTypeDescriptor<{0}> descriptor);", | ||
| type.RuntimeType.ToFullyQualified()); | ||
| type.RuntimeTypeName.FullyQualifiedName); | ||
| } | ||
|
|
||
| Writer.WriteLine(); | ||
|
|
@@ -595,14 +595,15 @@ protected void WriteResolverField(Resolver resolver) | |
|
|
||
| public virtual void WriteResolverConstructor(IOutputTypeInfo type, ILocalTypeLookup typeLookup) | ||
| { | ||
| var resolverType = | ||
| type.SchemaSchemaType ?? | ||
| type.RuntimeType ?? throw new InvalidOperationException("Schema type and runtime type are null."); | ||
| var resolverTypeName = | ||
| type.SchemaTypeName?.FullyQualifiedName | ||
| ?? type.RuntimeTypeName?.FullyQualifiedName | ||
| ?? throw new InvalidOperationException("Schema type and runtime type are null."); | ||
|
|
||
| WriteResolverConstructor( | ||
| type, | ||
| typeLookup, | ||
| resolverType.ToFullyQualified(), | ||
| resolverTypeName, | ||
|
||
| type.Resolvers.Any(t => t.RequiresParameterBindings)); | ||
| } | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,9 +50,9 @@ public ImmutableArray<SyntaxInfo> Transform( | |
| if (syntaxInfo is IOutputTypeInfo { HasRuntimeType: true } typeInfo) | ||
| { | ||
| #if NET8_0_OR_GREATER | ||
| connectionTypeLookup[typeInfo.RuntimeTypeFullName] = typeInfo; | ||
| connectionTypeLookup[typeInfo.RuntimeTypeName.FullName] = typeInfo; | ||
| #else | ||
| connectionTypeLookup[typeInfo.RuntimeTypeFullName!] = typeInfo; | ||
| connectionTypeLookup[typeInfo.RuntimeTypeName!.FullName] = typeInfo; | ||
| #endif | ||
|
||
| } | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.