Skip to content

Commit

Permalink
Merge pull request #64 from itn3000/fix-duplicated-method-gen
Browse files Browse the repository at this point in the history
prevent duplicated method generation(#63)
  • Loading branch information
neuecc authored Jun 22, 2021
2 parents 7a6a2bf + e80d64e commit 8668a20
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 8668a20

Please sign in to comment.