Skip to content

Commit

Permalink
Fixed issue that caused compile errors on generated DataLoader code. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib authored Oct 24, 2024
1 parent b0fa720 commit 269dc45
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ private void WriteFetchCall(
DataLoaderKind kind,
ImmutableArray<DataLoaderParameterInfo> parameters)
{
_writer.Write("await {0}.{1}(", containingType, fetchMethod.Name);
_writer.Write("await global::{0}.{1}(", containingType, fetchMethod.Name);

for (var i = 0; i < parameters.Length; i++)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace TestNamespace
global::GreenDonut.DataLoaderFetchContext<global::TestNamespace.Entity> context,
global::System.Threading.CancellationToken ct)
{
var temp = await TestNamespace.TestClass.GetEntityByIdAsync(keys, ct).ConfigureAwait(false);
var temp = await global::TestNamespace.TestClass.GetEntityByIdAsync(keys, ct).ConfigureAwait(false);
CopyResults(keys, results.Span, temp);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace TestNamespace
global::GreenDonut.DataLoaderFetchContext<string> context,
global::System.Threading.CancellationToken ct)
{
var temp = await TestNamespace.TestClass.GetEntityByIdAsync(keys, ct).ConfigureAwait(false);
var temp = await global::TestNamespace.TestClass.GetEntityByIdAsync(keys, ct).ConfigureAwait(false);
CopyResults(keys, results.Span, temp);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace TestNamespace
global::GreenDonut.DataLoaderFetchContext<global::TestNamespace.Entity> context,
global::System.Threading.CancellationToken ct)
{
var temp = await TestNamespace.TestClass.GetEntityByIdAsync(keys, ct).ConfigureAwait(false);
var temp = await global::TestNamespace.TestClass.GetEntityByIdAsync(keys, ct).ConfigureAwait(false);
CopyResults(keys, results.Span, temp);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace TestNamespace
global::GreenDonut.DataLoaderFetchContext<string> context,
global::System.Threading.CancellationToken ct)
{
var temp = await TestNamespace.TestClass.GetEntityByIdAsync(keys, ct).ConfigureAwait(false);
var temp = await global::TestNamespace.TestClass.GetEntityByIdAsync(keys, ct).ConfigureAwait(false);
CopyResults(keys, results.Span, temp);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace TestNamespace
global::GreenDonut.DataLoaderFetchContext<global::TestNamespace.Entity> context,
global::System.Threading.CancellationToken ct)
{
var temp = await TestNamespace.TestClass.GetEntityByIdAsync(keys, ct).ConfigureAwait(false);
var temp = await global::TestNamespace.TestClass.GetEntityByIdAsync(keys, ct).ConfigureAwait(false);
CopyResults(keys, results.Span, temp);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace TestNamespace
global::GreenDonut.DataLoaderFetchContext<global::TestNamespace.Entity> context,
global::System.Threading.CancellationToken ct)
{
var temp = await TestNamespace.TestClass.GetEntityByIdAsync(keys, ct).ConfigureAwait(false);
var temp = await global::TestNamespace.TestClass.GetEntityByIdAsync(keys, ct).ConfigureAwait(false);
CopyResults(keys, results.Span, temp);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace TestNamespace
global::GreenDonut.DataLoaderFetchContext<global::TestNamespace.Entity> context,
global::System.Threading.CancellationToken ct)
{
var temp = await TestNamespace.TestClass.GetEntityByIdAsync(keys, ct).ConfigureAwait(false);
var temp = await global::TestNamespace.TestClass.GetEntityByIdAsync(keys, ct).ConfigureAwait(false);
CopyResults(keys, results.Span, temp);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ namespace TestNamespace
global::GreenDonut.DataLoaderFetchContext<global::TestNamespace.Entity2> context,
global::System.Threading.CancellationToken ct)
{
var temp = await TestNamespace.TestClass.GetEntityByIdAsync(keys, ct).ConfigureAwait(false);
var temp = await global::TestNamespace.TestClass.GetEntityByIdAsync(keys, ct).ConfigureAwait(false);
CopyResults(keys, results.Span, temp);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ namespace TestNamespace
global::GreenDonut.DataLoaderFetchContext<string> context,
global::System.Threading.CancellationToken ct)
{
var temp = await TestNamespace.TestClass.GetEntityByIdAsync(keys, ct).ConfigureAwait(false);
var temp = await global::TestNamespace.TestClass.GetEntityByIdAsync(keys, ct).ConfigureAwait(false);
CopyResults(keys, results.Span, temp);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace TestNamespace
global::System.Threading.CancellationToken ct)
{
var p1 = context.GetState<string?>("key");
var temp = await TestNamespace.TestClass.GetEntityByIdAsync(keys, p1, ct).ConfigureAwait(false);
var temp = await global::TestNamespace.TestClass.GetEntityByIdAsync(keys, p1, ct).ConfigureAwait(false);
CopyResults(keys, results.Span, temp);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace TestNamespace
global::System.Threading.CancellationToken ct)
{
var p1 = context.GetRequiredState<global::HotChocolate.Pagination.PagingArguments>("HotChocolate.Pagination.PagingArguments");
var temp = await TestNamespace.TestClass.GetEntityByIdAsync(keys, p1, ct).ConfigureAwait(false);
var temp = await global::TestNamespace.TestClass.GetEntityByIdAsync(keys, p1, ct).ConfigureAwait(false);
CopyResults(keys, results.Span, temp);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace TestNamespace
{
var p1 = context.GetState<global::GreenDonut.Predicates.IPredicateBuilder>("GreenDonut.Predicates.IPredicateBuilder")
?? new global::GreenDonut.Predicates.DefaultPredicateBuilder();
var temp = await TestNamespace.TestClass.GetEntityByIdAsync(keys, p1, ct).ConfigureAwait(false);
var temp = await global::TestNamespace.TestClass.GetEntityByIdAsync(keys, p1, ct).ConfigureAwait(false);
CopyResults(keys, results.Span, temp);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace TestNamespace
global::System.Threading.CancellationToken ct)
{
var p1 = context.GetRequiredState<string>("key");
var temp = await TestNamespace.TestClass.GetEntityByIdAsync(keys, p1, ct).ConfigureAwait(false);
var temp = await global::TestNamespace.TestClass.GetEntityByIdAsync(keys, p1, ct).ConfigureAwait(false);
CopyResults(keys, results.Span, temp);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace TestNamespace
{
var p1 = context.GetState<global::GreenDonut.Selectors.ISelectorBuilder>("GreenDonut.Selectors.ISelectorBuilder")
?? new global::GreenDonut.Selectors.DefaultSelectorBuilder();
var temp = await TestNamespace.TestClass.GetEntityByIdAsync(keys, p1, ct).ConfigureAwait(false);
var temp = await global::TestNamespace.TestClass.GetEntityByIdAsync(keys, p1, ct).ConfigureAwait(false);
CopyResults(keys, results.Span, temp);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace TestNamespace
global::System.Threading.CancellationToken ct)
{
var p1 = context.GetStateOrDefault<string>("key", "default");
var temp = await TestNamespace.TestClass.GetEntityByIdAsync(keys, p1, ct).ConfigureAwait(false);
var temp = await global::TestNamespace.TestClass.GetEntityByIdAsync(keys, p1, ct).ConfigureAwait(false);
CopyResults(keys, results.Span, temp);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ namespace TestNamespace
try
{
var key = keys[i];
var value = await TestNamespace.TestClass.GetEntityByIdAsync(key, ct).ConfigureAwait(false);
var value = await global::TestNamespace.TestClass.GetEntityByIdAsync(key, ct).ConfigureAwait(false);
results.Span[i] = Result<global::TestNamespace.Entity?>.Resolve(value);
}
catch (global::System.Exception ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace TestNamespace
global::GreenDonut.DataLoaderFetchContext<global::TestNamespace.Entity[]> context,
global::System.Threading.CancellationToken ct)
{
var temp = await TestNamespace.TestClass.GetEntitiesByIdAsync(keys, ct).ConfigureAwait(false);
var temp = await global::TestNamespace.TestClass.GetEntitiesByIdAsync(keys, ct).ConfigureAwait(false);
CopyResults(keys, results.Span, temp);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace TestNamespace
{
var p1 = context.GetState<global::GreenDonut.Predicates.IPredicateBuilder>("GreenDonut.Predicates.IPredicateBuilder")
?? new global::GreenDonut.Predicates.DefaultPredicateBuilder();
var temp = await TestNamespace.TestClass.GetEntityByIdAsync(keys, p1, ct).ConfigureAwait(false);
var temp = await global::TestNamespace.TestClass.GetEntityByIdAsync(keys, p1, ct).ConfigureAwait(false);
CopyResults(keys, results.Span, temp);
}

Expand Down

0 comments on commit 269dc45

Please sign in to comment.