Examples of DiagnosticPosition


Examples of com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition

                                 Symbol location,
                                 Type site,
                                 Env<AttrContext> env,
                                 Type pt,
                                 int pkind) {
            DiagnosticPosition pos = tree.pos();
            Name name = tree.name;
            switch (site.tag) {
            case PACKAGE:
                return rs.access(
                    rs.findIdentInPackage(env, site.tsym, name, pkind),
View Full Code Here

Examples of com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition

        private Symbol selectSym(JCFieldAccess tree,
                                 Type site,
                                 Env<AttrContext> env,
                                 Type pt,
                                 int pkind) {
            DiagnosticPosition pos = tree.pos();
            Name name = tree.name;

            switch (site.tag) {
            case PACKAGE:
                return rs.access(
View Full Code Here

Examples of com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition

    }

    /** Visitor method for assert statements. Translate them away.
     */
    public void visitAssert(JCAssert tree) {
        DiagnosticPosition detailPos = (tree.detail == null) ? tree.pos() : tree.detail.pos();
        tree.cond = translate(tree.cond, syms.booleanType);
        if (!tree.cond.type.isTrue()) {
            JCExpression cond = assertFlagTest(tree.pos());
            List<JCExpression> exnArgs = (tree.detail == null) ?
                List.<JCExpression>nil() : List.of(translate(tree.detail));
View Full Code Here

Examples of com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition

     *  end position of given tree, if it is a block with
     *  defined endpos.
     */
    public static DiagnosticPosition diagEndPos(final JCTree tree) {
        final int endPos = TreeInfo.endPos(tree);
        return new DiagnosticPosition() {
            public JCTree getTree() { return tree; }
            public int getStartPosition() { return TreeInfo.getStartPos(tree); }
            public int getPreferredPosition() { return endPos; }
            public int getEndPosition(Map<JCTree, Integer> endPosTable) {
                return TreeInfo.getEndPos(tree, endPosTable);
View Full Code Here

Examples of com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition

    }

    /** Visitor method for assert statements. Translate them away.
     */
    public void visitAssert(JCAssert tree) {
  DiagnosticPosition detailPos = (tree.detail == null) ? tree.pos() : tree.detail.pos();
  tree.cond = translate(tree.cond, syms.booleanType);
  if (!tree.cond.type.isTrue()) {
      JCExpression cond = assertFlagTest(tree.pos());
      List<JCExpression> exnArgs = (tree.detail == null) ?
    List.<JCExpression>nil() : List.of(translate(tree.detail));
View Full Code Here

Examples of com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition

    }

    /** Visitor method for assert statements. Translate them away.
     */
    public void visitAssert(JCAssert tree) {
  DiagnosticPosition detailPos = (tree.detail == null) ? tree.pos() : tree.detail.pos();
  tree.cond = translate(tree.cond, syms.booleanType);
  if (!tree.cond.type.isTrue()) {
      JCExpression cond = assertFlagTest(tree.pos());
      List<JCExpression> exnArgs = (tree.detail == null) ?
    List.<JCExpression>nil() : List.of(translate(tree.detail));
View Full Code Here

Examples of com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition

     *  end position of given tree, if it is a block with
     *  defined endpos.
     */
    public static DiagnosticPosition diagEndPos(final JCTree tree) {
        final int endPos = TreeInfo.endPos(tree);
        return new DiagnosticPosition() {
            public JCTree getTree() { return tree; }
            public int getStartPosition() { return TreeInfo.getStartPos(tree); }
            public int getPreferredPosition() { return endPos; }
            public int getEndPosition(Map<JCTree, Integer> endPosTable) {
                return TreeInfo.getEndPos(tree, endPosTable);
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.