Пример #1
0
 private void processType(DartIdentifier node, InterfaceType binding) {
   CompilationUnitElement element = getDartElement(binding.asRawType());
   if (element instanceof Type) {
     Type type = (Type) element;
     try {
       recordRelationship(
           peekTarget(new SourceRangeImpl(node)), new TypeLocation(type, type.getNameRange()));
     } catch (DartModelException exception) {
       DartCore.logInformation(
           "Could not get range for type "
               + type.getElementName()
               + " referenced from type "
               + peekTarget().getDartElement().getElementName(),
           exception);
     }
   }
 }