Package org.eclipse.php.internal.core.documentModel.parser.regions

Examples of org.eclipse.php.internal.core.documentModel.parser.regions.PhpScriptRegion$DocumentReader


            textRegion = extractPhpScriptRegion(textRegion);
            regionStart += textRegion.getStart();
          }
          // parse the actual script
          if (textRegion instanceof PhpScriptRegion) {
            PhpScriptRegion scriptRegion = (PhpScriptRegion) textRegion;
            try {

              // go over the text regions and look for the tasks
              ITextRegion[] phpTokens = scriptRegion
                  .getPhpTokens(0, textRegion.getLength());
              for (int j = 0; j < phpTokens.length; j++) {
                ITextRegion phpToken = phpTokens[j];
                if (PHPRegionTypes.PHPDOC_TODO.equals(phpToken
                    .getType())) {
View Full Code Here


      String newline = document.getLineDelimiter();
      for (int i = 0; i < textRegions.size(); i++) {
        ITextRegion textRegion = textRegions.get(i);
        if (textRegion instanceof PhpScriptRegion) {
          int startOffset = sdRegion.getStartOffset(textRegion);
          PhpScriptRegion scriptRegion = (PhpScriptRegion) textRegion;
          ITextRegion[] phpTokens;
          try {
            phpTokens = scriptRegion.getPhpTokens(0,
                textRegion.getLength());
            for (int j = phpTokens.length - 1; j >= 0; j--) {
              ITextRegion phpToken = phpTokens[j];
              int start = startOffset + phpToken.getStart();
              int end = start + phpToken.getLength();
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.core.documentModel.parser.regions.PhpScriptRegion$DocumentReader

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.