gpt4 book ai didi

org.jruby.ast.ZSuperNode类的使用及代码示例

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

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

ZSuperNode介绍

[英]a call to 'super' with no arguments in a method.
[中]方法中没有参数的对“super”的调用。

代码示例

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

@Override public Object execute(ParserSupport support, RubyLexer lexer, Object yyVal, Object[] yyVals, int yyTop) {
          yyVal = new ZSuperNode(((ISourcePosition)yyVals[0+yyTop]));
  return yyVal;
 }
};

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

public List<Node> childNodes() {
  return iterNode != null ? createList(iterNode) : EMPTY_LIST;
}

代码示例来源: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

@Override public Object execute(ParserSupport support, RubyLexer lexer, Object yyVal, Object[] yyVals, int yyTop) {
          yyVal = new ZSuperNode(((ISourcePosition)yyVals[0+yyTop]));
  return yyVal;
 }
};

代码示例来源: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: com.ning.billing/killbill-osgi-bundles-jruby

public List<Node> childNodes() {
  return iterNode != null ? createList(iterNode) : EMPTY_LIST;
}

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

@Override public Object execute(ParserSupport support, RubyYaccLexer lexer, Object yyVal, Object[] yyVals, int yyTop) {
         yyVal = new ZSuperNode(((Token)yyVals[0+yyTop]).getPosition());
  return yyVal;
 }
};

代码示例来源: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.jruby/jruby-core

public List<Node> childNodes() {
  return iterNode != null ? createList(iterNode) : EMPTY_LIST;
}

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

@Override public Object execute(ParserSupport support, RubyYaccLexer lexer, Object yyVal, Object[] yyVals, int yyTop) {
          yyVal = new ZSuperNode(((Token)yyVals[0+yyTop]).getPosition());
  return yyVal;
 }
};

代码示例来源: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: org.kill-bill.billing/killbill-osgi-bundles-jruby

public List<Node> childNodes() {
  return iterNode != null ? createList(iterNode) : EMPTY_LIST;
}

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

@Override public Object execute(ParserSupport support, RubyYaccLexer lexer, Object yyVal, Object[] yyVals, int yyTop) {
          yyVal = new ZSuperNode(((Token)yyVals[0+yyTop]).getPosition());
  return yyVal;
 }
};

代码示例来源: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: org.kill-bill.billing/killbill-osgi-bundles-jruby

@Override public Object execute(ParserSupport support, RubyYaccLexer lexer, Object yyVal, Object[] yyVals, int yyTop) {
         yyVal = new ZSuperNode(((Token)yyVals[0+yyTop]).getPosition());
  return yyVal;
 }
};

代码示例来源: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

@Override public Object execute(ParserSupport support, RubyYaccLexer lexer, Object yyVal, Object[] yyVals, int yyTop) {
          yyVal = new ZSuperNode(((Token)yyVals[0+yyTop]).getPosition());
  return yyVal;
 }
};

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

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

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

@Override public Object execute(ParserSupport support, RubyYaccLexer lexer, Object yyVal, Object[] yyVals, int yyTop) {
          yyVal = new ZSuperNode(((Token)yyVals[0+yyTop]).getPosition());
  return yyVal;
 }
};

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