Examples of CubeData


Examples of com.google.collide.client.codeunderstanding.CubeData

  public boolean hasUpdate() {
    return hasUpdate;
  }

  CodeGraph constructCodeGraph() {
    CubeData data = cubeClient.getData();
    hasUpdate = false;

    CodeGraphImpl result = CodeGraphImpl.make();
    result.setCodeBlockMap(JsoStringMap.<CodeBlock>create());
    result.setInheritanceAssociations(JsoArray.<InheritanceAssociation>create());
    result.setTypeAssociations(JsoArray.<TypeAssociation>create());
    result.setImportAssociations(JsoArray.<ImportAssociation>create());

    CodeGraph fullGraph = data.getFullGraph();
    CodeGraph workspaceTree = data.getWorkspaceTree();
    CodeBlock fileTree = data.getFileTree();
    CodeGraph libsSubgraph = data.getLibsSubgraph();

    if (fullGraph != null) {
      mergeCodeGraph(fullGraph, result);
    }
    if (workspaceTree != null) {
View Full Code Here

Examples of com.google.collide.client.codeunderstanding.CubeData

    ReferenceStore referenceStore = null;
    try {
      referenceStore = new ReferenceStore(cubeClient);
      referenceStore.onDocumentChanged(document, null);
      referenceStore.updateReferences(
          new CubeData(filePath.getPathString(), null, null, null, null, fileReferences));

      LineInfo line1 = document.getLineFinder().findLine(1);
      // Check that there's reference at positions 12 to 17 inclusive (line 2).
      assertNotNull(referenceStore.findReference(line1, 12, true));
      assertNotNull(referenceStore.findReference(line1, 17, true));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.