Examples of GotoStatementContext


Examples of org.eclipse.php.internal.core.codeassist.contexts.GotoStatementContext

  }

  public void apply(ICompletionReporter reporter) throws BadLocationException {
    ICompletionContext context = getContext();

    GotoStatementContext gotoStatementContext = (GotoStatementContext) context;

    String prefix = gotoStatementContext.getPrefix();
    if (prefix.startsWith("$")) { //$NON-NLS-1$
      return;
    }
    try {
      ModuleDeclaration rootNode = SourceParserUtil
          .getModuleDeclaration(gotoStatementContext
              .getSourceModule());
      ASTNode node;
      if (gotoStatementContext.getCurrentElement() != null) {
        node = PHPModelUtils.getNodeByElement(rootNode,
            gotoStatementContext.getCurrentElement());
      } else {
        node = rootNode;
      }
      GotoStatementVisitor vistor = new GotoStatementVisitor(node, prefix);
      node.traverse(vistor);
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.