本文整理汇总了Java中com.intellij.lang.javascript.JSTokenTypes.EXTENDS_KEYWORD属性的典型用法代码示例。如果您正苦于以下问题:Java JSTokenTypes.EXTENDS_KEYWORD属性的具体用法?Java JSTokenTypes.EXTENDS_KEYWORD怎么用?Java JSTokenTypes.EXTENDS_KEYWORD使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.intellij.lang.javascript.JSTokenTypes
的用法示例。
在下文中一共展示了JSTokenTypes.EXTENDS_KEYWORD属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: parseClassNoMarker
private void parseClassNoMarker(final PsiBuilder builder, final @NotNull PsiBuilder.Marker clazz)
{
builder.advanceLexer();
if(!JSTokenTypes.IDENTIFIER_TOKENS_SET.contains(builder.getTokenType()))
{
builder.error(JavaScriptBundle.message("javascript.parser.message.expected.identifier"));
}
else
{
builder.advanceLexer();
}
if(builder.getTokenType() == JSTokenTypes.EXTENDS_KEYWORD)
{
parseReferenceList(builder);
}
parseClassBody(builder, BlockType.PACKAGE_OR_CLASS_BODY);
clazz.done(JSElementTypes.CLASS);
}
示例2: parseClassNoMarker
private void parseClassNoMarker(final PsiBuilder builder, final @NotNull PsiBuilder.Marker clazz)
{
final IElementType tokenType = builder.getTokenType();
EcmaScript4StatementParsing.LOGGER.assertTrue(JSTokenTypes.CLASS_KEYWORD == tokenType || JSTokenTypes.INTERFACE_KEYWORD == tokenType);
builder.advanceLexer();
if(!getExpressionParsing().parseQualifiedTypeName(builder))
{
builder.error(JavaScriptBundle.message("javascript.parser.message.expected.typename"));
}
if(builder.getTokenType() == JSTokenTypes.EXTENDS_KEYWORD)
{
parseReferenceList(builder);
}
if(builder.getTokenType() == JSTokenTypes.IMPLEMENTS_KEYWORD)
{
parseReferenceList(builder);
}
parseBlockOrFunctionBody(builder, BlockType.PACKAGE_OR_CLASS_BODY);
clazz.done(JSElementTypes.CLASS);
}