Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

16
LINES

< > BotCompany Repo | #1034337 // leftArrowScriptToEvaluable

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (23143L) is out of date.

static InterfaceImplFromByteCode<GazelleV_LeftArrowScript.Evaluable> leftArrowScriptToEvaluable(GazelleV_LeftArrowScript.Script script) {
  ret new InterfaceImplFromByteCode<GazelleV_LeftArrowScript.Evaluable>(
    GazelleV_LeftArrowScript.Evaluable.class,
    O,
    "get",
    new Class[] { VarContext },
    methodMaker -> {
      methodMaker.verboseAdd(true);
      var tbc = LASToByteCode(methodMaker);
      tbc.iVarContext(1);
      tbc.postConversion = stackTop -> methodMaker.convertToObject(stackTop);
      tbc.compileScript(script);
      
      methodMaker.areturn();
    });
}

Author comment

Began life as a copy of #1034323

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034337
Snippet name: leftArrowScriptToEvaluable
Eternal ID of this version: #1034337/5
Text MD5: 0b10a312e983ff367906b92ba97daaf8
Author: stefan
Category: javax / byte code generation
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-02-02 23:56:12
Source code size: 605 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 135 / 216
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)