Examples of specialize()


Examples of ar.Transfer.specialize()

        Aggregates<Integer> aggs = render.aggregate(glyphs, s, aggregator, vt, width, height);
        long end = System.currentTimeMillis();
        long aggTime = end-start;

        start = System.currentTimeMillis();
        Transfer.Specialized<Number,Color> ts = transfer.specialize(aggs);
        Aggregates<Color> colors = render.transfer(aggs, ts);
        end = System.currentTimeMillis();
        long transTime = end-start;

        aggs.get(0, 0);
View Full Code Here

Examples of ar.Transfer.specialize()

      transfer = t;
    } else {
      transfer = transfers.get(0);
    }
   
    Transfer.Specialized ts = transfer.specialize(aggs);
    Aggregates<?> rslt = r.transfer(aggs, ts);
    return rslt;
  }
 
  public AffineTransform viewTransform(String vtTXT, Glyphset<?,?> g, int width, int height) {
View Full Code Here

Examples of com.google.javascript.jscomp.newtypes.JSType.specialize()

              receiver.isName() ? receiver.getString() : null,
              recvType.getDeclaredProp(propQname),
              resultType, requiredType)) {
        // Tighten the inferred type and don't warn.
        // See Token.NAME fwd for explanation about types as lower/upper bounds.
        resultType = resultType.specialize(requiredType);
        LValueResultFwd lvr =
            analyzeLValueFwd(propAccessNode, inEnv, resultType);
        TypeEnv updatedEnv =
            updateLvalueTypeInEnv(lvr.env, propAccessNode, lvr.ptr, resultType);
        return new EnvTypePair(updatedEnv, resultType);
View Full Code Here

Examples of com.google.javascript.jscomp.newtypes.JSType.specialize()

      if (insideQualifiedName && lvalueType.isLoose()) {
        // For loose objects, create the inner property if it doesn't exist.
        lvalueType = lvalueType.withProperty(
            pname, JSType.TOP_OBJECT.withLoose());
        if (lvalueType.isDict() && propAccessNode.isGetProp()) {
          lvalueType = lvalueType.specialize(JSType.TOP_STRUCT);
        } else if (lvalueType.isStruct() && propAccessNode.isGetElem()) {
          lvalueType = lvalueType.specialize(JSType.TOP_DICT);
        }
        lvalueEnv = updateLvalueTypeInEnv(
            lvalueEnv, obj, lvalue.ptr, lvalueType);
View Full Code Here

Examples of com.google.javascript.jscomp.newtypes.JSType.specialize()

        lvalueType = lvalueType.withProperty(
            pname, JSType.TOP_OBJECT.withLoose());
        if (lvalueType.isDict() && propAccessNode.isGetProp()) {
          lvalueType = lvalueType.specialize(JSType.TOP_STRUCT);
        } else if (lvalueType.isStruct() && propAccessNode.isGetElem()) {
          lvalueType = lvalueType.specialize(JSType.TOP_DICT);
        }
        lvalueEnv = updateLvalueTypeInEnv(
            lvalueEnv, obj, lvalue.ptr, lvalueType);
      } else {
        // Warn for inexistent prop either on the non-top-level of a qualified
View Full Code Here

Examples of com.jetbrains.lang.dart.util.DartClassResolveResult.specialize()

      final DartClass dartClass = PsiTreeUtil.getParentOfType(this, DartClass.class);
      return dartClass == null ? DartClassResolveResult.EMPTY : dartClass.getSuperClassResolvedOrObjectClass();
    }
    if (this instanceof DartNewExpression || this instanceof DartConstConstructorExpression) {
      final DartClassResolveResult result = DartResolveUtil.resolveClassByType(PsiTreeUtil.getChildOfType(this, DartType.class));
      result.specialize(this);
      return result;
    }
    if (this instanceof DartCallExpression) {
      final DartExpression expression = ((DartCallExpression)this).getExpression();
      final DartClassResolveResult leftResult = tryGetLeftResolveResult(expression);
View Full Code Here

Examples of com.jetbrains.lang.dart.util.DartClassResolveResult.specialize()

      final DartExpression expression = ((DartCallExpression)this).getExpression();
      final DartClassResolveResult leftResult = tryGetLeftResolveResult(expression);
      if (expression instanceof DartReference) {
        final DartClassResolveResult result =
          DartResolveUtil.getDartClassResolveResult(((DartReference)expression).resolve(), leftResult.getSpecialization());
        result.specialize(this);
        return result;
      }
    }
    if (this instanceof DartCascadeReferenceExpression) {
      DartReference[] children = PsiTreeUtil.getChildrenOfType(this, DartReference.class);
View Full Code Here

Examples of dovetaildb.querynode.QueryNode.specialize()

    assertTrue(s.next());
    assertFalse(s.next());
   
    allTerms = index.getRange(new Range(ArrayBytes.EMPTY_BYTES, null, null, true, true), revNum);
    Range r = new Range(t1, null, null, true, true);
    s = allTerms.specialize(r);
    assertNotNull(s);

    r = new Range(t3, t3, t3, true, true);
    s = allTerms.specialize(r);
    // could be null (no results expected)
View Full Code Here

Examples of dovetaildb.querynode.QueryNode.specialize()

    Range r = new Range(t1, null, null, true, true);
    s = allTerms.specialize(r);
    assertNotNull(s);

    r = new Range(t3, t3, t3, true, true);
    s = allTerms.specialize(r);
    // could be null (no results expected)
    if (s != null) { // if not null, make sure no results match
      do {
        assertFalse(r.matches(s.term()));
      } while(s.nextTerm() != NextStatus.AT_END);
View Full Code Here

Examples of ptolemy.data.expr.ParseTreeSpecializer.specialize()

    public void visitFunctionDefinitionNode(ASTPtFunctionDefinitionNode node)
            throws IllegalActionException {
        ASTPtRootNode cloneTree;

        ParseTreeSpecializer specializer = new ParseTreeSpecializer();
        cloneTree = specializer.specialize(node.getExpressionTree(), node
                .getArgumentNameList(), _scope);

        // Infer the return type.
        if (_typeInference == null) {
            _typeInference = new ParseTreeTypeInference();
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.