public void testEnumWithoutConstants() { doParserTest("{ private A }", false, true); }
public void testAnnoSimple() { doParserTest("{ int foo (); }", true, false); }
- public void testAnnoDefault() { doParserTest("{ Class foo () default String.class; }", true, false); }
+ public void testAnnoDefault() { doParserTest("{ Class foo() default String.class; }", true, false); }
public void testAnnoNested() { doParserTest("{ @interface Inner { String bar () default \"<unspecified>\"; } }", true, false); }
public void testAnnoInner() { doParserTest("{ @interface Inner { double bar () default 0.0; } }"); }
public void testAnnoOtherMembers() { doParserTest("{ int field;\n void m() {}\n class C {}\n interface I {} }", true, false); }
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
package com.intellij.lang.impl;
import com.intellij.lang.*;
public static final Key<TripleFunction<ASTNode, LighterASTNode, FlyweightCapableTreeStructure<LighterASTNode>, ThreeState>>
CUSTOM_COMPARATOR = Key.create("CUSTOM_COMPARATOR");
+ private static TokenSet ourAnyLanguageWhitespaceTokens = TokenSet.EMPTY;
+
private final Project myProject;
private PsiFile myFile;
private final MyList myProduction = new MyList();
- @NotNull private final Lexer myLexer;
+ private final Lexer myLexer;
private final TokenSet myWhitespaces;
private TokenSet myComments;
private final MyTreeStructure myParentLightTree;
private final int myOffset;
- private static TokenSet ourAnyLanguageWhitespaceTokens = TokenSet.EMPTY;
-
private Map<Key, Object> myUserData = null;
private IElementType myCachedTokenType;