Package com.google.gwt.dev.cfg

Examples of com.google.gwt.dev.cfg.MockLibrary


      CompilerContext oldCompilerContext = new CompilerContext();
      oldCompilerContext.getOptions().setStrict(true);
      CompilationState oldState =
          CompilationStateBuilder.buildFrom(logger, oldCompilerContext, resources);
      oldState.addGeneratedCompilationUnits(logger, generatedUnits);
      MockLibrary oldLibrary = new MockLibrary("OldLib");
      Collection<CompilationUnit> oldCompilationUnits =
          Lists.newArrayList(oldState.getCompilationUnits());
      CompilationUnitInvalidator.retainValidUnits(logger, oldCompilationUnits,
          oldState.getValidClasses(), new CompilationErrorsIndexImpl());
      for (CompilationUnit compilationUnit : oldCompilationUnits) {
        oldLibrary.addCompilationUnit(compilationUnit);
      }

      // Create and return a LibraryTypeOracle that doesn't have any compilation units loaded but
      // which can lazy load all of them out of a previously compiled library.
      LibraryGroup libraryGroup = LibraryGroup.fromLibraries(Lists.newArrayList(oldLibrary), false);
View Full Code Here

TOP

Related Classes of com.google.gwt.dev.cfg.MockLibrary

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.