anchor.diff:      }
     }
   
  +  /// Ensure that type provider is created.
     void _createElementFactoryTypeProvider() {
  +    if (analysisContext.typeProvider != null) return;
  +
       var dartCore = elementFactory.libraryOfUri('dart:core');
       var dartAsync = elementFactory.libraryOfUri('dart:async');
       var typeProvider = SummaryTypeProvider()
  
positive.code:         }
        }
  
        // If the first bundle, with dart:core, create the type provider.
        if (!hasDartCoreBeforeBundle && elementFactory.hasDartCore) {
          _createElementFactoryTypeProvider();
        }
      }
  
      logger.run('Prepare linked bundles', () {
  
negative.code:       );
      });
  
      // There might be a rare (and wrong) situation, when the external summaries
      // already include the [targetLibrary]. When this happens, [loadBundle]
      // exists without doing any work. But the type provider must be created.
      _createElementFactoryTypeProvider();
  
      timerLoad2.stop();
    }
  
  