Java Code Examples for com.google.javascript.rhino.IR#voidNode()

The following examples show how to use com.google.javascript.rhino.IR#voidNode() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Cardumen_00200_s.java    From coming with MIT License 5 votes vote down vote up
/**
 * Create a node for an empty result expression:
 *   "void 0"
 */
static Node newUndefinedNode(Node srcReferenceNode) {
  Node node = IR.voidNode(IR.number(0));
  if (srcReferenceNode != null) {
      node.copyInformationFromForTree(srcReferenceNode);
  }
  return node;
}
 
Example 2
Source File: Cardumen_00200_t.java    From coming with MIT License 5 votes vote down vote up
/**
 * Create a node for an empty result expression:
 *   "void 0"
 */
static Node newUndefinedNode(Node srcReferenceNode) {
  Node node = IR.voidNode(IR.number(0));
  if (srcReferenceNode != null) {
      node.copyInformationFromForTree(srcReferenceNode);
  }
  return node;
}
 
Example 3
Source File: Cardumen_00149_s.java    From coming with MIT License 5 votes vote down vote up
/**
 * Create a node for an empty result expression:
 *   "void 0"
 */
static Node newUndefinedNode(Node srcReferenceNode) {
  Node node = IR.voidNode(IR.number(0));
  if (srcReferenceNode != null) {
      node.copyInformationFromForTree(srcReferenceNode);
  }
  return node;
}
 
Example 4
Source File: Cardumen_00149_t.java    From coming with MIT License 5 votes vote down vote up
/**
 * Create a node for an empty result expression:
 *   "void 0"
 */
static Node newUndefinedNode(Node srcReferenceNode) {
  Node node = IR.voidNode(IR.number(0));
  if (srcReferenceNode != null) {
      node.copyInformationFromForTree(srcReferenceNode);
  }
  return node;
}
 
Example 5
Source File: Cardumen_0014_t.java    From coming with MIT License 5 votes vote down vote up
/**
 * Create a node for an empty result expression:
 *   "void 0"
 */
static Node newUndefinedNode(Node srcReferenceNode) {
  Node node = IR.voidNode(IR.number(0));
  if (srcReferenceNode != null) {
      node.copyInformationFromForTree(srcReferenceNode);
  }
  return node;
}
 
Example 6
Source File: Cardumen_0014_s.java    From coming with MIT License 5 votes vote down vote up
/**
 * Create a node for an empty result expression:
 *   "void 0"
 */
static Node newUndefinedNode(Node srcReferenceNode) {
  Node node = IR.voidNode(IR.number(0));
  if (srcReferenceNode != null) {
      node.copyInformationFromForTree(srcReferenceNode);
  }
  return node;
}
 
Example 7
Source File: Cardumen_0087_s.java    From coming with MIT License 5 votes vote down vote up
/**
 * Create a node for an empty result expression:
 *   "void 0"
 */
static Node newUndefinedNode(Node srcReferenceNode) {
  Node node = IR.voidNode(IR.number(0));
  if (srcReferenceNode != null) {
      node.copyInformationFromForTree(srcReferenceNode);
  }
  return node;
}
 
Example 8
Source File: Cardumen_0087_t.java    From coming with MIT License 5 votes vote down vote up
/**
 * Create a node for an empty result expression:
 *   "void 0"
 */
static Node newUndefinedNode(Node srcReferenceNode) {
  Node node = IR.voidNode(IR.number(0));
  if (srcReferenceNode != null) {
      node.copyInformationFromForTree(srcReferenceNode);
  }
  return node;
}
 
Example 9
Source File: jKali_003_t.java    From coming with MIT License 5 votes vote down vote up
/**
 * Create a node for an empty result expression:
 *   "void 0"
 */
static Node newUndefinedNode(Node srcReferenceNode) {
  Node node = IR.voidNode(IR.number(0));
  if (srcReferenceNode != null) {
      node.copyInformationFromForTree(srcReferenceNode);
  }
  return node;
}
 
Example 10
Source File: jKali_003_s.java    From coming with MIT License 5 votes vote down vote up
/**
 * Create a node for an empty result expression:
 *   "void 0"
 */
static Node newUndefinedNode(Node srcReferenceNode) {
  Node node = IR.voidNode(IR.number(0));
  if (srcReferenceNode != null) {
      node.copyInformationFromForTree(srcReferenceNode);
  }
  return node;
}
 
Example 11
Source File: jMutRepair_003_s.java    From coming with MIT License 5 votes vote down vote up
/**
 * Create a node for an empty result expression:
 *   "void 0"
 */
static Node newUndefinedNode(Node srcReferenceNode) {
  Node node = IR.voidNode(IR.number(0));
  if (srcReferenceNode != null) {
      node.copyInformationFromForTree(srcReferenceNode);
  }
  return node;
}
 
Example 12
Source File: jMutRepair_003_t.java    From coming with MIT License 5 votes vote down vote up
/**
 * Create a node for an empty result expression:
 *   "void 0"
 */
static Node newUndefinedNode(Node srcReferenceNode) {
  Node node = IR.voidNode(IR.number(0));
  if (srcReferenceNode != null) {
      node.copyInformationFromForTree(srcReferenceNode);
  }
  return node;
}
 
Example 13
Source File: Closure_10_NodeUtil_t.java    From coming with MIT License 5 votes vote down vote up
/**
 * Create a node for an empty result expression:
 *   "void 0"
 */
static Node newUndefinedNode(Node srcReferenceNode) {
  Node node = IR.voidNode(IR.number(0));
  if (srcReferenceNode != null) {
      node.copyInformationFromForTree(srcReferenceNode);
  }
  return node;
}
 
Example 14
Source File: Closure_10_NodeUtil_s.java    From coming with MIT License 5 votes vote down vote up
/**
 * Create a node for an empty result expression:
 *   "void 0"
 */
static Node newUndefinedNode(Node srcReferenceNode) {
  Node node = IR.voidNode(IR.number(0));
  if (srcReferenceNode != null) {
      node.copyInformationFromForTree(srcReferenceNode);
  }
  return node;
}
 
Example 15
Source File: NodeUtil.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Create a node for an empty result expression:
 *   "void 0"
 */
static Node newUndefinedNode(Node srcReferenceNode) {
  Node node = IR.voidNode(IR.number(0));
  if (srcReferenceNode != null) {
      node.copyInformationFromForTree(srcReferenceNode);
  }
  return node;
}
 
Example 16
Source File: AliasKeywords.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
@Override
/**
 * Create the alias declaration (e.g. var $$ALIAS_VOID=void 0;).
 */
protected void insertAliasDeclaration(Node codeRoot) {
  Node varNode = new Node(Token.VAR);
  Node value = IR.voidNode(IR.number(0));
  Node name = NodeUtil.newName(
      compiler.getCodingConvention(), getAliasName(),
      varNode, getAliasName());
  name.addChildToBack(value);
  varNode.addChildToBack(name);
  codeRoot.addChildrenToFront(varNode);
}