< prev index next >

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

Print this page
@@ -258,10 +258,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 >