com.sun.tools.javac.tree.JCTree.JCErroneous Java Examples
The following examples show how to use
com.sun.tools.javac.tree.JCTree.JCErroneous.
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: JackpotTrees.java From netbeans with Apache License 2.0 | 5 votes |
public static JCVariableDecl createVariableWildcard(Context ctx, Name name) { TreeMaker make = TreeMaker.instance(ctx); JCIdent jcIdent = make.Ident(name); JCErroneous err = new JCErroneous(List.<JCTree>nil()) {}; err.type = Symtab.instance(ctx).errType; JCVariableDecl var; try { var = createInstance(ctx, JCVariableDecl.class, name, jcIdent, new Class<?>[] {JCModifiers.class, Name.class, JCExpression.class, JCExpression.class, VarSymbol.class}, new Object[] {new FakeModifiers(), name, err, null, null}); } catch (IllegalStateException ex) { try { var = createInstance(ctx, JCVariableDecl.class, name, jcIdent, new Class<?>[] {JCModifiers.class, Name.class, JCExpression.class, JCExpression.class, VarSymbol.class, List.class}, new Object[] {new FakeModifiers(), name, err, null, null, List.nil()}); } catch (IllegalStateException ex2) { throw ex; } } var.sym = new VarSymbol(0, name, var.vartype.type, Symtab.instance(ctx).errSymbol); var.type = var.vartype.type; return var; }
Example #2
Source File: PrettyCommentsPrinter.java From EasyMPermission with MIT License | 5 votes |
public void visitErroneous(JCErroneous tree) { try { print("(ERROR)"); } 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 visitErroneous(JCErroneous tree) { result = null; }
Example #4
Source File: MemberEnter.java From lua-for-android with BSD 3-Clause "New" or "Revised" License | 4 votes |
public void visitErroneous(JCErroneous tree) { if (tree.errs != null) memberEnter(tree.errs, env); }
Example #5
Source File: JavacTreeMaker.java From EasyMPermission with MIT License | 4 votes |
public JCErroneous Erroneous() { return invoke(Erroneous); }
Example #6
Source File: JavacTreeMaker.java From EasyMPermission with MIT License | 4 votes |
public JCErroneous Erroneous(List<? extends JCTree> errs) { return invoke(ErroneousWithErrs, errs); }