Package com.jetbrains.lang.dart.util

Examples of com.jetbrains.lang.dart.util.DartClassResolveResult


    final DartReference[] references = PsiTreeUtil.getChildrenOfType(this, DartReference.class);
    if (references == null || references.length == 0) {
      return DartClassResolveResult.EMPTY;
    }
    final DartClassResolveResult leftClassResolveResult = references[0].resolveDartClass();
    final DartClass dartClass = leftClassResolveResult.getDartClass();
    if (dartClass == null) {
      return DartClassResolveResult.EMPTY;
    }
    // ignore right class. it's a warning.
    final DartOperator operator = dartClass.findOperator(getOperatorSign(), null);
    return DartResolveUtil.getDartClassResolveResult(operator, leftClassResolveResult.getSpecialization());
  }
View Full Code Here


        return toResult(names);
      }
      return toResult(references[1].resolve());
    }
    else if (leftReference != null) {
      final DartClassResolveResult classResolveResult = leftReference.resolveDartClass();
      final DartClass dartClass = classResolveResult.getDartClass();
      if (dartClass != null) {
        final String name = reference.getCanonicalText();
        final DartComponent subComponent = leftReference instanceof DartType
                                           ? dartClass.findNamedConstructor(name)
                                           : filterAccess(reference, dartClass.findMembersByName(name));
View Full Code Here

TOP

Related Classes of com.jetbrains.lang.dart.util.DartClassResolveResult

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.