Skip to content

Commit

Permalink
prevent duplicated method generation(Cysharp#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
itn3000 committed Jun 22, 2021
1 parent 7a6a2bf commit e80d64e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public void Handle(TMessage message)

void IUniTaskSource.GetResult(short token) => GetResult(token);
public UniTaskStatus UnsafeGetStatus() => core.UnsafeGetStatus();
public UniTaskStatus GetStatus(short token)
public /*replaced*/ UniTaskStatus GetStatus(short token)
{
return core.GetStatus(token);
}
Expand Down Expand Up @@ -249,7 +249,7 @@ public void Handle(TMessage message)

void IUniTaskSource.GetResult(short token) => GetResult(token);
public UniTaskStatus UnsafeGetStatus() => core.UnsafeGetStatus();
public UniTaskStatus GetStatus(short token)
public /*replaced*/ UniTaskStatus GetStatus(short token)
{
return core.GetStatus(token);
}
Expand Down Expand Up @@ -331,7 +331,7 @@ public void Handle(TMessage message)

void IUniTaskSource.GetResult(short token) => GetResult(token);
public UniTaskStatus UnsafeGetStatus() => core.UnsafeGetStatus();
public UniTaskStatus GetStatus(short token)
public /*replaced*/ UniTaskStatus GetStatus(short token)
{
return core.GetStatus(token);
}
Expand Down Expand Up @@ -422,7 +422,7 @@ public UniTask HandleAsync(TMessage message, CancellationToken cancellationToken

void IUniTaskSource.GetResult(short token) => GetResult(token);
public UniTaskStatus UnsafeGetStatus() => core.UnsafeGetStatus();
public UniTaskStatus GetStatus(short token)
public /*replaced*/ UniTaskStatus GetStatus(short token)
{
return core.GetStatus(token);
}
Expand Down Expand Up @@ -512,7 +512,7 @@ public UniTask HandleAsync(TMessage message, CancellationToken cancellationToken

void IUniTaskSource.GetResult(short token) => GetResult(token);
public UniTaskStatus UnsafeGetStatus() => core.UnsafeGetStatus();
public UniTaskStatus GetStatus(short token)
public /*replaced*/ UniTaskStatus GetStatus(short token)
{
return core.GetStatus(token);
}
Expand Down Expand Up @@ -604,7 +604,7 @@ public UniTask HandleAsync(TMessage message, CancellationToken cancellationToken

void IUniTaskSource.GetResult(short token) => GetResult(token);
public UniTaskStatus UnsafeGetStatus() => core.UnsafeGetStatus();
public UniTaskStatus GetStatus(short token)
public /*replaced*/ UniTaskStatus GetStatus(short token)
{
return core.GetStatus(token);
}
Expand Down
2 changes: 1 addition & 1 deletion tools/PostBuildUtility/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void ReplaceToUnity([Option(0)] string directory)
{"core.SetResult", "core.TrySetResult" },
{"public UniTaskStatus GetStatus(short token)", @"void IUniTaskSource.GetResult(short token) => GetResult(token);
public UniTaskStatus UnsafeGetStatus() => core.UnsafeGetStatus();
public UniTaskStatus GetStatus(short token)" },
public /*replaced*/ UniTaskStatus GetStatus(short token)" },

// Remove nullable
{"T?", "T" },
Expand Down

0 comments on commit e80d64e

Please sign in to comment.