Package com.google.dart.engine.internal.cache

Examples of com.google.dart.engine.internal.cache.AnalysisCache


   * @param factory the source factory containing the information needed to create the cache
   * @return the cache that was created
   */
  protected AnalysisCache createCacheFromSourceFactory(SourceFactory factory) {
    if (factory == null) {
      return new AnalysisCache(new CachePartition[] {privatePartition});
    }
    DartSdk sdk = factory.getDartSdk();
    if (sdk == null) {
      return new AnalysisCache(new CachePartition[] {privatePartition});
    }
    return new AnalysisCache(new CachePartition[] {
        AnalysisEngine.getInstance().getPartitionManager().forSdk(sdk), privatePartition});
  }
View Full Code Here


    DartSdk sdk = factory.getDartSdk();
    if (sdk == null) {
      throw new IllegalArgumentException(
          "The source factory for an SDK analysis context must have a DartUriResolver");
    }
    return new AnalysisCache(
        new CachePartition[] {AnalysisEngine.getInstance().getPartitionManager().forSdk(sdk)});
  }
View Full Code Here

TOP

Related Classes of com.google.dart.engine.internal.cache.AnalysisCache

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.