langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/parser/JavacParser.java
changeset 42827 36468b5fa7f4
parent 42407 f3702cff2933
child 42828 cce89649f958
equal deleted inserted replaced
42826:563b42fc70ba 42827:36468b5fa7f4
  1716             }
  1716             }
  1717         }
  1717         }
  1718     }
  1718     }
  1719 
  1719 
  1720     /** Accepts all identifier-like tokens */
  1720     /** Accepts all identifier-like tokens */
  1721     protected Filter<TokenKind> LAX_IDENTIFIER = new Filter<TokenKind>() {
  1721     protected Filter<TokenKind> LAX_IDENTIFIER = t -> t == IDENTIFIER || t == UNDERSCORE || t == ASSERT || t == ENUM;
  1722         public boolean accepts(TokenKind t) {
       
  1723             return t == IDENTIFIER || t == UNDERSCORE || t == ASSERT || t == ENUM;
       
  1724         }
       
  1725     };
       
  1726 
  1722 
  1727     enum ParensResult {
  1723     enum ParensResult {
  1728         CAST,
  1724         CAST,
  1729         EXPLICIT_LAMBDA,
  1725         EXPLICIT_LAMBDA,
  1730         IMPLICIT_LAMBDA,
  1726         IMPLICIT_LAMBDA,