Examples of dereference()


Examples of com.google.javascript.rhino.jstype.JSType.dereference()

        "/** @return {number} */ extern.one;",
        "/** @type {Object} */ var normal;" +
        "/** @return {number} */ normal.one;", null);

    JSType e = globalScope.getVar("extern").getType();
    assertFalse(e.dereference().hasOwnProperty("one"));

    JSType normal = globalScope.getVar("normal").getType();
    assertFalse(normal.dereference().hasOwnProperty("one"));
  }

View Full Code Here

Examples of com.google.javascript.rhino.jstype.JSType.dereference()

    JSType e = globalScope.getVar("extern").getType();
    assertFalse(e.dereference().hasOwnProperty("one"));

    JSType normal = globalScope.getVar("normal").getType();
    assertFalse(normal.dereference().hasOwnProperty("one"));
  }

  public void testPropertyInExterns3() {
    testSame(
        "/** @constructor \n * @param {*=} x @return {!Object} */"
 
View Full Code Here

Examples of com.google.javascript.rhino.jstype.JSType.dereference()

  /**
   * Utility function for getting a function type from a var.
   */
  static FunctionType getFunctionType(@Nullable Var v) {
    JSType t = v == null ? null : v.getType();
    ObjectType o = t == null ? null : t.dereference();
    return JSType.toMaybeFunctionType(o);
  }

  /**
   * Utility function for getting an instance type from a var pointing
View Full Code Here

Examples of com.google.javascript.rhino.jstype.JSType.dereference()

   *     to an Object type, if possible.
   */
  String getReadableJSTypeName(Node n, boolean dereference) {
    JSType type = getJSType(n);
    if (dereference) {
      ObjectType dereferenced = type.dereference();
      if (dereferenced != null) {
        type = dereferenced;
      }
    }

View Full Code Here

Examples of com.sun.pdfview.PDFObject.dereference()

    }
    else {
      // must check parent since field type is inherited
      PDFObject parent = annotObject.getDictRef("Parent");
      while (parent != null && parent.isIndirect()) {
        parent = parent.dereference();
      }
      if (parent != null) {
        fieldTypeRef = parent.getDictRef("FT");
        this.fieldType = FieldType.getByCode(fieldTypeRef.getStringValue());
      }
View Full Code Here

Examples of edu.cmu.graphchi.datablocks.DataBlockManager.dereference()

            Iterator<Integer> iter = vertexData.currentIterator();

            while (iter.hasNext()) {
                int j = iter.next();
                ChiPointer ptr = vertexData.getVertexValuePtr(j, blockId);
                VertexDataType oldValue = blockManager.dereference(ptr, conv);
                VertexDataType newValue = callback.map(j, oldValue);
                blockManager.writeValue(ptr, conv, newValue);
            }
            vertexData.releaseAndCommit(i, blockId);
        }
View Full Code Here

Examples of javax.xml.crypto.URIDereferencer.dereference()

            }
            public String getType(){
                return null;
            }
        };
        Data data = dereferencer.dereference(domReference, context);
        //Node parentNode = node.getParentNode();
        Iterator nodeIterator =  ((NodeSetData)data).iterator();
        if(nodeIterator.hasNext()){
            return (Node)nodeIterator.next();
        }else{
View Full Code Here

Examples of jp.ac.kobe_u.cs.prolog.lang.Term.dereference()

        Predicate cont;
        a1 = engine.aregs[1];
        a2 = engine.aregs[2];
        cont = engine.cont;
    // '$process_order'(end_of_file,A):-['$neck_cut']
        a1 = a1.dereference();
        if (a1.isSymbol()){
            if (! a1.equals(s4))
                return engine.fail();
        } else if (a1.isVariable()){
            ((VariableTerm) a1).bind(s4, engine.trail);
View Full Code Here

Examples of jp.ac.kobe_u.cs.prolog.lang.Term.dereference()

        Predicate cont;
        a1 = engine.aregs[1];
        a2 = engine.aregs[2];
        cont = engine.cont;
    // '$process_order'([A|B],C):-['$neck_cut',consult([A|B])]
        a1 = a1.dereference();
        if (a1.isList()){
            Term[] args = {((ListTerm)a1).car(), ((ListTerm)a1).cdr()};
            a3 = args[0];
            a4 = args[1];
        } else if (a1.isVariable()){
View Full Code Here

Examples of jp.ac.kobe_u.cs.prolog.lang.Term.dereference()

        if (! a3.unify(new IntegerTerm(engine.B0), engine.trail)) {
            return engine.fail();
        }
        //END inline expansion
        //START inline expansion of var(a(1))
        a1 = a1.dereference();
        if (! a1.isVariable()) {
            return engine.fail();
        }
        //END inline expansion
        //START inline expansion of $cut(a(3))
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.