Lines Matching defs:to

8  * particular file as subject to the "Classpath" exception as provided
18 * 2 along with this work; if not, write to the Free Software Foundation,
64 * This code and its internal interfaces are subject to change or
73 /** Is the parser instantiated to parse a module-info file ?
81 /** The factory to be used for abstract syntax tree construction.
85 /** The log to be used for error diagnostics.
109 // no finite lookahead is enough to determine whether to read array
112 // discovers that it needs to fail. bracketsOpt needs a way to push
114 // not *always* be allowed to push back extra annotations that it finds
118 // already been read to be stored for later use. Alternate
119 // implementations are possible but would cause much larger changes to
269 * This is needed to parse receiver types.
543 /** A table to store all documentation comments
544 * indexed by the tree nodes they refer to.
551 * @param tree The tree to be used as index in the hashtable
552 * @param dc The doc comment to associate with the tree, or null.
571 protected <T extends JCTree> T to(T t) {
572 return endPosTable.to(t);
580 * defined to be the position of the first character of the first
590 * defined to be the position of the last character of the last
807 * Note that this method sets {@code mode} to {@code TYPE} first, before
1187 t = to(F.at(pos).Ident(names._this));
1199 t = to(F.at(pos).Ident(names._super));
1270 // need to report an error later if LBRACKET is for array
1291 t = to(F.at(pos).Indexed(t, t1));
1315 t = to(F.at(pos).Select(t, names._class));
1321 t = to(F.at(pos).Select(t, names._this));
1326 t = to(F.at(pos).Select(t, names._super));
1414 // a void type (like other primitive types) to the next phase.
1416 JCPrimitiveTypeTree ti = to(F.at(pos).TypeIdent(TypeTag.VOID));
1457 t = to(F.at(pos1).Indexed(t, t1));
1465 t = to(F.at(pos1).Select(t, names._super));
1507 t = to(F.at(token.pos).Unary(
1720 //it looks a type, but could still be (i) a cast to generic type,
1795 JCPrimitiveTypeTree t = to(F.at(token.pos).TypeIdent(typetag(token.kind)));
1920 TypeBoundKind t = to(F.at(pos).TypeBoundKind(BoundKind.EXTENDS));
1925 TypeBoundKind t = to(F.at(pos).TypeBoundKind(BoundKind.SUPER));
2023 // taking care to handle some interior dimension(s) being annotated.
2134 // modified to improve error recovery.
2148 // Add type and declaration annotations to the new class;
2207 // elemtype, and it needs to be corrected
2352 //todo: skip to anchor on error(?)
2373 * Parse a Statement (JLS 14.5). As an enhancement to improve error recovery,
2375 * not legal for a Statement) by delegating the parsing to BlockStatement (JLS 14.2).
2409 //todo: skip to anchor on error(?)
2584 JCSwitch t = to(F.at(pos).Switch(selector, cases));
2712 nextToken(); // to ensure progress
2793 * @param kind Whether to parse an ANNOTATION or TYPE_ANNOTATION
2866 // if first modifier is an annotation, set pos to annotation's.
2895 * @param kind Whether to parse an ANNOTATION or TYPE_ANNOTATION
3218 this.endPosTable.setParser(null); // remove reference to parser
3285 if (token.kind == IDENTIFIER && token.name() == names.to) {
3338 pid = to(F.at(pos1).Select(pid, names.asterisk));
3647 type = to(F.at(pos).TypeIdent(TypeTag.VOID));
3890 * to the left-most type in an array or nested type.
3897 * the array, and then inserts the annotation to the left-most
3919 mostInnerType = to(F.at(token.pos).TypeArray(mostInnerType));
3967 // need to distinguish between vararg annos and array annos
4240 protected <T extends JCTree> T to(T t) {
4277 protected <T extends JCTree> T to(T t) {
4316 protected abstract <T extends JCTree> T to(T t);