< prev index next >

src/jdk.jshell/share/classes/jdk/jshell/CompletenessAnalyzer.java

Print this page

        

@@ -222,10 +222,11 @@
         PRIVATE(TokenKind.PRIVATE, XDECL1),  //  private
         PROTECTED(TokenKind.PROTECTED, XDECL1),  //  protected
         PUBLIC(TokenKind.PUBLIC, XDECL1),  //  public
         TRANSIENT(TokenKind.TRANSIENT, XDECL1),  //  transient
         VOLATILE(TokenKind.VOLATILE, XDECL1),  //  volatile
+        VALUE(TokenKind.VALUE, 0),
 
         // Declarations and type parameters (thus expressions)
         EXTENDS(TokenKind.EXTENDS, XEXPR|XDECL),  //  extends
         COMMA(TokenKind.COMMA, XEXPR|XDECL),  //  ,
         AMP(TokenKind.AMP, XEXPR|XDECL, true),  //  &

@@ -252,10 +253,11 @@
         SWITCH(TokenKind.SWITCH, XSTMT1|XEXPR1),  //  switch
         SYNCHRONIZED(TokenKind.SYNCHRONIZED, XSTMT1|XDECL),  //  synchronized
         THROW(TokenKind.THROW, XSTMT1|XSTART),  //  throw
         TRY(TokenKind.TRY, XSTMT1|XSTART),  //  try
         WHILE(TokenKind.WHILE, XSTMT1|XSTART),  //  while
+        WITHFIELD(TokenKind.WITHFIELD, XEXPR),  //  withfield
 
         // Statement keywords that we shouldn't see -- inside braces
         CASE(TokenKind.CASE, XSTMT|XSTART),  //  case
         DEFAULT(TokenKind.DEFAULT, XSTMT|XSTART),  //  default method, default case -- neither we should see
 
< prev index next >