Examples of containsDeclaration()


Examples of com.google.javascript.rhino.JSDocInfo.containsDeclaration()

    /**
     * @return Whether the node has a JSDoc that actually declares something.
     */
    private boolean jsdocContainsDeclarations(Node node) {
      JSDocInfo info = node.getJSDocInfo();
      return (info != null && info.containsDeclaration());
    }
  }

  private class UseSiteGatheringCallback extends AbstractPostOrderCallback {
    @Override
View Full Code Here

Examples of com.google.javascript.rhino.JSDocInfo.containsDeclaration()

    /**
     * @return Whether the node has a JSDoc that actually declares something.
     */
    private boolean jsdocContainsDeclarations(Node node) {
      JSDocInfo info = node.getJSDocInfo();
      return (info != null && info.containsDeclaration());
    }
  }

  private class UseSiteGatheringCallback extends AbstractPostOrderCallback {
    @Override
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.model.ProducedType.containsDeclaration()

   
    @Override
    public void visit(Tree.TypeParameterDeclaration that) {
        TypeParameter tpd = that.getDeclarationModel();
        ProducedType dta = tpd.getDefaultTypeArgument();
        if (dta!=null && dta.containsDeclaration(tpd.getDeclaration())) {
            tpd.setDefaultTypeArgument(null);
        }
        super.visit(that);
    }
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.model.ProducedType.containsDeclaration()

              ProducedType dta = tp.getDefaultTypeArgument();
              if (dta==null ||
                      //necessary to prevent stack overflow
                      //for illegal recursively-defined
                      //default type argument
                      dta.containsDeclaration(tp.getDeclaration())) {
                break;
              }
              else {
                  ProducedType da = dta.substitute(typeArgMap);
                typeArguments.add(da);
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.model.ProducedType.containsDeclaration()

        Tree.TypeSpecifier ts = that.getTypeSpecifier();
        if (ts!=null) {
            Tree.StaticType type = ts.getType();
            if (type!=null) {
                ProducedType dta = type.getTypeModel();
                if (dta!=null && dta.containsDeclaration(tpd.getDeclaration())) {
                    type.addError("default type argument involves parameterized type");
                }
                /*else if (t.containsTypeParameters()) {
                    type.addError("default type argument involves type parameters: " +
                    t.getProducedTypeName());
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.