CPP-7551 Splitting [name] and [symbol name] entities ([=] vs [operator=], [S] vs...
authorAlexey Utkin <alexey.utkin@jetbrains.com>
Wed, 5 Oct 2016 18:02:26 +0000 (21:02 +0300)
committerAlexey Utkin <alexey.utkin@jetbrains.com>
Wed, 5 Oct 2016 18:02:26 +0000 (21:02 +0300)
platform/core-api/src/com/intellij/psi/tree/TokenSet.java

index 65254a85d53152157ce2fca11a42991e3eac6dd4..6f452d3a7471ccc0d2a966461f770e59d46818f6 100644 (file)
@@ -31,6 +31,9 @@ public class TokenSet {
   public static final TokenSet EMPTY = new TokenSet(Short.MAX_VALUE, (short)0) {
     @Override public boolean contains(IElementType t) { return false; }
   };
+  public static final TokenSet ANY = new TokenSet(Short.MAX_VALUE, (short)0) {
+    @Override public boolean contains(IElementType t) { return true; }
+  };
 
   private final short myShift;
   private final short myMax;