コード例 #1
0
ファイル: IREvalScript.java プロジェクト: jwinter/jruby
 /* 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);
 }
コード例 #2
0
ファイル: IREvalScript.java プロジェクト: jwinter/jruby
 /* 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);
 }