Skip to content

Instantly share code, notes, and snippets.

@iNoles

iNoles/Request Secret

Created October 15, 2018 03:15
Show Gist options
  • Save iNoles/6df55f2244b02f781a480a5a2b978544 to your computer and use it in GitHub Desktop.
Save iNoles/6df55f2244b02f781a480a5a2b978544 to your computer and use it in GitHub Desktop.
@Nullable
public final Object getText(@NotNull Continuation var1) {
Object $continuation;
label28: {
if (var1 instanceof <undefinedtype>) {
$continuation = (<undefinedtype>)var1;
if ((((<undefinedtype>)$continuation).label & Integer.MIN_VALUE) != 0) {
((<undefinedtype>)$continuation).label -= Integer.MIN_VALUE;
break label28;
}
}
$continuation = new ContinuationImpl(var1) {
// $FF: synthetic field
Object result;
int label;
Object L$0;
@Nullable
public final Object invokeSuspend(@NotNull Object result) {
this.result = result;
this.label |= Integer.MIN_VALUE;
return Request.this.getText(this);
}
};
}
Object var2 = ((<undefinedtype>)$continuation).result;
Object var4 = IntrinsicsKt.getCOROUTINE_SUSPENDED();
Object var10000;
switch(((<undefinedtype>)$continuation).label) {
case 0:
if (var2 instanceof Failure) {
throw ((Failure)var2).exception;
}
((<undefinedtype>)$continuation).L$0 = this;
((<undefinedtype>)$continuation).label = 1;
var10000 = this.send((Continuation)$continuation);
if (var10000 == var4) {
return var4;
}
break;
case 1:
Request var5 = (Request)((<undefinedtype>)$continuation).L$0;
if (var2 instanceof Failure) {
throw ((Failure)var2).exception;
}
var10000 = var2;
break;
default:
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
return ((Response)var10000).getText();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment