Examples of compilationResult()


Examples of org.eclipse.jdt.internal.compiler.impl.ReferenceContext.compilationResult()

            referenceContext = sourceTypeBinding.scope.referenceContext;
          }
        }
    }
    if (javadoc != null && referenceContext != null) {
      char[] contents = referenceContext.compilationResult().getCompilationUnit().getContents();
      if (contents != null) {
        return CharOperation.subarray(contents, javadoc.sourceStart, javadoc.sourceEnd - 1);
      }
    }
    return null;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.impl.ReferenceContext.compilationResult()

    }
    int lineNumber = 0;
    int columnNumber = 1;
    char[] fileName = null;
    if (referenceContext != null) {
      CompilationResult result = referenceContext.compilationResult();
      fileName = result.fileName;
      int[] lineEnds = null;
      lineNumber = startPosition >= 0
          ? Util.getLineNumber(startPosition, lineEnds = result.getLineSeparatorPositions(), 0, lineEnds.length-1)
          : 0;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.impl.ReferenceContext.compilationResult()

        break;
      default:
        return null;
    }
    if (javadoc != null && referenceContext != null) {
      char[] contents = referenceContext.compilationResult().getCompilationUnit().getContents();
      if (contents != null) {
        return CharOperation.subarray(contents, javadoc.sourceStart, javadoc.sourceEnd - 1);
      }
    }
    return null;
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.