Package com.sun.tools.javac.tree

Examples of com.sun.tools.javac.tree.EndPosTable


    if (EndPosTableUtil.isEmpty(endPositions)) {
      boolean prevGenEndPos = compiler.genEndPos;
      compiler.genEndPos = true;
      // Reset the end positions for JDK8:
      EndPosTableUtil.resetEndPosMap(compiler, sourceFile);
      EndPosTable endPosMap = compiler.parse(sourceFile).endPositions;
      compiler.genEndPos = prevGenEndPos;
      endPositions = new WrappedTreeMap(log, endPosMap);
    }

    List<AppliedFix> appliedFixes = Lists.transform(description.fixes, fixToAppliedFix);
View Full Code Here


                public long getStartPosition(CompilationUnitTree file, Tree tree) {
                    return TreeInfo.getStartPos((JCTree) tree);
                }

                public long getEndPosition(CompilationUnitTree file, Tree tree) {
                    EndPosTable endPosTable = ((JCCompilationUnit) file).endPositions;
                    return TreeInfo.getEndPos((JCTree) tree, endPosTable);
                }

                public long getStartPosition(CompilationUnitTree file, DocCommentTree comment, DocTree tree) {
                    return ((DCTree) tree).getSourcePosition((DCDocComment) comment);
View Full Code Here

TOP

Related Classes of com.sun.tools.javac.tree.EndPosTable

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.