org.mozilla.javascript.Parser.statementHelper()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 JavaScript  
字(3.3k)|赞(0)|评价(0)|浏览(254)

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

Parser.statementHelper介绍

[英]Whether the "catch (e: e instanceof Exception) { ... }" syntax is implemented.
[中]是否“catch(e:e instanceof Exception){…}”实现了语法。

代码示例

代码示例来源:origin: com.github.tntim96/rhino

AstNode pn = statementHelper();
if (pn != null) {
  if (compilerEnv.isStrictMode() && !pn.hasSideEffects()) {

代码示例来源:origin: io.apigee/rhino

AstNode pn = statementHelper();
if (pn != null) {
  if (compilerEnv.isStrictMode() && !pn.hasSideEffects()) {

代码示例来源:origin: geogebra/geogebra

AstNode pn = statementHelper();
if (pn != null) {
  if (compilerEnv.isStrictMode() && !pn.hasSideEffects()) {

代码示例来源:origin: ro.isdc.wro4j/rhino

AstNode pn = statementHelper();
if (pn != null) {
  if (compilerEnv.isStrictMode() && !pn.hasSideEffects()) {

代码示例来源:origin: rhino/js

private Node statement()
  throws IOException
{
  try {
    Node pn = statementHelper(null);
    if (pn != null) {
      if (compilerEnv.isStrictMode() && !pn.hasSideEffects())
        addStrictWarning("msg.no.side.effects", "");
      return pn;
    }
  } catch (ParserException e) { }
  // skip to end of statement
  int lineno = ts.getLineno();
  guessingStatementEnd: for (;;) {
    int tt = peekTokenOrEOL();
    consumeToken();
    switch (tt) {
     case Token.ERROR:
     case Token.EOF:
     case Token.EOL:
     case Token.SEMI:
      break guessingStatementEnd;
    }
  }
  return nf.createExprStatement(nf.createName("error"), lineno);
}

代码示例来源:origin: com.sun.phobos/phobos-rhino

private Node statement()
  throws IOException
{
  try {
    Node pn = statementHelper(null);
    if (pn != null) {
      if (compilerEnv.isStrictMode() && !pn.hasSideEffects())
        addStrictWarning("msg.no.side.effects", "");
      return pn;
    }
  } catch (ParserException e) { }
  // skip to end of statement
  int lineno = ts.getLineno();
  guessingStatementEnd: for (;;) {
    int tt = peekTokenOrEOL();
    consumeToken();
    switch (tt) {
     case Token.ERROR:
     case Token.EOF:
     case Token.EOL:
     case Token.SEMI:
      break guessingStatementEnd;
    }
  }
  return nf.createExprStatement(nf.createName("error"), lineno);
}

代码示例来源:origin: com.yahoo/yuicompressor

private Node statement()
  throws IOException
{
  try {
    Node pn = statementHelper(null);
    if (pn != null) {
      if (compilerEnv.isStrictMode() && !pn.hasSideEffects())
        addStrictWarning("msg.no.side.effects", "");
      return pn;
    }
  } catch (ParserException e) { }
  // skip to end of statement
  int lineno = ts.getLineno();
  guessingStatementEnd: for (;;) {
    int tt = peekTokenOrEOL();
    consumeToken();
    switch (tt) {
     case Token.ERROR:
     case Token.EOF:
     case Token.EOL:
     case Token.SEMI:
      break guessingStatementEnd;
    }
  }
  return nf.createExprStatement(nf.createName("error"), lineno);
}

代码示例来源:origin: geogebra/geogebra

currentLabel = bundle;
if (stmt == null) {
  stmt = statementHelper();

代码示例来源:origin: io.apigee/rhino

currentLabel = bundle;
if (stmt == null) {
  stmt = statementHelper();

代码示例来源:origin: com.github.tntim96/rhino

currentLabel = bundle;
if (stmt == null) {
  stmt = statementHelper();

代码示例来源:origin: ro.isdc.wro4j/rhino

currentLabel = bundle;
if (stmt == null) {
  stmt = statementHelper();

代码示例来源:origin: com.yahoo/yuicompressor

pn = statementHelper(statementLabel);
} finally {
  labelSet.remove(name);

代码示例来源:origin: com.sun.phobos/phobos-rhino

pn = statementHelper(statementLabel);
} finally {
  labelSet.remove(name);

代码示例来源:origin: rhino/js

pn = statementHelper(statementLabel);
} finally {
  labelSet.remove(name);

相关文章

Parser类方法