com.sun.tools.javac.tree.JCTree.JCSkip Java Examples
The following examples show how to use
com.sun.tools.javac.tree.JCTree.JCSkip.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PrettyCommentsPrinter.java From EasyMPermission with MIT License | 6 votes |
public void visitLabelled(JCLabeledStatement tree) { try { print(tree.label + ":"); if (isEmptyStat(tree.body) || tree.body instanceof JCSkip) { print(" ;"); } else if (tree.body instanceof JCBlock) { print(" "); printStat(tree.body); } else { println(); align(); printStat(tree.body); } } catch (IOException e) { throw new UncheckedIOException(e); } }
Example #2
Source File: PrettyCommentsPrinter.java From EasyMPermission with MIT License | 5 votes |
public void visitSkip(JCSkip tree) { try { print(";"); } catch (IOException e) { throw new UncheckedIOException(e); } }
Example #3
Source File: CRTable.java From lua-for-android with BSD 3-Clause "New" or "Revised" License | 4 votes |
public void visitSkip(JCSkip tree) { // endPos is the same as startPos for the empty statement SourceRange sr = new SourceRange(startPos(tree), startPos(tree)); result = sr; }
Example #4
Source File: JavacTreeMaker.java From EasyMPermission with MIT License | 4 votes |
public JCSkip Skip() { return invoke(Skip); }
Example #5
Source File: USkip.java From Refaster with Apache License 2.0 | 4 votes |
@Override public JCSkip inline(Inliner inliner) { return inliner.maker().Skip(); }