package org.sugarj.driver.transformations.renaming; import org.strategoxt.stratego_lib.*; import org.strategoxt.lang.*; import org.spoofax.interpreter.terms.*; import static org.strategoxt.lang.Term.*; import org.spoofax.interpreter.library.AbstractPrimitive; import java.util.ArrayList; import java.lang.ref.WeakReference; @SuppressWarnings("all") public class $Scope$Labels_1_0 extends Strategy { public static $Scope$Labels_1_0 instance = new $Scope$Labels_1_0(); @Override public IStrategoTerm invoke(Context context, IStrategoTerm term, Strategy f_11) { ITermFactory termFactory = context.getFactory(); context.push("ScopeLabels_1_0"); Fail26: { IStrategoTerm k_93 = null; IStrategoTerm j_93 = null; if(term.getTermType() != IStrategoTerm.APPL || out._consScopeLabels_1 != ((IStrategoAppl)term).getConstructor()) break Fail26; j_93 = term.getSubterm(0); IStrategoList annos17 = term.getAnnotations(); k_93 = annos17; term = f_11.invoke(context, j_93); if(term == null) break Fail26; term = termFactory.annotateTerm(termFactory.makeAppl(out._consScopeLabels_1, new IStrategoTerm[]{term}), checkListAnnos(termFactory, k_93)); context.popOnSuccess(); if(true) return term; } context.popOnFailure(); return null; } }