Package dtool.resolver

Examples of dtool.resolver.DefUnitResultsChecker


    CompletionSearchResult opResult = doOperation(modulePath, offset);
   
    assertTrue(opResult.resultCode == resultStatus);
    assertTrue(opResult.getReplaceLength() == replaceLength);
   
    DefUnitResultsChecker checker = new DefUnitResultsChecker(opResult.results);
    checker.removeIgnoredDefUnits(true, false, false);
    checker.removeStdLibObjectDefUnits();
    checker.checkResults(expectedResults);
  }
View Full Code Here


 
  protected static void testResolveSearchInMembersScope(INamedElement namedElement, String... expectedResults) {
    PrefixDefUnitSearch search = new PrefixDefUnitSearch(null, 0, new NullModuleResolver());
    namedElement.resolveSearchInMembersScope(search);
   
    DefUnitResultsChecker resultsChecker = new DefUnitResultsChecker(search.getResults());
    resultsChecker.removeIgnoredDefUnits(true, true);
    resultsChecker.checkResults(expectedResults);
  }
View Full Code Here

  }
 
  protected void testCodeCompletion(ModuleSource moduleSource, int offset, String... results) throws CoreException {
    CompletionSearchResult cc = client.runCodeCompletion(moduleSource, offset,
      MockCompilerInstalls.DEFAULT_DMD_INSTALL_EXE_PATH);
    new DefUnitResultsChecker(cc.getResults()).simpleCheckResults(results);
  }
View Full Code Here

  // Code completion is just being used as a convenient way to check the source contents of the server's WCs.
  protected void doCodeCompletion(IFile file, int offset, String... results) throws CoreException {
    ISourceModule sourceModule = DLTKCore.createSourceModuleFrom(file);
    CompletionSearchResult cc = client.runCodeCompletion(sourceModule, offset,
      MockCompilerInstalls.DEFAULT_DMD_INSTALL_EXE_PATH);
    new DefUnitResultsChecker(cc.getResults()).simpleCheckResults(results);
  }
View Full Code Here

TOP

Related Classes of dtool.resolver.DefUnitResultsChecker

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.