Package com.google.dart.engine.ast

Examples of com.google.dart.engine.ast.ImplementsClause


            recordSuperType(mixinNode, IndexConstants.IS_MIXED_IN_BY);
          }
        }
      }
      {
        ImplementsClause implementsClause = node.getImplementsClause();
        if (implementsClause != null) {
          for (TypeName interfaceNode : implementsClause.getInterfaces()) {
            recordSuperType(interfaceNode, IndexConstants.IS_IMPLEMENTED_BY);
          }
        }
      }
      return super.visitClassDeclaration(node);
View Full Code Here


            recordSuperType(mixinNode, IndexConstants.IS_MIXED_IN_BY);
          }
        }
      }
      {
        ImplementsClause implementsClause = node.getImplementsClause();
        if (implementsClause != null) {
          for (TypeName interfaceNode : implementsClause.getInterfaces()) {
            recordSuperType(interfaceNode, IndexConstants.IS_IMPLEMENTED_BY);
          }
        }
      }
      return super.visitClassTypeAlias(node);
View Full Code Here

    ClassElement outerClass = enclosingClass;
    try {
      isInNativeClass = node.getNativeClause() != null;
      enclosingClass = node.getElement();
      ExtendsClause extendsClause = node.getExtendsClause();
      ImplementsClause implementsClause = node.getImplementsClause();
      WithClause withClause = node.getWithClause();
      checkForBuiltInIdentifierAsName(
          node.getName(),
          CompileTimeErrorCode.BUILT_IN_IDENTIFIER_AS_TYPE_NAME);
      checkForMemberWithClassName();
View Full Code Here

        CompileTimeErrorCode.BUILT_IN_IDENTIFIER_AS_TYPEDEF_NAME);

    ClassElement outerClassElement = enclosingClass;
    try {
      enclosingClass = node.getElement();
      ImplementsClause implementsClause = node.getImplementsClause();
      // Only check for all of the inheritance logic around clauses if there isn't an error code
      // such as "Cannot extend double" already on the class.
      if (!checkForExtendsDisallowedClassInTypeAlias(node)
          && !checkForImplementsDisallowedClass(implementsClause)
          && !checkForAllMixinErrorCodes(node.getWithClause())) {
View Full Code Here

    InterfaceType superType = enclosingClass.getSupertype();
    if (superType == null) {
      return false;
    }
    // prepare interfaces
    ImplementsClause implementsClause = node.getImplementsClause();
    if (implementsClause == null) {
      return false;
    }
    // check interfaces
    boolean hasProblem = false;
    for (TypeName interfaceNode : implementsClause.getInterfaces()) {
      if (interfaceNode.getType().equals(superType)) {
        hasProblem = true;
        errorReporter.reportErrorForNode(
            CompileTimeErrorCode.IMPLEMENTS_SUPER_CLASS,
            interfaceNode,
View Full Code Here

  @Override
  public Void visitClassDeclaration(ClassDeclaration node) {
    ExtendsClause extendsClause = node.getExtendsClause();
    WithClause withClause = node.getWithClause();
    ImplementsClause implementsClause = node.getImplementsClause();

    hasReferenceToSuper = false;
    super.visitClassDeclaration(node);

    ClassElementImpl classElement = getClassElement(node.getName());
View Full Code Here

TOP

Related Classes of com.google.dart.engine.ast.ImplementsClause

Copyright © 2018 www.massapicom. 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.