Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
afti_dsa_test(MetSig,UMS,Ret).myan
var String funcName;
func afti_beforeMethodCodeList {
return [ [. MetSig, "fp = \"c\";".], [. UMS, "unaryReturn = Ret;" .] ];
}
func afti_codeToAdd {
var java.lang.String ssi = "func succ: Int n -> Int";
var String s = ssi;
return [. "func succ: Int n -> Int = n + 1;", s .];
}
func dsa_codeToAdd {
var String s = compiler getEnv getCurrentProgramUnit getName;;
return "nowExist = 5; \n" ++ "currentProgramUnitName = \"" ++ s ++ "\";\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.