Examples of children()


Examples of com.google.caja.parser.js.MultiDeclaration.children()

      } else {
        md = new MultiDeclaration(pos, Collections.<Declaration>emptyList());
        body.insertBefore(md, first);
      }
      MutableParseTreeNode.Mutation mut = md.createMutation();
      Declaration firstDecl = md.children().get(0);
      for (Declaration decl : decls) {
        mut = mut.insertBefore(decl, firstDecl);
      }
      mut.execute();
    }
View Full Code Here

Examples of com.google.caja.parser.js.ObjectConstructor.children()

    if (specimens.isEmpty()) { return false; }
    ParseTreeNode specimen = specimens.get(0);
    if (!(specimen instanceof ObjectConstructor)) { return false; }
    ObjectConstructor obj = (ObjectConstructor) specimen;
    List<ParseTreeNode> parts = Lists.<ParseTreeNode>newLinkedList(
        obj.children());
    MultiPropertyQuasi hole = null;
    for (QuasiNode q : getChildren()) {
      if (q instanceof MultiPropertyQuasi) {
        hole = (MultiPropertyQuasi) q;
      } else {
View Full Code Here

Examples of com.google.caja.parser.js.Operation.children()

      case FUNCTION_CALL:
        return false;
      case CONSTRUCTOR:
        return true;
      case LOGICAL_AND: case LOGICAL_OR:
        return shouldBeEvaluatedForValue(op.children().get(1));
      case TERNARY:
        return shouldBeEvaluatedForValue(op.children().get(1))
            && shouldBeEvaluatedForValue(op.children().get(2));
      case COMMA:
        // We do not allow comma, since bad things happen when commas are used.
View Full Code Here

Examples of com.google.caja.parser.js.Statement.children()

        blankLabel = oldBlankLabel;
        if (sl.nUses == 0) {
          if (!wrap && opt instanceof LabeledStatement
              && !"".equals(((LabeledStatement) opt).getLabel())) {
            return ParseTreeNodes.newNodeInstance(
                opt.getClass(), opt.getFilePosition(), "", opt.children());
          }
        } else {
          if (!wrap && opt instanceof LabeledStatement) {
            return ParseTreeNodes.newNodeInstance(
                opt.getClass(), opt.getFilePosition(), sl.newName,
View Full Code Here

Examples of com.google.caja.parser.js.TryStmt.children()

  public final void testCatchBlocks() throws Exception {
    Block n = js(fromString("try { } catch (e) { var x; }"));

    TryStmt t = (TryStmt) n.children().get(0);
    CatchStmt c = (CatchStmt) t.children().get(1);

    Scope s0 = fromProgram(n);
    Scope s1 = Scope.fromCatchStmt(s0, c);

    // e only defined in catch scope
View Full Code Here

Examples of com.google.gwt.query.client.GQuery.children()

            $("body").append("<div id='gwt_chosen_temp_div' style='display:block;position:absolute;" + (isRTL ?
                    "right" : "left") + ":-9000px; visibility:hidden'> </div>");
            GQuery tempDiv = $("#gwt_chosen_temp_div");
            tempDiv.append($selectElement.clone());

            fWidth = tempDiv.children("select").outerWidth();

            tempDiv.remove();
            isHidden = fWidth > 0;

        }
View Full Code Here

Examples of com.google.javascript.rhino.Node.children()

    JSDocInfo info = NodeUtil.getBestJSDocInfo(fn);
    if (templateParametersNode.hasChildren()) {
      Preconditions.checkNotNull(info,
          "Missing JSDoc declaration for template function %s", fnName);
    }
    for (Node paramNode : templateParametersNode.children()) {
      String name = paramNode.getString();
      JSTypeExpression expression = info.getParameterType(name);
      Preconditions.checkNotNull(expression,
          "Missing JSDoc for parameter %s of template function %s",
          name, fnName);
View Full Code Here

Examples of com.qspin.qtaste.ui.TCTreeNode.children()

        return null;
       
    }
    public JTreeNode getTestSuite(String directory) {
        TCTreeNode rootNode = (TCTreeNode)this.getRoot();
        Enumeration<?> childNodes = rootNode.children();
        while (childNodes.hasMoreElements()){
            TCTreeNode childNode = (TCTreeNode)childNodes.nextElement();
            JTreeNode child = (JTreeNode)childNode.getUserObject();
            if (child.getId().equals(directory)) {
                return child;
View Full Code Here

Examples of com.volantis.devrep.device.api.xml.hierarchy.HierarchyEntry.children()

        Iterator children = null;
        Hierarchy hierarchy = loadHierarchy();
        HierarchyEntry entry = hierarchy.find(deviceName);
        if (entry != null) {
            children = entry.children();
        }
        return new IteratorRepositoryEnumeration(children) {

            public Object next() throws RepositoryException {
                HierarchyEntry child = (HierarchyEntry) super.next();
View Full Code Here

Examples of cuchaz.enigma.analysis.ClassImplementationsTreeNode.children()

    m_implementations = HashMultiset.create();
    ClassImplementationsTreeNode implementationsNode = index.getClassImplementations( null, m_classEntry );
    if( implementationsNode != null )
    {
      @SuppressWarnings( "unchecked" )
      Enumeration<ClassImplementationsTreeNode> implementations = implementationsNode.children();
      while( implementations.hasMoreElements() )
      {
        ClassImplementationsTreeNode node = implementations.nextElement();
        m_implementations.add( scrubClassName( node.getClassEntry().getName() ) );
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.