gpt4 book ai didi

org.jruby.ast.ZSuperNode.getIterNode()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-17 20:31:31 25 4
gpt4 key购买 nike

本文整理了Java中org.jruby.ast.ZSuperNode.getIterNode()方法的一些代码示例,展示了ZSuperNode.getIterNode()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZSuperNode.getIterNode()方法的具体详情如下:
包路径:org.jruby.ast.ZSuperNode
类名称:ZSuperNode
方法名:getIterNode

ZSuperNode.getIterNode介绍

暂无

代码示例

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

public void compileZSuper(Node node, BodyCompiler context, boolean expr) {
  ZSuperNode zsuperNode = (ZSuperNode) node;
  CompilerCallback closure = getBlock(zsuperNode.getIterNode());
  context.callZSuper(closure);
  // TODO: don't require pop
  if (!expr) context.consumeCurrentValue();
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

public void compileZSuper(Node node, BodyCompiler context, boolean expr) {
  ZSuperNode zsuperNode = (ZSuperNode) node;
  CompilerCallback closure = getBlock(zsuperNode.getIterNode());
  context.callZSuper(closure);
  // TODO: don't require pop
  if (!expr) context.consumeCurrentValue();
}

代码示例来源:origin: org.jruby/jruby-core

public Operand buildZSuper(ZSuperNode zsuperNode) {
  if (scope.isModuleBody()) return buildSuperInScriptBody();
  Operand block = setupCallClosure(zsuperNode.getIterNode());
  if (block == null) block = scope.getYieldClosureVariable();
  // Enebo:ZSuper in for (or nested for) can be statically resolved like method but it needs to fixup depth.
  if (scope instanceof IRMethod) {
    return buildSuperInstr(block, getCallArgs(scope, this));
  } else {
    return buildZSuperIfNest(block);
  }
}

代码示例来源:origin: org.jruby/jruby-complete

public Operand buildZSuper(ZSuperNode zsuperNode) {
  if (scope.isModuleBody()) return buildSuperInScriptBody();
  Operand block = setupCallClosure(zsuperNode.getIterNode());
  if (block == null) block = scope.getYieldClosureVariable();
  // Enebo:ZSuper in for (or nested for) can be statically resolved like method but it needs to fixup depth.
  if (scope instanceof IRMethod) {
    return buildSuperInstr(block, getCallArgs(scope, this));
  } else {
    return buildZSuperIfNest(block);
  }
}

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

if (s.isModuleBody()) return buildSuperInScriptBody(s);
Operand block = setupCallClosure(zsuperNode.getIterNode(), s);
if (block == null) block = s.getImplicitBlockArg();

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

if (s.isModuleBody()) return buildSuperInScriptBody(s);
Operand block = setupCallClosure(zsuperNode.getIterNode(), s);
if (block == null) block = s.getImplicitBlockArg();

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

setFlag(node, SCOPE_AWARE);
  setFlag(node, ZSUPER);
  inspect(((ZSuperNode)node).getIterNode());
  break;
default:

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

setFlag(node, SCOPE_AWARE);
  setFlag(node, ZSUPER);
  inspect(((ZSuperNode)node).getIterNode());
  break;
default:

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com