/* Record an end block -- not all scope implementations can handle them */ @Override public void recordEndBlock(IRClosure endBlockClosure) { if (endBlocks == null) endBlocks = new ArrayList<IRClosure>(); endBlockClosure.setBeginEndBlock(); endBlocks.add(endBlockClosure); }
/* Record a begin block -- not all scope implementations can handle them */ @Override public void recordBeginBlock(IRClosure beginBlockClosure) { if (beginBlocks == null) beginBlocks = new ArrayList<IRClosure>(); beginBlockClosure.setBeginEndBlock(); beginBlocks.add(beginBlockClosure); }