Package org.eclipse.php.internal.core.ast.nodes

Examples of org.eclipse.php.internal.core.ast.nodes.Program.accept()


  public IMethod getOverriddenMethod() throws CoreException {
    try {
      Program ast = SharedASTProvider.getAST(method.getSourceModule(), SharedASTProvider.WAIT_YES, new NullProgressMonitor());
      if (ast != null) {
        OverriddenMethodFinder overriddenMethodFinder = new OverriddenMethodFinder();
        ast.accept(overriddenMethodFinder);

        return overriddenMethodFinder.getOverriddenMethod();
      }
    } catch (IOException e) {
      throw new CoreException(new Status(IStatus.ERROR, PEXCorePlugin.PLUGIN_ID, e.getMessage(), e));
View Full Code Here


        return oldSourceRange;
      Selection selection = Selection.createFromStartLength(
          oldSourceRange.getOffset(), oldSourceRange.getLength());
      SelectionAnalyzer selAnalyzer = new SelectionAnalyzer(selection,
          true);
      root.accept(selAnalyzer);
      return internalGetNewSelectionRange(oldSourceRange, typeRoot,
          selAnalyzer);
    } catch (ModelException e) {
      return new SourceRange(oldSourceRange.getOffset(),
          oldSourceRange.getLength());
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.