diff --git a/build.gradle.kts b/build.gradle.kts index 5809425..2fdb31a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -62,8 +62,6 @@ intellijPlatform { } } -sourceSets["main"].java.srcDirs("gen") - tasks { prepareSandbox { from(layout.projectDirectory.dir("textmate")) { diff --git a/gen/jp/s6n/idea/typespec/lang/parser/TypeSpecParser.java b/gen/jp/s6n/idea/typespec/lang/parser/TypeSpecParser.java deleted file mode 100644 index b8308dd..0000000 --- a/gen/jp/s6n/idea/typespec/lang/parser/TypeSpecParser.java +++ /dev/null @@ -1,2123 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.parser; - -import com.intellij.lang.PsiBuilder; -import com.intellij.lang.PsiBuilder.Marker; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import static jp.s6n.idea.typespec.lang.parser.TypeSpecParserUtil.*; -import com.intellij.psi.tree.IElementType; -import com.intellij.lang.ASTNode; -import com.intellij.psi.tree.TokenSet; -import com.intellij.lang.PsiParser; -import com.intellij.lang.LightPsiParser; - -@SuppressWarnings({"SimplifiableIfStatement", "UnusedAssignment"}) -public class TypeSpecParser implements PsiParser, LightPsiParser { - - public ASTNode parse(IElementType t, PsiBuilder b) { - parseLight(t, b); - return b.getTreeBuilt(); - } - - public void parseLight(IElementType t, PsiBuilder b) { - boolean r; - b = adapt_builder_(t, b, this, EXTENDS_SETS_); - Marker m = enter_section_(b, 0, _COLLAPSE_, null); - r = parse_root_(t, b); - exit_section_(b, 0, m, t, r, true, TRUE_CONDITION); - } - - protected boolean parse_root_(IElementType t, PsiBuilder b) { - return parse_root_(t, b, 0); - } - - static boolean parse_root_(IElementType t, PsiBuilder b, int l) { - return File(b, l + 1); - } - - public static final TokenSet[] EXTENDS_SETS_ = new TokenSet[] { - create_token_set_(MODEL_PROPERTY, MODEL_PROPERTY_LIKE, SPREAD_MODEL_PROPERTY), - create_token_set_(EXPRESSION, INTERSECTION_EXPRESSION, MODEL_EXPRESSION, UNION_EXPRESSION), - create_token_set_(ARRAY_EXPRESSION, CALL_EXPRESSION, OPERATOR_EXPRESSION, TYPE_OF_EXPRESSION, - VALUE_OF_EXPRESSION), - create_token_set_(ARRAY_LITERAL, KEYWORD_EXPRESSION, LITERAL_EXPRESSION, MEMBER_EXPRESSION, - NON_ARRAY_EXPRESSION, OBJECT_LITERAL, TUPLE_EXPRESSION, TYPE_REFERENCE), - create_token_set_(ALIAS_STATEMENT, AUGMENT_DECORATOR_STATEMENT, ENUM_STATEMENT, EXTERN_DECORATOR_STATEMENT, - IMPORT_STATEMENT, INTERFACE_STATEMENT, MODEL_STATEMENT, NAMESPACE_STATEMENT, - OPERATION_STATEMENT, SCALAR_STATEMENT, STATEMENT, UNION_STATEMENT, - USING_STATEMENT), - }; - - /* ********************************************************** */ - // DecoratorLike* ALIAS Identifier TypeParameterList? EQ Expression SEMICOLON - public static boolean AliasStatement(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "AliasStatement")) return false; - boolean r, p; - Marker m = enter_section_(b, l, _NONE_, ALIAS_STATEMENT, ""); - r = AliasStatement_0(b, l + 1); - r = r && consumeToken(b, ALIAS); - p = r; // pin = 2 - r = r && report_error_(b, Identifier(b, l + 1)); - r = p && report_error_(b, AliasStatement_3(b, l + 1)) && r; - r = p && report_error_(b, consumeToken(b, EQ)) && r; - r = p && report_error_(b, Expression(b, l + 1)) && r; - r = p && consumeToken(b, SEMICOLON) && r; - exit_section_(b, l, m, r, p, null); - return r || p; - } - - // DecoratorLike* - private static boolean AliasStatement_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "AliasStatement_0")) return false; - while (true) { - int c = current_position_(b); - if (!DecoratorLike(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "AliasStatement_0", c)) break; - } - return true; - } - - // TypeParameterList? - private static boolean AliasStatement_3(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "AliasStatement_3")) return false; - TypeParameterList(b, l + 1); - return true; - } - - /* ********************************************************** */ - // LPAREN [(Expression COMMA)* Expression?] RPAREN - public static boolean ArgumentList(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ArgumentList")) return false; - if (!nextTokenIs(b, LPAREN)) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, LPAREN); - r = r && ArgumentList_1(b, l + 1); - r = r && consumeToken(b, RPAREN); - exit_section_(b, m, ARGUMENT_LIST, r); - return r; - } - - // [(Expression COMMA)* Expression?] - private static boolean ArgumentList_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ArgumentList_1")) return false; - ArgumentList_1_0(b, l + 1); - return true; - } - - // (Expression COMMA)* Expression? - private static boolean ArgumentList_1_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ArgumentList_1_0")) return false; - boolean r; - Marker m = enter_section_(b); - r = ArgumentList_1_0_0(b, l + 1); - r = r && ArgumentList_1_0_1(b, l + 1); - exit_section_(b, m, null, r); - return r; - } - - // (Expression COMMA)* - private static boolean ArgumentList_1_0_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ArgumentList_1_0_0")) return false; - while (true) { - int c = current_position_(b); - if (!ArgumentList_1_0_0_0(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "ArgumentList_1_0_0", c)) break; - } - return true; - } - - // Expression COMMA - private static boolean ArgumentList_1_0_0_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ArgumentList_1_0_0_0")) return false; - boolean r; - Marker m = enter_section_(b); - r = Expression(b, l + 1); - r = r && consumeToken(b, COMMA); - exit_section_(b, m, null, r); - return r; - } - - // Expression? - private static boolean ArgumentList_1_0_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ArgumentList_1_0_1")) return false; - Expression(b, l + 1); - return true; - } - - /* ********************************************************** */ - // NonArrayExpression (LBRACKET RBRACKET)+ - public static boolean ArrayExpression(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ArrayExpression")) return false; - boolean r; - Marker m = enter_section_(b, l, _NONE_, ARRAY_EXPRESSION, ""); - r = NonArrayExpression(b, l + 1); - r = r && ArrayExpression_1(b, l + 1); - exit_section_(b, l, m, r, false, null); - return r; - } - - // (LBRACKET RBRACKET)+ - private static boolean ArrayExpression_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ArrayExpression_1")) return false; - boolean r; - Marker m = enter_section_(b); - r = ArrayExpression_1_0(b, l + 1); - while (r) { - int c = current_position_(b); - if (!ArrayExpression_1_0(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "ArrayExpression_1", c)) break; - } - exit_section_(b, m, null, r); - return r; - } - - // LBRACKET RBRACKET - private static boolean ArrayExpression_1_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ArrayExpression_1_0")) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeTokens(b, 0, LBRACKET, RBRACKET); - exit_section_(b, m, null, r); - return r; - } - - /* ********************************************************** */ - // HASHLBRACKET [(Expression COMMA)* Expression?] RBRACKET - public static boolean ArrayLiteral(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ArrayLiteral")) return false; - if (!nextTokenIs(b, HASHLBRACKET)) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, HASHLBRACKET); - r = r && ArrayLiteral_1(b, l + 1); - r = r && consumeToken(b, RBRACKET); - exit_section_(b, m, ARRAY_LITERAL, r); - return r; - } - - // [(Expression COMMA)* Expression?] - private static boolean ArrayLiteral_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ArrayLiteral_1")) return false; - ArrayLiteral_1_0(b, l + 1); - return true; - } - - // (Expression COMMA)* Expression? - private static boolean ArrayLiteral_1_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ArrayLiteral_1_0")) return false; - boolean r; - Marker m = enter_section_(b); - r = ArrayLiteral_1_0_0(b, l + 1); - r = r && ArrayLiteral_1_0_1(b, l + 1); - exit_section_(b, m, null, r); - return r; - } - - // (Expression COMMA)* - private static boolean ArrayLiteral_1_0_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ArrayLiteral_1_0_0")) return false; - while (true) { - int c = current_position_(b); - if (!ArrayLiteral_1_0_0_0(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "ArrayLiteral_1_0_0", c)) break; - } - return true; - } - - // Expression COMMA - private static boolean ArrayLiteral_1_0_0_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ArrayLiteral_1_0_0_0")) return false; - boolean r; - Marker m = enter_section_(b); - r = Expression(b, l + 1); - r = r && consumeToken(b, COMMA); - exit_section_(b, m, null, r); - return r; - } - - // Expression? - private static boolean ArrayLiteral_1_0_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ArrayLiteral_1_0_1")) return false; - Expression(b, l + 1); - return true; - } - - /* ********************************************************** */ - // ATAT Path ArgumentList? SEMICOLON - public static boolean AugmentDecoratorStatement(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "AugmentDecoratorStatement")) return false; - if (!nextTokenIs(b, ATAT)) return false; - boolean r, p; - Marker m = enter_section_(b, l, _NONE_, AUGMENT_DECORATOR_STATEMENT, null); - r = consumeToken(b, ATAT); - p = r; // pin = 1 - r = r && report_error_(b, Path(b, l + 1)); - r = p && report_error_(b, AugmentDecoratorStatement_2(b, l + 1)) && r; - r = p && consumeToken(b, SEMICOLON) && r; - exit_section_(b, l, m, r, p, null); - return r || p; - } - - // ArgumentList? - private static boolean AugmentDecoratorStatement_2(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "AugmentDecoratorStatement_2")) return false; - ArgumentList(b, l + 1); - return true; - } - - /* ********************************************************** */ - // NonArrayExpression ArgumentList - public static boolean CallExpression(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "CallExpression")) return false; - boolean r; - Marker m = enter_section_(b, l, _NONE_, CALL_EXPRESSION, ""); - r = NonArrayExpression(b, l + 1); - r = r && ArgumentList(b, l + 1); - exit_section_(b, l, m, r, false, null); - return r; - } - - /* ********************************************************** */ - // AT Path ArgumentList? - public static boolean Decorator(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "Decorator")) return false; - if (!nextTokenIs(b, AT)) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, AT); - r = r && Path(b, l + 1); - r = r && Decorator_2(b, l + 1); - exit_section_(b, m, DECORATOR, r); - return r; - } - - // ArgumentList? - private static boolean Decorator_2(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "Decorator_2")) return false; - ArgumentList(b, l + 1); - return true; - } - - /* ********************************************************** */ - // Decorator | Directive - public static boolean DecoratorLike(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "DecoratorLike")) return false; - if (!nextTokenIs(b, "", AT, HASH)) return false; - boolean r; - Marker m = enter_section_(b, l, _NONE_, DECORATOR_LIKE, ""); - r = Decorator(b, l + 1); - if (!r) r = Directive(b, l + 1); - exit_section_(b, l, m, r, false, null); - return r; - } - - /* ********************************************************** */ - // HASH Identifier LiteralExpression* - public static boolean Directive(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "Directive")) return false; - if (!nextTokenIs(b, HASH)) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, HASH); - r = r && Identifier(b, l + 1); - r = r && Directive_2(b, l + 1); - exit_section_(b, m, DIRECTIVE, r); - return r; - } - - // LiteralExpression* - private static boolean Directive_2(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "Directive_2")) return false; - while (true) { - int c = current_position_(b); - if (!LiteralExpression(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "Directive_2", c)) break; - } - return true; - } - - /* ********************************************************** */ - // DecoratorLike* ENUM Identifier EnumVariantsBlock - public static boolean EnumStatement(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "EnumStatement")) return false; - boolean r, p; - Marker m = enter_section_(b, l, _NONE_, ENUM_STATEMENT, ""); - r = EnumStatement_0(b, l + 1); - r = r && consumeToken(b, ENUM); - p = r; // pin = 2 - r = r && report_error_(b, Identifier(b, l + 1)); - r = p && EnumVariantsBlock(b, l + 1) && r; - exit_section_(b, l, m, r, p, null); - return r || p; - } - - // DecoratorLike* - private static boolean EnumStatement_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "EnumStatement_0")) return false; - while (true) { - int c = current_position_(b); - if (!DecoratorLike(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "EnumStatement_0", c)) break; - } - return true; - } - - /* ********************************************************** */ - // DecoratorLike* Identifier (COLON LiteralExpression)? - public static boolean EnumVariant(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "EnumVariant")) return false; - boolean r; - Marker m = enter_section_(b, l, _NONE_, ENUM_VARIANT, ""); - r = EnumVariant_0(b, l + 1); - r = r && Identifier(b, l + 1); - r = r && EnumVariant_2(b, l + 1); - exit_section_(b, l, m, r, false, null); - return r; - } - - // DecoratorLike* - private static boolean EnumVariant_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "EnumVariant_0")) return false; - while (true) { - int c = current_position_(b); - if (!DecoratorLike(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "EnumVariant_0", c)) break; - } - return true; - } - - // (COLON LiteralExpression)? - private static boolean EnumVariant_2(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "EnumVariant_2")) return false; - EnumVariant_2_0(b, l + 1); - return true; - } - - // COLON LiteralExpression - private static boolean EnumVariant_2_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "EnumVariant_2_0")) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, COLON); - r = r && LiteralExpression(b, l + 1); - exit_section_(b, m, null, r); - return r; - } - - /* ********************************************************** */ - // LBRACE [EnumVariant (COMMA EnumVariant)* COMMA?] RBRACE - public static boolean EnumVariantsBlock(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "EnumVariantsBlock")) return false; - if (!nextTokenIs(b, LBRACE)) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, LBRACE); - r = r && EnumVariantsBlock_1(b, l + 1); - r = r && consumeToken(b, RBRACE); - exit_section_(b, m, ENUM_VARIANTS_BLOCK, r); - return r; - } - - // [EnumVariant (COMMA EnumVariant)* COMMA?] - private static boolean EnumVariantsBlock_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "EnumVariantsBlock_1")) return false; - EnumVariantsBlock_1_0(b, l + 1); - return true; - } - - // EnumVariant (COMMA EnumVariant)* COMMA? - private static boolean EnumVariantsBlock_1_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "EnumVariantsBlock_1_0")) return false; - boolean r; - Marker m = enter_section_(b); - r = EnumVariant(b, l + 1); - r = r && EnumVariantsBlock_1_0_1(b, l + 1); - r = r && EnumVariantsBlock_1_0_2(b, l + 1); - exit_section_(b, m, null, r); - return r; - } - - // (COMMA EnumVariant)* - private static boolean EnumVariantsBlock_1_0_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "EnumVariantsBlock_1_0_1")) return false; - while (true) { - int c = current_position_(b); - if (!EnumVariantsBlock_1_0_1_0(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "EnumVariantsBlock_1_0_1", c)) break; - } - return true; - } - - // COMMA EnumVariant - private static boolean EnumVariantsBlock_1_0_1_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "EnumVariantsBlock_1_0_1_0")) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, COMMA); - r = r && EnumVariant(b, l + 1); - exit_section_(b, m, null, r); - return r; - } - - // COMMA? - private static boolean EnumVariantsBlock_1_0_2(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "EnumVariantsBlock_1_0_2")) return false; - consumeToken(b, COMMA); - return true; - } - - /* ********************************************************** */ - // UnionExpression - public static boolean Expression(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "Expression")) return false; - boolean r; - Marker m = enter_section_(b, l, _COLLAPSE_, EXPRESSION, ""); - r = UnionExpression(b, l + 1); - exit_section_(b, l, m, r, false, null); - return r; - } - - /* ********************************************************** */ - // EXTERN DEC Identifier ParameterList SEMICOLON - public static boolean ExternDecoratorStatement(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ExternDecoratorStatement")) return false; - if (!nextTokenIs(b, EXTERN)) return false; - boolean r, p; - Marker m = enter_section_(b, l, _NONE_, EXTERN_DECORATOR_STATEMENT, null); - r = consumeTokens(b, 1, EXTERN, DEC); - p = r; // pin = 1 - r = r && report_error_(b, Identifier(b, l + 1)); - r = p && report_error_(b, ParameterList(b, l + 1)) && r; - r = p && consumeToken(b, SEMICOLON) && r; - exit_section_(b, l, m, r, p, null); - return r || p; - } - - /* ********************************************************** */ - // Statement* - static boolean File(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "File")) return false; - while (true) { - int c = current_position_(b); - if (!Statement(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "File", c)) break; - } - return true; - } - - /* ********************************************************** */ - // IDENT - public static boolean Identifier(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "Identifier")) return false; - if (!nextTokenIs(b, IDENT)) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, IDENT); - exit_section_(b, m, IDENTIFIER, r); - return r; - } - - /* ********************************************************** */ - // IMPORT STRING_LITERAL SEMICOLON - public static boolean ImportStatement(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ImportStatement")) return false; - if (!nextTokenIs(b, IMPORT)) return false; - boolean r, p; - Marker m = enter_section_(b, l, _NONE_, IMPORT_STATEMENT, null); - r = consumeTokens(b, 1, IMPORT, STRING_LITERAL, SEMICOLON); - p = r; // pin = 1 - exit_section_(b, l, m, r, p, null); - return r || p; - } - - /* ********************************************************** */ - // EXTENDS [TypeReference (COMMA TypeReference)*] - public static boolean InterfaceExtends(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "InterfaceExtends")) return false; - if (!nextTokenIs(b, EXTENDS)) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, EXTENDS); - r = r && InterfaceExtends_1(b, l + 1); - exit_section_(b, m, INTERFACE_EXTENDS, r); - return r; - } - - // [TypeReference (COMMA TypeReference)*] - private static boolean InterfaceExtends_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "InterfaceExtends_1")) return false; - InterfaceExtends_1_0(b, l + 1); - return true; - } - - // TypeReference (COMMA TypeReference)* - private static boolean InterfaceExtends_1_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "InterfaceExtends_1_0")) return false; - boolean r; - Marker m = enter_section_(b); - r = TypeReference(b, l + 1); - r = r && InterfaceExtends_1_0_1(b, l + 1); - exit_section_(b, m, null, r); - return r; - } - - // (COMMA TypeReference)* - private static boolean InterfaceExtends_1_0_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "InterfaceExtends_1_0_1")) return false; - while (true) { - int c = current_position_(b); - if (!InterfaceExtends_1_0_1_0(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "InterfaceExtends_1_0_1", c)) break; - } - return true; - } - - // COMMA TypeReference - private static boolean InterfaceExtends_1_0_1_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "InterfaceExtends_1_0_1_0")) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, COMMA); - r = r && TypeReference(b, l + 1); - exit_section_(b, m, null, r); - return r; - } - - /* ********************************************************** */ - // DecoratorLike* Operation SEMICOLON - public static boolean InterfaceOperation(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "InterfaceOperation")) return false; - boolean r; - Marker m = enter_section_(b, l, _NONE_, INTERFACE_OPERATION, ""); - r = InterfaceOperation_0(b, l + 1); - r = r && Operation(b, l + 1); - r = r && consumeToken(b, SEMICOLON); - exit_section_(b, l, m, r, false, null); - return r; - } - - // DecoratorLike* - private static boolean InterfaceOperation_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "InterfaceOperation_0")) return false; - while (true) { - int c = current_position_(b); - if (!DecoratorLike(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "InterfaceOperation_0", c)) break; - } - return true; - } - - /* ********************************************************** */ - // LBRACE InterfaceOperation* RBRACE - public static boolean InterfaceOperationsBlock(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "InterfaceOperationsBlock")) return false; - if (!nextTokenIs(b, LBRACE)) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, LBRACE); - r = r && InterfaceOperationsBlock_1(b, l + 1); - r = r && consumeToken(b, RBRACE); - exit_section_(b, m, INTERFACE_OPERATIONS_BLOCK, r); - return r; - } - - // InterfaceOperation* - private static boolean InterfaceOperationsBlock_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "InterfaceOperationsBlock_1")) return false; - while (true) { - int c = current_position_(b); - if (!InterfaceOperation(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "InterfaceOperationsBlock_1", c)) break; - } - return true; - } - - /* ********************************************************** */ - // DecoratorLike* INTERFACE Identifier TypeParameterList? InterfaceExtends? InterfaceOperationsBlock - public static boolean InterfaceStatement(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "InterfaceStatement")) return false; - boolean r, p; - Marker m = enter_section_(b, l, _NONE_, INTERFACE_STATEMENT, ""); - r = InterfaceStatement_0(b, l + 1); - r = r && consumeToken(b, INTERFACE); - p = r; // pin = 2 - r = r && report_error_(b, Identifier(b, l + 1)); - r = p && report_error_(b, InterfaceStatement_3(b, l + 1)) && r; - r = p && report_error_(b, InterfaceStatement_4(b, l + 1)) && r; - r = p && InterfaceOperationsBlock(b, l + 1) && r; - exit_section_(b, l, m, r, p, null); - return r || p; - } - - // DecoratorLike* - private static boolean InterfaceStatement_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "InterfaceStatement_0")) return false; - while (true) { - int c = current_position_(b); - if (!DecoratorLike(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "InterfaceStatement_0", c)) break; - } - return true; - } - - // TypeParameterList? - private static boolean InterfaceStatement_3(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "InterfaceStatement_3")) return false; - TypeParameterList(b, l + 1); - return true; - } - - // InterfaceExtends? - private static boolean InterfaceStatement_4(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "InterfaceStatement_4")) return false; - InterfaceExtends(b, l + 1); - return true; - } - - /* ********************************************************** */ - // AMP? [OperatorExpression (AMP OperatorExpression)*] - public static boolean IntersectionExpression(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "IntersectionExpression")) return false; - boolean r; - Marker m = enter_section_(b, l, _NONE_, INTERSECTION_EXPRESSION, ""); - r = IntersectionExpression_0(b, l + 1); - r = r && IntersectionExpression_1(b, l + 1); - exit_section_(b, l, m, r, false, null); - return r; - } - - // AMP? - private static boolean IntersectionExpression_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "IntersectionExpression_0")) return false; - consumeToken(b, AMP); - return true; - } - - // [OperatorExpression (AMP OperatorExpression)*] - private static boolean IntersectionExpression_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "IntersectionExpression_1")) return false; - IntersectionExpression_1_0(b, l + 1); - return true; - } - - // OperatorExpression (AMP OperatorExpression)* - private static boolean IntersectionExpression_1_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "IntersectionExpression_1_0")) return false; - boolean r; - Marker m = enter_section_(b); - r = OperatorExpression(b, l + 1); - r = r && IntersectionExpression_1_0_1(b, l + 1); - exit_section_(b, m, null, r); - return r; - } - - // (AMP OperatorExpression)* - private static boolean IntersectionExpression_1_0_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "IntersectionExpression_1_0_1")) return false; - while (true) { - int c = current_position_(b); - if (!IntersectionExpression_1_0_1_0(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "IntersectionExpression_1_0_1", c)) break; - } - return true; - } - - // AMP OperatorExpression - private static boolean IntersectionExpression_1_0_1_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "IntersectionExpression_1_0_1_0")) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, AMP); - r = r && OperatorExpression(b, l + 1); - exit_section_(b, m, null, r); - return r; - } - - /* ********************************************************** */ - // VOID | NEVER | ANY - public static boolean KeywordExpression(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "KeywordExpression")) return false; - boolean r; - Marker m = enter_section_(b, l, _NONE_, KEYWORD_EXPRESSION, ""); - r = consumeToken(b, VOID); - if (!r) r = consumeToken(b, NEVER); - if (!r) r = consumeToken(b, ANY); - exit_section_(b, l, m, r, false, null); - return r; - } - - /* ********************************************************** */ - // STRING_LITERAL | NUMERIC_LITERAL | TRUE | FALSE - public static boolean LiteralExpression(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "LiteralExpression")) return false; - boolean r; - Marker m = enter_section_(b, l, _NONE_, LITERAL_EXPRESSION, ""); - r = consumeToken(b, STRING_LITERAL); - if (!r) r = consumeToken(b, NUMERIC_LITERAL); - if (!r) r = consumeToken(b, TRUE); - if (!r) r = consumeToken(b, FALSE); - exit_section_(b, l, m, r, false, null); - return r; - } - - /* ********************************************************** */ - // Identifier ((DOT | COLONCOLON) Identifier)+ - public static boolean MemberExpression(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "MemberExpression")) return false; - if (!nextTokenIs(b, IDENT)) return false; - boolean r; - Marker m = enter_section_(b); - r = Identifier(b, l + 1); - r = r && MemberExpression_1(b, l + 1); - exit_section_(b, m, MEMBER_EXPRESSION, r); - return r; - } - - // ((DOT | COLONCOLON) Identifier)+ - private static boolean MemberExpression_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "MemberExpression_1")) return false; - boolean r; - Marker m = enter_section_(b); - r = MemberExpression_1_0(b, l + 1); - while (r) { - int c = current_position_(b); - if (!MemberExpression_1_0(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "MemberExpression_1", c)) break; - } - exit_section_(b, m, null, r); - return r; - } - - // (DOT | COLONCOLON) Identifier - private static boolean MemberExpression_1_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "MemberExpression_1_0")) return false; - boolean r; - Marker m = enter_section_(b); - r = MemberExpression_1_0_0(b, l + 1); - r = r && Identifier(b, l + 1); - exit_section_(b, m, null, r); - return r; - } - - // DOT | COLONCOLON - private static boolean MemberExpression_1_0_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "MemberExpression_1_0_0")) return false; - boolean r; - r = consumeToken(b, DOT); - if (!r) r = consumeToken(b, COLONCOLON); - return r; - } - - /* ********************************************************** */ - // LBRACE ModelPropertyLike* RBRACE - public static boolean ModelExpression(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ModelExpression")) return false; - if (!nextTokenIs(b, LBRACE)) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, LBRACE); - r = r && ModelExpression_1(b, l + 1); - r = r && consumeToken(b, RBRACE); - exit_section_(b, m, MODEL_EXPRESSION, r); - return r; - } - - // ModelPropertyLike* - private static boolean ModelExpression_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ModelExpression_1")) return false; - while (true) { - int c = current_position_(b); - if (!ModelPropertyLike(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "ModelExpression_1", c)) break; - } - return true; - } - - /* ********************************************************** */ - // EXTENDS Expression - public static boolean ModelExtends(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ModelExtends")) return false; - if (!nextTokenIs(b, EXTENDS)) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, EXTENDS); - r = r && Expression(b, l + 1); - exit_section_(b, m, MODEL_EXTENDS, r); - return r; - } - - /* ********************************************************** */ - // IS TypeReference - public static boolean ModelIs(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ModelIs")) return false; - if (!nextTokenIs(b, IS)) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, IS); - r = r && TypeReference(b, l + 1); - exit_section_(b, m, MODEL_IS, r); - return r; - } - - /* ********************************************************** */ - // DecoratorLike* Identifier QUEST? COLON Expression (EQ Expression)? (COMMA | SEMICOLON) - public static boolean ModelProperty(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ModelProperty")) return false; - boolean r; - Marker m = enter_section_(b, l, _NONE_, MODEL_PROPERTY, ""); - r = ModelProperty_0(b, l + 1); - r = r && Identifier(b, l + 1); - r = r && ModelProperty_2(b, l + 1); - r = r && consumeToken(b, COLON); - r = r && Expression(b, l + 1); - r = r && ModelProperty_5(b, l + 1); - r = r && ModelProperty_6(b, l + 1); - exit_section_(b, l, m, r, false, null); - return r; - } - - // DecoratorLike* - private static boolean ModelProperty_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ModelProperty_0")) return false; - while (true) { - int c = current_position_(b); - if (!DecoratorLike(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "ModelProperty_0", c)) break; - } - return true; - } - - // QUEST? - private static boolean ModelProperty_2(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ModelProperty_2")) return false; - consumeToken(b, QUEST); - return true; - } - - // (EQ Expression)? - private static boolean ModelProperty_5(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ModelProperty_5")) return false; - ModelProperty_5_0(b, l + 1); - return true; - } - - // EQ Expression - private static boolean ModelProperty_5_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ModelProperty_5_0")) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, EQ); - r = r && Expression(b, l + 1); - exit_section_(b, m, null, r); - return r; - } - - // COMMA | SEMICOLON - private static boolean ModelProperty_6(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ModelProperty_6")) return false; - boolean r; - r = consumeToken(b, COMMA); - if (!r) r = consumeToken(b, SEMICOLON); - return r; - } - - /* ********************************************************** */ - // ModelProperty | SpreadModelProperty - public static boolean ModelPropertyLike(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ModelPropertyLike")) return false; - boolean r; - Marker m = enter_section_(b, l, _COLLAPSE_, MODEL_PROPERTY_LIKE, ""); - r = ModelProperty(b, l + 1); - if (!r) r = SpreadModelProperty(b, l + 1); - exit_section_(b, l, m, r, false, null); - return r; - } - - /* ********************************************************** */ - // DecoratorLike* MODEL Identifier TypeParameterList? (ModelExtends | ModelIs)? (ModelExpression | SEMICOLON) - public static boolean ModelStatement(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ModelStatement")) return false; - boolean r, p; - Marker m = enter_section_(b, l, _NONE_, MODEL_STATEMENT, ""); - r = ModelStatement_0(b, l + 1); - r = r && consumeToken(b, MODEL); - p = r; // pin = 2 - r = r && report_error_(b, Identifier(b, l + 1)); - r = p && report_error_(b, ModelStatement_3(b, l + 1)) && r; - r = p && report_error_(b, ModelStatement_4(b, l + 1)) && r; - r = p && ModelStatement_5(b, l + 1) && r; - exit_section_(b, l, m, r, p, null); - return r || p; - } - - // DecoratorLike* - private static boolean ModelStatement_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ModelStatement_0")) return false; - while (true) { - int c = current_position_(b); - if (!DecoratorLike(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "ModelStatement_0", c)) break; - } - return true; - } - - // TypeParameterList? - private static boolean ModelStatement_3(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ModelStatement_3")) return false; - TypeParameterList(b, l + 1); - return true; - } - - // (ModelExtends | ModelIs)? - private static boolean ModelStatement_4(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ModelStatement_4")) return false; - ModelStatement_4_0(b, l + 1); - return true; - } - - // ModelExtends | ModelIs - private static boolean ModelStatement_4_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ModelStatement_4_0")) return false; - boolean r; - r = ModelExtends(b, l + 1); - if (!r) r = ModelIs(b, l + 1); - return r; - } - - // ModelExpression | SEMICOLON - private static boolean ModelStatement_5(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ModelStatement_5")) return false; - boolean r; - r = ModelExpression(b, l + 1); - if (!r) r = consumeToken(b, SEMICOLON); - return r; - } - - /* ********************************************************** */ - // DecoratorLike* Identifier QUEST? (COLON Expression)? - public static boolean NamedParameter(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "NamedParameter")) return false; - boolean r; - Marker m = enter_section_(b, l, _NONE_, NAMED_PARAMETER, ""); - r = NamedParameter_0(b, l + 1); - r = r && Identifier(b, l + 1); - r = r && NamedParameter_2(b, l + 1); - r = r && NamedParameter_3(b, l + 1); - exit_section_(b, l, m, r, false, null); - return r; - } - - // DecoratorLike* - private static boolean NamedParameter_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "NamedParameter_0")) return false; - while (true) { - int c = current_position_(b); - if (!DecoratorLike(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "NamedParameter_0", c)) break; - } - return true; - } - - // QUEST? - private static boolean NamedParameter_2(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "NamedParameter_2")) return false; - consumeToken(b, QUEST); - return true; - } - - // (COLON Expression)? - private static boolean NamedParameter_3(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "NamedParameter_3")) return false; - NamedParameter_3_0(b, l + 1); - return true; - } - - // COLON Expression - private static boolean NamedParameter_3_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "NamedParameter_3_0")) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, COLON); - r = r && Expression(b, l + 1); - exit_section_(b, m, null, r); - return r; - } - - /* ********************************************************** */ - // DecoratorLike* NAMESPACE Path (SEMICOLON | LBRACE Statement* RBRACE) - public static boolean NamespaceStatement(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "NamespaceStatement")) return false; - boolean r, p; - Marker m = enter_section_(b, l, _NONE_, NAMESPACE_STATEMENT, ""); - r = NamespaceStatement_0(b, l + 1); - r = r && consumeToken(b, NAMESPACE); - p = r; // pin = 2 - r = r && report_error_(b, Path(b, l + 1)); - r = p && NamespaceStatement_3(b, l + 1) && r; - exit_section_(b, l, m, r, p, null); - return r || p; - } - - // DecoratorLike* - private static boolean NamespaceStatement_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "NamespaceStatement_0")) return false; - while (true) { - int c = current_position_(b); - if (!DecoratorLike(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "NamespaceStatement_0", c)) break; - } - return true; - } - - // SEMICOLON | LBRACE Statement* RBRACE - private static boolean NamespaceStatement_3(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "NamespaceStatement_3")) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, SEMICOLON); - if (!r) r = NamespaceStatement_3_1(b, l + 1); - exit_section_(b, m, null, r); - return r; - } - - // LBRACE Statement* RBRACE - private static boolean NamespaceStatement_3_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "NamespaceStatement_3_1")) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, LBRACE); - r = r && NamespaceStatement_3_1_1(b, l + 1); - r = r && consumeToken(b, RBRACE); - exit_section_(b, m, null, r); - return r; - } - - // Statement* - private static boolean NamespaceStatement_3_1_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "NamespaceStatement_3_1_1")) return false; - while (true) { - int c = current_position_(b); - if (!Statement(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "NamespaceStatement_3_1_1", c)) break; - } - return true; - } - - /* ********************************************************** */ - // TypeReference - // | MemberExpression - // | TupleExpression - // | ModelExpression - // | ArrayLiteral - // | ObjectLiteral - // | LiteralExpression - // | KeywordExpression - public static boolean NonArrayExpression(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "NonArrayExpression")) return false; - boolean r; - Marker m = enter_section_(b, l, _COLLAPSE_, NON_ARRAY_EXPRESSION, ""); - r = TypeReference(b, l + 1); - if (!r) r = MemberExpression(b, l + 1); - if (!r) r = TupleExpression(b, l + 1); - if (!r) r = ModelExpression(b, l + 1); - if (!r) r = ArrayLiteral(b, l + 1); - if (!r) r = ObjectLiteral(b, l + 1); - if (!r) r = LiteralExpression(b, l + 1); - if (!r) r = KeywordExpression(b, l + 1); - exit_section_(b, l, m, r, false, null); - return r; - } - - /* ********************************************************** */ - // HASHLBRACE [(ObjectLiteralPropertyLike COMMA)* ObjectLiteralPropertyLike?] RBRACE - public static boolean ObjectLiteral(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ObjectLiteral")) return false; - if (!nextTokenIs(b, HASHLBRACE)) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, HASHLBRACE); - r = r && ObjectLiteral_1(b, l + 1); - r = r && consumeToken(b, RBRACE); - exit_section_(b, m, OBJECT_LITERAL, r); - return r; - } - - // [(ObjectLiteralPropertyLike COMMA)* ObjectLiteralPropertyLike?] - private static boolean ObjectLiteral_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ObjectLiteral_1")) return false; - ObjectLiteral_1_0(b, l + 1); - return true; - } - - // (ObjectLiteralPropertyLike COMMA)* ObjectLiteralPropertyLike? - private static boolean ObjectLiteral_1_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ObjectLiteral_1_0")) return false; - boolean r; - Marker m = enter_section_(b); - r = ObjectLiteral_1_0_0(b, l + 1); - r = r && ObjectLiteral_1_0_1(b, l + 1); - exit_section_(b, m, null, r); - return r; - } - - // (ObjectLiteralPropertyLike COMMA)* - private static boolean ObjectLiteral_1_0_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ObjectLiteral_1_0_0")) return false; - while (true) { - int c = current_position_(b); - if (!ObjectLiteral_1_0_0_0(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "ObjectLiteral_1_0_0", c)) break; - } - return true; - } - - // ObjectLiteralPropertyLike COMMA - private static boolean ObjectLiteral_1_0_0_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ObjectLiteral_1_0_0_0")) return false; - boolean r; - Marker m = enter_section_(b); - r = ObjectLiteralPropertyLike(b, l + 1); - r = r && consumeToken(b, COMMA); - exit_section_(b, m, null, r); - return r; - } - - // ObjectLiteralPropertyLike? - private static boolean ObjectLiteral_1_0_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ObjectLiteral_1_0_1")) return false; - ObjectLiteralPropertyLike(b, l + 1); - return true; - } - - /* ********************************************************** */ - // Identifier COLON Expression - public static boolean ObjectLiteralProperty(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ObjectLiteralProperty")) return false; - if (!nextTokenIs(b, IDENT)) return false; - boolean r; - Marker m = enter_section_(b); - r = Identifier(b, l + 1); - r = r && consumeToken(b, COLON); - r = r && Expression(b, l + 1); - exit_section_(b, m, OBJECT_LITERAL_PROPERTY, r); - return r; - } - - /* ********************************************************** */ - // ObjectLiteralProperty | SpreadObjectLiteralProperty - static boolean ObjectLiteralPropertyLike(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ObjectLiteralPropertyLike")) return false; - if (!nextTokenIs(b, "", DOTDOTDOT, IDENT)) return false; - boolean r; - r = ObjectLiteralProperty(b, l + 1); - if (!r) r = SpreadObjectLiteralProperty(b, l + 1); - return r; - } - - /* ********************************************************** */ - // Identifier TypeParameterList? OperationSignature - public static boolean Operation(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "Operation")) return false; - if (!nextTokenIs(b, IDENT)) return false; - boolean r; - Marker m = enter_section_(b); - r = Identifier(b, l + 1); - r = r && Operation_1(b, l + 1); - r = r && OperationSignature(b, l + 1); - exit_section_(b, m, OPERATION, r); - return r; - } - - // TypeParameterList? - private static boolean Operation_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "Operation_1")) return false; - TypeParameterList(b, l + 1); - return true; - } - - /* ********************************************************** */ - // OperationSignatureDeclarationNode - // | OperationSignatureReferenceNode - public static boolean OperationSignature(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "OperationSignature")) return false; - if (!nextTokenIs(b, "", IS, LPAREN)) return false; - boolean r; - Marker m = enter_section_(b, l, _NONE_, OPERATION_SIGNATURE, ""); - r = OperationSignatureDeclarationNode(b, l + 1); - if (!r) r = OperationSignatureReferenceNode(b, l + 1); - exit_section_(b, l, m, r, false, null); - return r; - } - - /* ********************************************************** */ - // ParameterList COLON Expression - public static boolean OperationSignatureDeclarationNode(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "OperationSignatureDeclarationNode")) return false; - if (!nextTokenIs(b, LPAREN)) return false; - boolean r; - Marker m = enter_section_(b); - r = ParameterList(b, l + 1); - r = r && consumeToken(b, COLON); - r = r && Expression(b, l + 1); - exit_section_(b, m, OPERATION_SIGNATURE_DECLARATION_NODE, r); - return r; - } - - /* ********************************************************** */ - // IS TypeReference - public static boolean OperationSignatureReferenceNode(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "OperationSignatureReferenceNode")) return false; - if (!nextTokenIs(b, IS)) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, IS); - r = r && TypeReference(b, l + 1); - exit_section_(b, m, OPERATION_SIGNATURE_REFERENCE_NODE, r); - return r; - } - - /* ********************************************************** */ - // DecoratorLike* OP Operation SEMICOLON - public static boolean OperationStatement(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "OperationStatement")) return false; - boolean r, p; - Marker m = enter_section_(b, l, _NONE_, OPERATION_STATEMENT, ""); - r = OperationStatement_0(b, l + 1); - r = r && consumeToken(b, OP); - p = r; // pin = 2 - r = r && report_error_(b, Operation(b, l + 1)); - r = p && consumeToken(b, SEMICOLON) && r; - exit_section_(b, l, m, r, p, null); - return r || p; - } - - // DecoratorLike* - private static boolean OperationStatement_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "OperationStatement_0")) return false; - while (true) { - int c = current_position_(b); - if (!DecoratorLike(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "OperationStatement_0", c)) break; - } - return true; - } - - /* ********************************************************** */ - // ValueOfExpression - // | TypeOfExpression - // | CallExpression - // | ArrayExpression - // | NonArrayExpression - public static boolean OperatorExpression(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "OperatorExpression")) return false; - boolean r; - Marker m = enter_section_(b, l, _COLLAPSE_, OPERATOR_EXPRESSION, ""); - r = ValueOfExpression(b, l + 1); - if (!r) r = TypeOfExpression(b, l + 1); - if (!r) r = CallExpression(b, l + 1); - if (!r) r = ArrayExpression(b, l + 1); - if (!r) r = NonArrayExpression(b, l + 1); - exit_section_(b, l, m, r, false, null); - return r; - } - - /* ********************************************************** */ - // NamedParameter - // | VariadicParameter - public static boolean Parameter(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "Parameter")) return false; - boolean r; - Marker m = enter_section_(b, l, _NONE_, PARAMETER, ""); - r = NamedParameter(b, l + 1); - if (!r) r = VariadicParameter(b, l + 1); - exit_section_(b, l, m, r, false, null); - return r; - } - - /* ********************************************************** */ - // LPAREN [(Parameter COMMA)* Parameter?] RPAREN - public static boolean ParameterList(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ParameterList")) return false; - if (!nextTokenIs(b, LPAREN)) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, LPAREN); - r = r && ParameterList_1(b, l + 1); - r = r && consumeToken(b, RPAREN); - exit_section_(b, m, PARAMETER_LIST, r); - return r; - } - - // [(Parameter COMMA)* Parameter?] - private static boolean ParameterList_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ParameterList_1")) return false; - ParameterList_1_0(b, l + 1); - return true; - } - - // (Parameter COMMA)* Parameter? - private static boolean ParameterList_1_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ParameterList_1_0")) return false; - boolean r; - Marker m = enter_section_(b); - r = ParameterList_1_0_0(b, l + 1); - r = r && ParameterList_1_0_1(b, l + 1); - exit_section_(b, m, null, r); - return r; - } - - // (Parameter COMMA)* - private static boolean ParameterList_1_0_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ParameterList_1_0_0")) return false; - while (true) { - int c = current_position_(b); - if (!ParameterList_1_0_0_0(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "ParameterList_1_0_0", c)) break; - } - return true; - } - - // Parameter COMMA - private static boolean ParameterList_1_0_0_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ParameterList_1_0_0_0")) return false; - boolean r; - Marker m = enter_section_(b); - r = Parameter(b, l + 1); - r = r && consumeToken(b, COMMA); - exit_section_(b, m, null, r); - return r; - } - - // Parameter? - private static boolean ParameterList_1_0_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ParameterList_1_0_1")) return false; - Parameter(b, l + 1); - return true; - } - - /* ********************************************************** */ - // MemberExpression | Identifier - public static boolean Path(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "Path")) return false; - if (!nextTokenIs(b, IDENT)) return false; - boolean r; - Marker m = enter_section_(b); - r = MemberExpression(b, l + 1); - if (!r) r = Identifier(b, l + 1); - exit_section_(b, m, PATH, r); - return r; - } - - /* ********************************************************** */ - // INIT Identifier ParameterList? SEMICOLON - public static boolean ScalarConstructor(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ScalarConstructor")) return false; - if (!nextTokenIs(b, INIT)) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, INIT); - r = r && Identifier(b, l + 1); - r = r && ScalarConstructor_2(b, l + 1); - r = r && consumeToken(b, SEMICOLON); - exit_section_(b, m, SCALAR_CONSTRUCTOR, r); - return r; - } - - // ParameterList? - private static boolean ScalarConstructor_2(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ScalarConstructor_2")) return false; - ParameterList(b, l + 1); - return true; - } - - /* ********************************************************** */ - // LBRACE ScalarConstructor* RBRACE - public static boolean ScalarConstructorList(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ScalarConstructorList")) return false; - if (!nextTokenIs(b, LBRACE)) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, LBRACE); - r = r && ScalarConstructorList_1(b, l + 1); - r = r && consumeToken(b, RBRACE); - exit_section_(b, m, SCALAR_CONSTRUCTOR_LIST, r); - return r; - } - - // ScalarConstructor* - private static boolean ScalarConstructorList_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ScalarConstructorList_1")) return false; - while (true) { - int c = current_position_(b); - if (!ScalarConstructor(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "ScalarConstructorList_1", c)) break; - } - return true; - } - - /* ********************************************************** */ - // EXTENDS TypeReference - public static boolean ScalarExtends(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ScalarExtends")) return false; - if (!nextTokenIs(b, EXTENDS)) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, EXTENDS); - r = r && TypeReference(b, l + 1); - exit_section_(b, m, SCALAR_EXTENDS, r); - return r; - } - - /* ********************************************************** */ - // DecoratorLike* SCALAR Identifier TypeParameterList? ScalarExtends? (SEMICOLON | ScalarConstructorList) - public static boolean ScalarStatement(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ScalarStatement")) return false; - boolean r, p; - Marker m = enter_section_(b, l, _NONE_, SCALAR_STATEMENT, ""); - r = ScalarStatement_0(b, l + 1); - r = r && consumeToken(b, SCALAR); - p = r; // pin = 2 - r = r && report_error_(b, Identifier(b, l + 1)); - r = p && report_error_(b, ScalarStatement_3(b, l + 1)) && r; - r = p && report_error_(b, ScalarStatement_4(b, l + 1)) && r; - r = p && ScalarStatement_5(b, l + 1) && r; - exit_section_(b, l, m, r, p, null); - return r || p; - } - - // DecoratorLike* - private static boolean ScalarStatement_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ScalarStatement_0")) return false; - while (true) { - int c = current_position_(b); - if (!DecoratorLike(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "ScalarStatement_0", c)) break; - } - return true; - } - - // TypeParameterList? - private static boolean ScalarStatement_3(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ScalarStatement_3")) return false; - TypeParameterList(b, l + 1); - return true; - } - - // ScalarExtends? - private static boolean ScalarStatement_4(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ScalarStatement_4")) return false; - ScalarExtends(b, l + 1); - return true; - } - - // SEMICOLON | ScalarConstructorList - private static boolean ScalarStatement_5(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ScalarStatement_5")) return false; - boolean r; - r = consumeToken(b, SEMICOLON); - if (!r) r = ScalarConstructorList(b, l + 1); - return r; - } - - /* ********************************************************** */ - // DOTDOTDOT Expression (COMMA | SEMICOLON) - public static boolean SpreadModelProperty(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "SpreadModelProperty")) return false; - if (!nextTokenIs(b, DOTDOTDOT)) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, DOTDOTDOT); - r = r && Expression(b, l + 1); - r = r && SpreadModelProperty_2(b, l + 1); - exit_section_(b, m, SPREAD_MODEL_PROPERTY, r); - return r; - } - - // COMMA | SEMICOLON - private static boolean SpreadModelProperty_2(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "SpreadModelProperty_2")) return false; - boolean r; - r = consumeToken(b, COMMA); - if (!r) r = consumeToken(b, SEMICOLON); - return r; - } - - /* ********************************************************** */ - // DOTDOTDOT Expression - public static boolean SpreadObjectLiteralProperty(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "SpreadObjectLiteralProperty")) return false; - if (!nextTokenIs(b, DOTDOTDOT)) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, DOTDOTDOT); - r = r && Expression(b, l + 1); - exit_section_(b, m, SPREAD_OBJECT_LITERAL_PROPERTY, r); - return r; - } - - /* ********************************************************** */ - // ImportStatement - // | UsingStatement - // | NamespaceStatement - // | ScalarStatement - // | EnumStatement - // | UnionStatement - // | ModelStatement - // | InterfaceStatement - // | OperationStatement - // | AliasStatement - // | ExternDecoratorStatement - // | AugmentDecoratorStatement - public static boolean Statement(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "Statement")) return false; - boolean r; - Marker m = enter_section_(b, l, _COLLAPSE_, STATEMENT, ""); - r = ImportStatement(b, l + 1); - if (!r) r = UsingStatement(b, l + 1); - if (!r) r = NamespaceStatement(b, l + 1); - if (!r) r = ScalarStatement(b, l + 1); - if (!r) r = EnumStatement(b, l + 1); - if (!r) r = UnionStatement(b, l + 1); - if (!r) r = ModelStatement(b, l + 1); - if (!r) r = InterfaceStatement(b, l + 1); - if (!r) r = OperationStatement(b, l + 1); - if (!r) r = AliasStatement(b, l + 1); - if (!r) r = ExternDecoratorStatement(b, l + 1); - if (!r) r = AugmentDecoratorStatement(b, l + 1); - exit_section_(b, l, m, r, false, TypeSpecParser::Statement_recover); - return r; - } - - /* ********************************************************** */ - // !( - // RBRACE | SEMICOLON | IMPORT | USING | NAMESPACE | SCALAR | ENUM | UNION | MODEL | INTERFACE | OP | ALIAS | EXTERN | AT | ATAT | HASH - // ) - static boolean Statement_recover(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "Statement_recover")) return false; - boolean r; - Marker m = enter_section_(b, l, _NOT_); - r = !Statement_recover_0(b, l + 1); - exit_section_(b, l, m, r, false, null); - return r; - } - - // RBRACE | SEMICOLON | IMPORT | USING | NAMESPACE | SCALAR | ENUM | UNION | MODEL | INTERFACE | OP | ALIAS | EXTERN | AT | ATAT | HASH - private static boolean Statement_recover_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "Statement_recover_0")) return false; - boolean r; - r = consumeToken(b, RBRACE); - if (!r) r = consumeToken(b, SEMICOLON); - if (!r) r = consumeToken(b, IMPORT); - if (!r) r = consumeToken(b, USING); - if (!r) r = consumeToken(b, NAMESPACE); - if (!r) r = consumeToken(b, SCALAR); - if (!r) r = consumeToken(b, ENUM); - if (!r) r = consumeToken(b, UNION); - if (!r) r = consumeToken(b, MODEL); - if (!r) r = consumeToken(b, INTERFACE); - if (!r) r = consumeToken(b, OP); - if (!r) r = consumeToken(b, ALIAS); - if (!r) r = consumeToken(b, EXTERN); - if (!r) r = consumeToken(b, AT); - if (!r) r = consumeToken(b, ATAT); - if (!r) r = consumeToken(b, HASH); - return r; - } - - /* ********************************************************** */ - // LBRACKET [(Expression COMMA)* Expression?] RBRACKET - public static boolean TupleExpression(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "TupleExpression")) return false; - if (!nextTokenIs(b, LBRACKET)) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, LBRACKET); - r = r && TupleExpression_1(b, l + 1); - r = r && consumeToken(b, RBRACKET); - exit_section_(b, m, TUPLE_EXPRESSION, r); - return r; - } - - // [(Expression COMMA)* Expression?] - private static boolean TupleExpression_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "TupleExpression_1")) return false; - TupleExpression_1_0(b, l + 1); - return true; - } - - // (Expression COMMA)* Expression? - private static boolean TupleExpression_1_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "TupleExpression_1_0")) return false; - boolean r; - Marker m = enter_section_(b); - r = TupleExpression_1_0_0(b, l + 1); - r = r && TupleExpression_1_0_1(b, l + 1); - exit_section_(b, m, null, r); - return r; - } - - // (Expression COMMA)* - private static boolean TupleExpression_1_0_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "TupleExpression_1_0_0")) return false; - while (true) { - int c = current_position_(b); - if (!TupleExpression_1_0_0_0(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "TupleExpression_1_0_0", c)) break; - } - return true; - } - - // Expression COMMA - private static boolean TupleExpression_1_0_0_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "TupleExpression_1_0_0_0")) return false; - boolean r; - Marker m = enter_section_(b); - r = Expression(b, l + 1); - r = r && consumeToken(b, COMMA); - exit_section_(b, m, null, r); - return r; - } - - // Expression? - private static boolean TupleExpression_1_0_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "TupleExpression_1_0_1")) return false; - Expression(b, l + 1); - return true; - } - - /* ********************************************************** */ - // LT [(Expression COMMA)* Expression?] GT - public static boolean TypeArgumentList(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "TypeArgumentList")) return false; - if (!nextTokenIs(b, LT)) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, LT); - r = r && TypeArgumentList_1(b, l + 1); - r = r && consumeToken(b, GT); - exit_section_(b, m, TYPE_ARGUMENT_LIST, r); - return r; - } - - // [(Expression COMMA)* Expression?] - private static boolean TypeArgumentList_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "TypeArgumentList_1")) return false; - TypeArgumentList_1_0(b, l + 1); - return true; - } - - // (Expression COMMA)* Expression? - private static boolean TypeArgumentList_1_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "TypeArgumentList_1_0")) return false; - boolean r; - Marker m = enter_section_(b); - r = TypeArgumentList_1_0_0(b, l + 1); - r = r && TypeArgumentList_1_0_1(b, l + 1); - exit_section_(b, m, null, r); - return r; - } - - // (Expression COMMA)* - private static boolean TypeArgumentList_1_0_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "TypeArgumentList_1_0_0")) return false; - while (true) { - int c = current_position_(b); - if (!TypeArgumentList_1_0_0_0(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "TypeArgumentList_1_0_0", c)) break; - } - return true; - } - - // Expression COMMA - private static boolean TypeArgumentList_1_0_0_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "TypeArgumentList_1_0_0_0")) return false; - boolean r; - Marker m = enter_section_(b); - r = Expression(b, l + 1); - r = r && consumeToken(b, COMMA); - exit_section_(b, m, null, r); - return r; - } - - // Expression? - private static boolean TypeArgumentList_1_0_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "TypeArgumentList_1_0_1")) return false; - Expression(b, l + 1); - return true; - } - - /* ********************************************************** */ - // TYPEOF OperatorExpression - public static boolean TypeOfExpression(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "TypeOfExpression")) return false; - if (!nextTokenIs(b, TYPEOF)) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, TYPEOF); - r = r && OperatorExpression(b, l + 1); - exit_section_(b, m, TYPE_OF_EXPRESSION, r); - return r; - } - - /* ********************************************************** */ - // Identifier (EXTENDS Expression)? (EQ Expression)? - public static boolean TypeParameter(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "TypeParameter")) return false; - if (!nextTokenIs(b, IDENT)) return false; - boolean r; - Marker m = enter_section_(b); - r = Identifier(b, l + 1); - r = r && TypeParameter_1(b, l + 1); - r = r && TypeParameter_2(b, l + 1); - exit_section_(b, m, TYPE_PARAMETER, r); - return r; - } - - // (EXTENDS Expression)? - private static boolean TypeParameter_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "TypeParameter_1")) return false; - TypeParameter_1_0(b, l + 1); - return true; - } - - // EXTENDS Expression - private static boolean TypeParameter_1_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "TypeParameter_1_0")) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, EXTENDS); - r = r && Expression(b, l + 1); - exit_section_(b, m, null, r); - return r; - } - - // (EQ Expression)? - private static boolean TypeParameter_2(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "TypeParameter_2")) return false; - TypeParameter_2_0(b, l + 1); - return true; - } - - // EQ Expression - private static boolean TypeParameter_2_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "TypeParameter_2_0")) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, EQ); - r = r && Expression(b, l + 1); - exit_section_(b, m, null, r); - return r; - } - - /* ********************************************************** */ - // LT [(TypeParameter COMMA)* TypeParameter?] GT - public static boolean TypeParameterList(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "TypeParameterList")) return false; - if (!nextTokenIs(b, LT)) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, LT); - r = r && TypeParameterList_1(b, l + 1); - r = r && consumeToken(b, GT); - exit_section_(b, m, TYPE_PARAMETER_LIST, r); - return r; - } - - // [(TypeParameter COMMA)* TypeParameter?] - private static boolean TypeParameterList_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "TypeParameterList_1")) return false; - TypeParameterList_1_0(b, l + 1); - return true; - } - - // (TypeParameter COMMA)* TypeParameter? - private static boolean TypeParameterList_1_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "TypeParameterList_1_0")) return false; - boolean r; - Marker m = enter_section_(b); - r = TypeParameterList_1_0_0(b, l + 1); - r = r && TypeParameterList_1_0_1(b, l + 1); - exit_section_(b, m, null, r); - return r; - } - - // (TypeParameter COMMA)* - private static boolean TypeParameterList_1_0_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "TypeParameterList_1_0_0")) return false; - while (true) { - int c = current_position_(b); - if (!TypeParameterList_1_0_0_0(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "TypeParameterList_1_0_0", c)) break; - } - return true; - } - - // TypeParameter COMMA - private static boolean TypeParameterList_1_0_0_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "TypeParameterList_1_0_0_0")) return false; - boolean r; - Marker m = enter_section_(b); - r = TypeParameter(b, l + 1); - r = r && consumeToken(b, COMMA); - exit_section_(b, m, null, r); - return r; - } - - // TypeParameter? - private static boolean TypeParameterList_1_0_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "TypeParameterList_1_0_1")) return false; - TypeParameter(b, l + 1); - return true; - } - - /* ********************************************************** */ - // Path TypeArgumentList? - public static boolean TypeReference(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "TypeReference")) return false; - if (!nextTokenIs(b, IDENT)) return false; - boolean r; - Marker m = enter_section_(b); - r = Path(b, l + 1); - r = r && TypeReference_1(b, l + 1); - exit_section_(b, m, TYPE_REFERENCE, r); - return r; - } - - // TypeArgumentList? - private static boolean TypeReference_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "TypeReference_1")) return false; - TypeArgumentList(b, l + 1); - return true; - } - - /* ********************************************************** */ - // PIPE? [IntersectionExpression (PIPE IntersectionExpression)*] - public static boolean UnionExpression(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "UnionExpression")) return false; - boolean r; - Marker m = enter_section_(b, l, _COLLAPSE_, UNION_EXPRESSION, ""); - r = UnionExpression_0(b, l + 1); - r = r && UnionExpression_1(b, l + 1); - exit_section_(b, l, m, r, false, null); - return r; - } - - // PIPE? - private static boolean UnionExpression_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "UnionExpression_0")) return false; - consumeToken(b, PIPE); - return true; - } - - // [IntersectionExpression (PIPE IntersectionExpression)*] - private static boolean UnionExpression_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "UnionExpression_1")) return false; - UnionExpression_1_0(b, l + 1); - return true; - } - - // IntersectionExpression (PIPE IntersectionExpression)* - private static boolean UnionExpression_1_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "UnionExpression_1_0")) return false; - boolean r; - Marker m = enter_section_(b); - r = IntersectionExpression(b, l + 1); - r = r && UnionExpression_1_0_1(b, l + 1); - exit_section_(b, m, null, r); - return r; - } - - // (PIPE IntersectionExpression)* - private static boolean UnionExpression_1_0_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "UnionExpression_1_0_1")) return false; - while (true) { - int c = current_position_(b); - if (!UnionExpression_1_0_1_0(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "UnionExpression_1_0_1", c)) break; - } - return true; - } - - // PIPE IntersectionExpression - private static boolean UnionExpression_1_0_1_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "UnionExpression_1_0_1_0")) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, PIPE); - r = r && IntersectionExpression(b, l + 1); - exit_section_(b, m, null, r); - return r; - } - - /* ********************************************************** */ - // DecoratorLike* UNION Identifier UnionVariantsBlock - public static boolean UnionStatement(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "UnionStatement")) return false; - boolean r, p; - Marker m = enter_section_(b, l, _NONE_, UNION_STATEMENT, ""); - r = UnionStatement_0(b, l + 1); - r = r && consumeToken(b, UNION); - p = r; // pin = 2 - r = r && report_error_(b, Identifier(b, l + 1)); - r = p && UnionVariantsBlock(b, l + 1) && r; - exit_section_(b, l, m, r, p, null); - return r || p; - } - - // DecoratorLike* - private static boolean UnionStatement_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "UnionStatement_0")) return false; - while (true) { - int c = current_position_(b); - if (!DecoratorLike(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "UnionStatement_0", c)) break; - } - return true; - } - - /* ********************************************************** */ - // DecoratorLike* (Identifier COLON)? Expression - public static boolean UnionVariant(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "UnionVariant")) return false; - boolean r; - Marker m = enter_section_(b, l, _NONE_, UNION_VARIANT, ""); - r = UnionVariant_0(b, l + 1); - r = r && UnionVariant_1(b, l + 1); - r = r && Expression(b, l + 1); - exit_section_(b, l, m, r, false, null); - return r; - } - - // DecoratorLike* - private static boolean UnionVariant_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "UnionVariant_0")) return false; - while (true) { - int c = current_position_(b); - if (!DecoratorLike(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "UnionVariant_0", c)) break; - } - return true; - } - - // (Identifier COLON)? - private static boolean UnionVariant_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "UnionVariant_1")) return false; - UnionVariant_1_0(b, l + 1); - return true; - } - - // Identifier COLON - private static boolean UnionVariant_1_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "UnionVariant_1_0")) return false; - boolean r; - Marker m = enter_section_(b); - r = Identifier(b, l + 1); - r = r && consumeToken(b, COLON); - exit_section_(b, m, null, r); - return r; - } - - /* ********************************************************** */ - // LBRACE [(UnionVariant COMMA)* UnionVariant?] RBRACE - public static boolean UnionVariantsBlock(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "UnionVariantsBlock")) return false; - if (!nextTokenIs(b, LBRACE)) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, LBRACE); - r = r && UnionVariantsBlock_1(b, l + 1); - r = r && consumeToken(b, RBRACE); - exit_section_(b, m, UNION_VARIANTS_BLOCK, r); - return r; - } - - // [(UnionVariant COMMA)* UnionVariant?] - private static boolean UnionVariantsBlock_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "UnionVariantsBlock_1")) return false; - UnionVariantsBlock_1_0(b, l + 1); - return true; - } - - // (UnionVariant COMMA)* UnionVariant? - private static boolean UnionVariantsBlock_1_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "UnionVariantsBlock_1_0")) return false; - boolean r; - Marker m = enter_section_(b); - r = UnionVariantsBlock_1_0_0(b, l + 1); - r = r && UnionVariantsBlock_1_0_1(b, l + 1); - exit_section_(b, m, null, r); - return r; - } - - // (UnionVariant COMMA)* - private static boolean UnionVariantsBlock_1_0_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "UnionVariantsBlock_1_0_0")) return false; - while (true) { - int c = current_position_(b); - if (!UnionVariantsBlock_1_0_0_0(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "UnionVariantsBlock_1_0_0", c)) break; - } - return true; - } - - // UnionVariant COMMA - private static boolean UnionVariantsBlock_1_0_0_0(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "UnionVariantsBlock_1_0_0_0")) return false; - boolean r; - Marker m = enter_section_(b); - r = UnionVariant(b, l + 1); - r = r && consumeToken(b, COMMA); - exit_section_(b, m, null, r); - return r; - } - - // UnionVariant? - private static boolean UnionVariantsBlock_1_0_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "UnionVariantsBlock_1_0_1")) return false; - UnionVariant(b, l + 1); - return true; - } - - /* ********************************************************** */ - // USING Path SEMICOLON - public static boolean UsingStatement(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "UsingStatement")) return false; - if (!nextTokenIs(b, USING)) return false; - boolean r, p; - Marker m = enter_section_(b, l, _NONE_, USING_STATEMENT, null); - r = consumeToken(b, USING); - p = r; // pin = 1 - r = r && report_error_(b, Path(b, l + 1)); - r = p && consumeToken(b, SEMICOLON) && r; - exit_section_(b, l, m, r, p, null); - return r || p; - } - - /* ********************************************************** */ - // VALUEOF OperatorExpression - public static boolean ValueOfExpression(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ValueOfExpression")) return false; - if (!nextTokenIs(b, VALUEOF)) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, VALUEOF); - r = r && OperatorExpression(b, l + 1); - exit_section_(b, m, VALUE_OF_EXPRESSION, r); - return r; - } - - /* ********************************************************** */ - // DOTDOTDOT Expression - public static boolean VariadicParameter(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "VariadicParameter")) return false; - if (!nextTokenIs(b, DOTDOTDOT)) return false; - boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, DOTDOTDOT); - r = r && Expression(b, l + 1); - exit_section_(b, m, VARIADIC_PARAMETER, r); - return r; - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/parser/_TypeSpecLexer.java b/gen/jp/s6n/idea/typespec/lang/parser/_TypeSpecLexer.java deleted file mode 100644 index 2f6342a..0000000 --- a/gen/jp/s6n/idea/typespec/lang/parser/_TypeSpecLexer.java +++ /dev/null @@ -1,1157 +0,0 @@ -// Generated by JFlex 1.9.1 http://jflex.de/ (tweaked for IntelliJ platform) -// source: _TypeSpecLexer.flex - -package jp.s6n.idea.typespec.lang.parser; - -import com.intellij.lexer.FlexLexer; -import com.intellij.psi.tree.IElementType; - -import static com.intellij.psi.TokenType.BAD_CHARACTER; -import static com.intellij.psi.TokenType.WHITE_SPACE; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; - - -public class _TypeSpecLexer implements FlexLexer { - - /** This character denotes the end of file */ - public static final int YYEOF = -1; - - /** initial size of the lookahead buffer */ - private static final int ZZ_BUFFERSIZE = 16384; - - /** lexical states */ - public static final int YYINITIAL = 0; - - /** - * ZZ_LEXSTATE[l] is the state in the DFA for the lexical state l - * ZZ_LEXSTATE[l+1] is the state in the DFA for the lexical state l - * at the beginning of a line - * l is of the form l = 2*k, k a non negative integer - */ - private static final int ZZ_LEXSTATE[] = { - 0, 0 - }; - - /** - * Top-level table for translating characters to character classes - */ - private static final int [] ZZ_CMAP_TOP = zzUnpackcmap_top(); - - private static final String ZZ_CMAP_TOP_PACKED_0 = - "\1\0\1\u0100\1\u0200\1\u0300\1\u0400\1\u0500\1\u0600\1\u0700"+ - "\1\u0800\1\u0900\1\u0a00\1\u0b00\1\u0c00\1\u0d00\1\u0e00\1\u0f00"+ - "\1\u1000\1\u0100\1\u1100\1\u1200\1\u1300\1\u0100\1\u1400\1\u1500"+ - "\1\u1600\1\u1700\1\u1800\1\u1900\1\u1a00\1\u1b00\1\u0100\1\u1c00"+ - "\1\u1d00\1\u1e00\12\u1f00\1\u2000\1\u2100\2\u1f00\1\u2200\1\u2300"+ - "\2\u1f00\31\u0100\1\u2400\121\u0100\1\u2500\4\u0100\1\u2600\1\u0100"+ - "\1\u2700\1\u2800\1\u2900\1\u2a00\1\u2b00\1\u2c00\53\u0100\1\u2d00"+ - "\10\u2e00\31\u1f00\1\u0100\1\u2f00\1\u3000\1\u0100\1\u3100\1\u3200"+ - "\1\u3300\1\u3400\1\u3500\1\u3600\1\u3700\1\u3800\1\u3900\1\u0100"+ - "\1\u3a00\1\u3b00\1\u3c00\1\u3d00\1\u3e00\1\u3f00\1\u4000\1\u1f00"+ - "\1\u4100\1\u4200\1\u4300\1\u4400\1\u4500\1\u4600\1\u4700\1\u4800"+ - "\1\u4900\1\u4a00\1\u4b00\1\u4c00\1\u1f00\1\u4d00\1\u4e00\1\u4f00"+ - "\1\u1f00\3\u0100\1\u5000\1\u5100\1\u5200\12\u1f00\4\u0100\1\u5300"+ - "\17\u1f00\2\u0100\1\u5400\41\u1f00\2\u0100\1\u5500\1\u5600\2\u1f00"+ - "\1\u5700\1\u5800\27\u0100\1\u5900\2\u0100\1\u5a00\45\u1f00\1\u0100"+ - "\1\u5b00\1\u5c00\11\u1f00\1\u5d00\24\u1f00\1\u5e00\1\u5f00\1\u1f00"+ - "\1\u6000\1\u6100\1\u6200\1\u6300\2\u1f00\1\u6400\5\u1f00\1\u6500"+ - "\1\u6600\1\u6700\5\u1f00\1\u6800\1\u6900\4\u1f00\1\u6a00\21\u1f00"+ - "\246\u0100\1\u6b00\20\u0100\1\u6c00\1\u6d00\25\u0100\1\u6e00\34\u0100"+ - "\1\u6f00\14\u1f00\2\u0100\1\u7000\u0b06\u1f00\1\u7100\u02fe\u1f00"; - - private static int [] zzUnpackcmap_top() { - int [] result = new int[4352]; - int offset = 0; - offset = zzUnpackcmap_top(ZZ_CMAP_TOP_PACKED_0, offset, result); - return result; - } - - private static int zzUnpackcmap_top(String packed, int offset, int [] result) { - int i = 0; /* index in packed string */ - int j = offset; /* index in unpacked array */ - int l = packed.length(); - while (i < l) { - int count = packed.charAt(i++); - int value = packed.charAt(i++); - do result[j++] = value; while (--count > 0); - } - return j; - } - - - /** - * Second-level tables for translating characters to character classes - */ - private static final int [] ZZ_CMAP_BLOCKS = zzUnpackcmap_blocks(); - - private static final String ZZ_CMAP_BLOCKS_PACKED_0 = - "\11\0\1\1\1\2\2\3\1\2\22\0\1\1\1\0"+ - "\1\4\1\5\1\6\1\0\1\7\1\0\1\10\1\11"+ - "\1\12\1\0\1\13\1\14\1\15\1\16\12\17\1\20"+ - "\1\21\1\22\1\23\1\24\1\25\1\26\32\6\1\27"+ - "\1\30\1\31\1\0\1\6\1\0\1\32\1\6\1\33"+ - "\1\34\1\35\1\36\1\37\1\6\1\40\2\6\1\41"+ - "\1\42\1\43\1\44\1\45\1\6\1\46\1\47\1\50"+ - "\1\51\1\52\1\6\1\53\1\54\1\6\1\55\1\56"+ - "\1\57\7\0\1\60\44\0\1\6\12\0\1\6\1\0"+ - "\1\61\2\0\1\6\5\0\27\6\1\0\37\6\1\0"+ - "\u01ca\6\4\0\14\6\16\0\5\6\7\0\1\6\1\0"+ - "\1\6\21\0\160\61\5\6\1\0\2\6\2\0\4\6"+ - "\1\0\1\6\6\0\1\6\1\61\3\6\1\0\1\6"+ - "\1\0\24\6\1\0\123\6\1\0\213\6\1\0\5\61"+ - "\2\0\246\6\1\0\46\6\2\0\1\6\6\0\51\6"+ - "\10\0\55\61\1\0\1\61\1\0\2\61\1\0\2\61"+ - "\1\0\1\61\10\0\33\6\4\0\4\6\35\0\13\61"+ - "\5\0\53\6\37\61\4\0\2\6\1\61\143\6\1\0"+ - "\1\6\7\61\2\0\6\61\2\6\2\61\1\0\4\61"+ - "\2\6\12\61\3\6\2\0\1\6\20\0\1\6\1\61"+ - "\36\6\33\61\2\0\131\6\13\61\1\6\16\0\12\61"+ - "\41\6\11\61\2\6\4\0\1\6\2\0\1\61\2\0"+ - "\26\6\4\61\1\6\11\61\1\6\3\61\1\6\5\61"+ - "\22\0\31\6\3\61\4\0\13\6\65\0\25\6\1\0"+ - "\10\6\25\0\17\61\1\0\41\61\66\6\3\61\1\6"+ - "\22\61\1\6\7\61\12\6\2\61\2\0\12\61\1\0"+ - "\20\6\3\61\1\0\10\6\2\0\2\6\2\0\26\6"+ - "\1\0\7\6\1\0\1\6\3\0\4\6\2\0\1\61"+ - "\1\6\7\61\2\0\2\61\2\0\3\61\1\6\10\0"+ - "\1\61\4\0\2\6\1\0\3\6\2\61\2\0\12\61"+ - "\2\6\12\0\1\6\1\0\1\61\2\0\3\61\1\0"+ - "\6\6\4\0\2\6\2\0\26\6\1\0\7\6\1\0"+ - "\2\6\1\0\2\6\1\0\2\6\2\0\1\61\1\0"+ - "\5\61\4\0\2\61\2\0\3\61\3\0\1\61\7\0"+ - "\4\6\1\0\1\6\7\0\14\61\3\6\1\61\13\0"+ - "\3\61\1\0\11\6\1\0\3\6\1\0\26\6\1\0"+ - "\7\6\1\0\2\6\1\0\5\6\2\0\1\61\1\6"+ - "\10\61\1\0\3\61\1\0\3\61\2\0\1\6\17\0"+ - "\2\6\2\61\2\0\12\61\11\0\1\6\6\61\1\0"+ - "\3\61\1\0\10\6\2\0\2\6\2\0\26\6\1\0"+ - "\7\6\1\0\2\6\1\0\5\6\2\0\1\61\1\6"+ - "\7\61\2\0\2\61\2\0\3\61\10\0\2\61\4\0"+ - "\2\6\1\0\3\6\2\61\2\0\12\61\1\0\1\6"+ - "\20\0\1\61\1\6\1\0\6\6\3\0\3\6\1\0"+ - "\4\6\3\0\2\6\1\0\1\6\1\0\2\6\3\0"+ - "\2\6\3\0\3\6\3\0\14\6\4\0\5\61\3\0"+ - "\3\61\1\0\4\61\2\0\1\6\6\0\1\61\16\0"+ - "\12\61\20\0\5\61\10\6\1\0\3\6\1\0\27\6"+ - "\1\0\20\6\3\0\1\6\7\61\1\0\3\61\1\0"+ - "\4\61\7\0\2\61\1\0\3\6\5\0\2\6\2\61"+ - "\2\0\12\61\20\0\1\6\3\61\1\0\10\6\1\0"+ - "\3\6\1\0\27\6\1\0\12\6\1\0\5\6\2\0"+ - "\1\61\1\6\7\61\1\0\3\61\1\0\4\61\7\0"+ - "\2\61\7\0\1\6\1\0\2\6\2\61\2\0\12\61"+ - "\1\0\2\6\15\0\4\61\1\0\10\6\1\0\3\6"+ - "\1\0\51\6\2\61\1\6\7\61\1\0\3\61\1\0"+ - "\4\61\1\6\5\0\3\6\1\61\7\0\3\6\2\61"+ - "\2\0\12\61\12\0\6\6\2\0\2\61\1\0\22\6"+ - "\3\0\30\6\1\0\11\6\1\0\1\6\2\0\7\6"+ - "\3\0\1\61\4\0\6\61\1\0\1\61\1\0\10\61"+ - "\6\0\12\61\2\0\2\61\15\0\60\6\1\61\2\6"+ - "\7\61\5\0\7\6\10\61\1\0\12\61\47\0\2\6"+ - "\1\0\1\6\1\0\5\6\1\0\30\6\1\0\1\6"+ - "\1\0\12\6\1\61\2\6\11\61\1\6\2\0\5\6"+ - "\1\0\1\6\1\0\6\61\2\0\12\61\2\0\4\6"+ - "\40\0\1\6\27\0\2\61\6\0\12\61\13\0\1\61"+ - "\1\0\1\61\1\0\1\61\4\0\2\61\10\6\1\0"+ - "\44\6\4\0\24\61\1\0\2\61\5\6\13\61\1\0"+ - "\44\61\11\0\1\61\71\0\53\6\24\61\1\6\12\61"+ - "\6\0\6\6\4\61\4\6\3\61\1\6\3\61\2\6"+ - "\7\61\3\6\4\61\15\6\14\61\1\6\17\61\2\0"+ - "\46\6\1\0\1\6\5\0\1\6\2\0\53\6\1\0"+ - "\115\6\1\0\4\6\2\0\7\6\1\0\1\6\1\0"+ - "\4\6\2\0\51\6\1\0\4\6\2\0\41\6\1\0"+ - "\4\6\2\0\7\6\1\0\1\6\1\0\4\6\2\0"+ - "\17\6\1\0\71\6\1\0\4\6\2\0\103\6\2\0"+ - "\3\61\11\0\11\61\16\0\20\6\20\0\126\6\2\0"+ - "\6\6\3\0\u016c\6\2\0\21\6\1\0\32\6\5\0"+ - "\113\6\3\0\13\6\7\0\15\6\1\0\4\6\3\61"+ - "\13\0\22\6\3\61\13\0\22\6\2\61\14\0\15\6"+ - "\1\0\3\6\1\0\2\61\14\0\64\6\40\61\3\0"+ - "\1\6\4\0\1\6\1\61\2\0\12\61\41\0\3\61"+ - "\2\0\12\61\6\0\131\6\7\0\51\6\1\61\1\6"+ - "\5\0\106\6\12\0\37\6\1\0\14\61\4\0\14\61"+ - "\12\0\12\61\36\6\2\0\5\6\13\0\54\6\4\0"+ - "\32\6\6\0\13\61\45\0\27\6\5\61\4\0\65\6"+ - "\12\61\1\0\35\61\2\0\13\61\6\0\12\61\15\0"+ - "\1\6\10\0\16\61\102\0\5\61\57\6\21\61\7\6"+ - "\4\0\12\61\21\0\11\61\14\0\3\61\36\6\15\61"+ - "\2\6\12\61\54\6\16\61\14\0\44\6\24\61\10\0"+ - "\12\61\3\0\3\6\12\61\44\6\2\0\11\6\7\0"+ - "\53\6\2\0\3\6\20\0\3\61\1\0\25\61\4\6"+ - "\1\61\6\6\1\61\2\6\3\61\1\6\5\0\300\6"+ - "\72\61\1\0\5\61\26\6\2\0\6\6\2\0\46\6"+ - "\2\0\6\6\2\0\10\6\1\0\1\6\1\0\1\6"+ - "\1\0\1\6\1\0\37\6\2\0\65\6\1\0\7\6"+ - "\1\0\1\6\3\0\3\6\1\0\7\6\3\0\4\6"+ - "\2\0\6\6\4\0\15\6\5\0\3\6\1\0\7\6"+ - "\53\0\2\60\25\0\2\61\23\0\1\61\34\0\1\6"+ - "\15\0\1\6\20\0\15\6\63\0\15\61\4\0\1\61"+ - "\3\0\14\61\21\0\1\6\4\0\1\6\2\0\12\6"+ - "\1\0\1\6\2\0\6\6\6\0\1\6\1\0\1\6"+ - "\1\0\1\6\1\0\20\6\2\0\4\6\5\0\5\6"+ - "\4\0\1\6\21\0\51\6\u0177\0\57\6\1\0\57\6"+ - "\1\0\205\6\6\0\4\6\3\61\2\6\14\0\46\6"+ - "\1\0\1\6\5\0\1\6\2\0\70\6\7\0\1\6"+ - "\17\0\1\61\27\6\11\0\7\6\1\0\7\6\1\0"+ - "\7\6\1\0\7\6\1\0\7\6\1\0\7\6\1\0"+ - "\7\6\1\0\7\6\1\0\40\61\5\0\3\6\31\0"+ - "\11\6\6\61\1\0\5\6\2\0\5\6\4\0\126\6"+ - "\2\0\2\61\5\6\1\0\132\6\1\0\4\6\5\0"+ - "\53\6\1\0\136\6\21\0\33\6\65\0\306\6\112\0"+ - "\360\6\20\0\215\6\103\0\56\6\2\0\15\6\3\0"+ - "\20\6\12\61\2\6\24\0\57\6\1\61\4\0\12\61"+ - "\1\0\37\6\2\61\120\6\2\61\45\0\11\6\2\0"+ - "\147\6\2\0\65\6\2\0\5\6\60\0\13\6\1\61"+ - "\3\6\1\61\4\6\1\61\27\6\5\61\30\0\64\6"+ - "\14\0\2\61\62\6\22\61\12\0\12\61\6\0\22\61"+ - "\6\6\3\0\1\6\1\0\2\6\13\61\34\6\10\61"+ - "\2\0\27\6\15\61\14\0\35\6\3\0\4\61\57\6"+ - "\16\61\16\0\1\6\12\61\6\0\5\6\1\61\12\6"+ - "\12\61\5\6\1\0\51\6\16\61\11\0\3\6\1\61"+ - "\10\6\2\61\2\0\12\61\6\0\27\6\3\0\1\6"+ - "\3\61\62\6\1\61\1\6\3\61\2\6\2\61\5\6"+ - "\2\61\1\6\1\61\1\6\30\0\3\6\2\0\13\6"+ - "\5\61\2\0\3\6\2\61\12\0\6\6\2\0\6\6"+ - "\2\0\6\6\11\0\7\6\1\0\7\6\1\0\53\6"+ - "\1\0\14\6\10\0\163\6\10\61\1\0\2\61\2\0"+ - "\12\61\6\0\244\6\14\0\27\6\4\0\61\6\4\0"+ - "\u0100\60\156\6\2\0\152\6\46\0\7\6\14\0\5\6"+ - "\5\0\1\6\1\61\12\6\1\0\15\6\1\0\5\6"+ - "\1\0\1\6\1\0\2\6\1\0\2\6\1\0\154\6"+ - "\41\0\153\6\22\0\100\6\2\0\66\6\50\0\14\6"+ - "\4\0\20\61\20\0\20\61\3\0\2\61\30\0\3\61"+ - "\40\0\5\6\1\0\207\6\23\0\12\61\7\0\32\6"+ - "\4\0\1\61\1\0\32\6\13\0\131\6\3\0\6\6"+ - "\2\0\6\6\2\0\6\6\2\0\3\6\43\0\14\6"+ - "\1\0\32\6\1\0\23\6\1\0\2\6\1\0\17\6"+ - "\2\0\16\6\42\0\173\6\105\0\65\6\210\0\1\61"+ - "\202\0\35\6\3\0\61\6\17\0\1\61\37\0\40\6"+ - "\15\0\36\6\5\0\46\6\5\61\5\0\36\6\2\0"+ - "\44\6\4\0\10\6\1\0\5\6\52\0\236\6\2\0"+ - "\12\61\6\0\44\6\4\0\44\6\4\0\50\6\10\0"+ - "\64\6\234\0\67\6\11\0\26\6\12\0\10\6\230\0"+ - "\6\6\2\0\1\6\1\0\54\6\1\0\2\6\3\0"+ - "\1\6\2\0\27\6\12\0\27\6\11\0\37\6\101\0"+ - "\23\6\1\0\2\6\12\0\26\6\12\0\32\6\106\0"+ - "\70\6\6\0\2\6\100\0\1\6\3\61\1\0\2\61"+ - "\5\0\4\61\4\6\1\0\3\6\1\0\35\6\2\0"+ - "\3\61\4\0\1\61\40\0\35\6\3\0\35\6\43\0"+ - "\10\6\1\0\34\6\2\61\31\0\66\6\12\0\26\6"+ - "\12\0\23\6\15\0\22\6\156\0\111\6\67\0\63\6"+ - "\15\0\63\6\15\0\44\6\4\61\10\0\12\61\306\0"+ - "\35\6\12\0\1\6\10\0\26\6\13\61\217\0\27\6"+ - "\11\0\3\61\65\6\17\61\37\0\12\61\17\0\4\61"+ - "\55\6\13\61\25\0\31\6\7\0\12\61\6\0\3\61"+ - "\44\6\16\61\1\0\12\61\4\0\1\6\2\61\11\0"+ - "\43\6\1\61\2\0\1\6\11\0\3\61\60\6\16\61"+ - "\4\6\4\0\4\61\3\0\12\61\1\6\1\0\1\6"+ - "\43\0\22\6\1\0\31\6\14\61\6\0\1\61\101\0"+ - "\7\6\1\0\1\6\1\0\4\6\1\0\17\6\1\0"+ - "\12\6\7\0\57\6\14\61\5\0\12\61\6\0\4\61"+ - "\1\0\10\6\2\0\2\6\2\0\26\6\1\0\7\6"+ - "\1\0\2\6\1\0\5\6\1\0\2\61\1\6\7\61"+ - "\2\0\2\61\2\0\3\61\2\0\1\6\6\0\1\61"+ - "\5\0\5\6\2\61\2\0\7\61\3\0\5\61\213\0"+ - "\65\6\22\61\4\6\5\0\12\61\4\0\1\61\1\6"+ - "\40\0\60\6\24\61\2\6\1\0\1\6\10\0\12\61"+ - "\246\0\57\6\7\61\2\0\11\61\27\0\4\6\2\61"+ - "\42\0\60\6\21\61\3\0\1\6\13\0\12\61\46\0"+ - "\53\6\15\61\1\6\7\0\12\61\66\0\33\6\2\0"+ - "\17\61\4\0\12\61\306\0\54\6\17\61\145\0\100\6"+ - "\12\61\25\0\1\6\240\0\10\6\2\0\47\6\7\61"+ - "\2\0\7\61\1\6\1\0\1\6\1\61\33\0\1\6"+ - "\12\61\50\6\7\61\1\6\4\61\10\0\1\61\10\0"+ - "\1\6\13\61\56\6\20\61\3\0\1\6\42\0\71\6"+ - "\7\0\11\6\1\0\45\6\10\61\1\0\10\61\1\6"+ - "\17\0\12\61\30\0\36\6\2\0\26\61\1\0\16\61"+ - "\111\0\7\6\1\0\2\6\1\0\46\6\6\61\3\0"+ - "\1\61\1\0\2\61\1\0\7\61\1\6\1\61\10\0"+ - "\12\61\6\0\6\6\1\0\2\6\1\0\40\6\5\61"+ - "\1\0\2\61\1\0\5\61\1\6\7\0\12\61\u0136\0"+ - "\23\6\4\61\11\0\232\6\146\0\157\6\21\0\304\6"+ - "\274\0\57\6\321\0\107\6\271\0\71\6\7\0\37\6"+ - "\1\0\12\61\146\0\36\6\2\0\5\61\13\0\60\6"+ - "\7\61\11\0\4\6\14\0\12\61\11\0\25\6\5\0"+ - "\23\6\260\0\100\6\200\0\113\6\4\0\1\61\1\6"+ - "\67\61\7\0\4\61\15\6\100\0\2\6\1\0\1\6"+ - "\34\0\370\6\10\0\363\6\15\0\37\6\61\0\3\6"+ - "\21\0\4\6\10\0\u018c\6\4\0\153\6\5\0\15\6"+ - "\3\0\11\6\7\0\12\6\3\0\2\61\306\0\5\61"+ - "\3\0\6\61\10\0\10\61\2\0\7\61\36\0\4\61"+ - "\224\0\3\61\273\0\125\6\1\0\107\6\1\0\2\6"+ - "\2\0\1\6\2\0\2\6\2\0\4\6\1\0\14\6"+ - "\1\0\1\6\1\0\7\6\1\0\101\6\1\0\4\6"+ - "\2\0\10\6\1\0\7\6\1\0\34\6\1\0\4\6"+ - "\1\0\5\6\1\0\1\6\3\0\7\6\1\0\u0154\6"+ - "\2\0\31\6\1\0\31\6\1\0\37\6\1\0\31\6"+ - "\1\0\37\6\1\0\31\6\1\0\37\6\1\0\31\6"+ - "\1\0\37\6\1\0\31\6\1\0\10\6\2\0\151\61"+ - "\4\0\62\61\10\0\1\61\16\0\1\61\26\0\5\61"+ - "\1\0\17\61\120\0\7\61\1\0\21\61\2\0\7\61"+ - "\1\0\2\61\1\0\5\61\325\0\55\6\3\0\7\61"+ - "\7\6\2\0\12\61\4\0\1\6\u0171\0\54\6\16\61"+ - "\6\0\305\6\13\0\7\61\51\0\104\6\7\61\1\6"+ - "\4\0\12\61\246\0\4\6\1\0\33\6\1\0\2\6"+ - "\1\0\1\6\2\0\1\6\1\0\12\6\1\0\4\6"+ - "\1\0\1\6\1\0\1\6\6\0\1\6\4\0\1\6"+ - "\1\0\1\6\1\0\1\6\1\0\3\6\1\0\2\6"+ - "\1\0\1\6\2\0\1\6\1\0\1\6\1\0\1\6"+ - "\1\0\1\6\1\0\1\6\1\0\2\6\1\0\1\6"+ - "\2\0\4\6\1\0\7\6\1\0\4\6\1\0\4\6"+ - "\1\0\1\6\1\0\12\6\1\0\21\6\5\0\3\6"+ - "\1\0\5\6\1\0\21\6\104\0\327\6\51\0\65\6"+ - "\13\0\336\6\2\0\u0182\6\16\0\u0131\6\37\0\36\6"+ - "\342\0\360\61\20\0"; - - private static int [] zzUnpackcmap_blocks() { - int [] result = new int[29184]; - int offset = 0; - offset = zzUnpackcmap_blocks(ZZ_CMAP_BLOCKS_PACKED_0, offset, result); - return result; - } - - private static int zzUnpackcmap_blocks(String packed, int offset, int [] result) { - int i = 0; /* index in packed string */ - int j = offset; /* index in unpacked array */ - int l = packed.length(); - while (i < l) { - int count = packed.charAt(i++); - int value = packed.charAt(i++); - do result[j++] = value; while (--count > 0); - } - return j; - } - - /** - * Translates DFA states to action switch labels. - */ - private static final int [] ZZ_ACTION = zzUnpackAction(); - - private static final String ZZ_ACTION_PACKED_0 = - "\1\0\1\1\1\2\1\3\1\4\1\5\1\6\1\7"+ - "\1\10\1\11\1\1\1\12\1\1\1\13\1\14\1\15"+ - "\1\16\1\17\1\20\1\21\1\22\1\23\1\24\14\5"+ - "\1\25\1\26\1\27\1\3\1\0\1\30\1\31\2\0"+ - "\1\32\1\0\1\33\1\34\10\5\1\35\3\5\1\36"+ - "\7\5\1\37\2\0\1\13\1\5\1\40\1\41\20\5"+ - "\3\0\1\42\1\5\1\43\3\5\1\44\5\5\1\45"+ - "\4\5\1\46\1\42\1\0\1\47\1\50\2\5\1\51"+ - "\2\5\1\52\1\5\1\53\2\5\1\54\1\55\1\5"+ - "\1\47\1\5\1\56\1\57\2\5\1\60\1\61\1\5"+ - "\1\62\2\5\1\63\2\5\1\64\1\65"; - - private static int [] zzUnpackAction() { - int [] result = new int[146]; - int offset = 0; - offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result); - return result; - } - - private static int zzUnpackAction(String packed, int offset, int [] result) { - int i = 0; /* index in packed string */ - int j = offset; /* index in unpacked array */ - int l = packed.length(); - while (i < l) { - int count = packed.charAt(i++); - int value = packed.charAt(i++); - do result[j++] = value; while (--count > 0); - } - return j; - } - - - /** - * Translates a state to a row index in the transition table - */ - private static final int [] ZZ_ROWMAP = zzUnpackRowMap(); - - private static final String ZZ_ROWMAP_PACKED_0 = - "\0\0\0\62\0\144\0\226\0\310\0\372\0\62\0\62"+ - "\0\62\0\62\0\u012c\0\u015e\0\u0190\0\u01c2\0\u01f4\0\62"+ - "\0\62\0\62\0\62\0\62\0\u0226\0\62\0\62\0\u0258"+ - "\0\u028a\0\u02bc\0\u02ee\0\u0320\0\u0352\0\u0384\0\u03b6\0\u03e8"+ - "\0\u041a\0\u044c\0\u047e\0\62\0\62\0\62\0\62\0\u04b0"+ - "\0\62\0\62\0\u04e2\0\u0514\0\u0546\0\u0578\0\62\0\62"+ - "\0\u05aa\0\u05dc\0\u060e\0\u0640\0\u0672\0\u06a4\0\u06d6\0\u0708"+ - "\0\372\0\u073a\0\u076c\0\u079e\0\372\0\u07d0\0\u0802\0\u0834"+ - "\0\u0866\0\u0898\0\u08ca\0\u08fc\0\62\0\u092e\0\u0960\0\u0578"+ - "\0\u0992\0\372\0\372\0\u09c4\0\u09f6\0\u0a28\0\u0a5a\0\u0a8c"+ - "\0\u0abe\0\u0af0\0\u0b22\0\u0b54\0\u0b86\0\u0bb8\0\u0bea\0\u0c1c"+ - "\0\u0c4e\0\u0c80\0\u0cb2\0\u0ce4\0\u0d16\0\u0d48\0\u0d16\0\u0d7a"+ - "\0\372\0\u0dac\0\u0dde\0\u0e10\0\372\0\u0e42\0\u0e74\0\u0ea6"+ - "\0\u0ed8\0\u0f0a\0\372\0\u0f3c\0\u0f6e\0\u0fa0\0\u0fd2\0\372"+ - "\0\62\0\u1004\0\u092e\0\372\0\u1036\0\u1068\0\372\0\u109a"+ - "\0\u10cc\0\372\0\u10fe\0\372\0\u1130\0\u1162\0\372\0\372"+ - "\0\u1194\0\62\0\u11c6\0\372\0\372\0\u11f8\0\u122a\0\372"+ - "\0\372\0\u125c\0\372\0\u128e\0\u12c0\0\372\0\u12f2\0\u1324"+ - "\0\372\0\372"; - - private static int [] zzUnpackRowMap() { - int [] result = new int[146]; - int offset = 0; - offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result); - return result; - } - - private static int zzUnpackRowMap(String packed, int offset, int [] result) { - int i = 0; /* index in packed string */ - int j = offset; /* index in unpacked array */ - int l = packed.length() - 1; - while (i < l) { - int high = packed.charAt(i++) << 16; - result[j++] = high | packed.charAt(i++); - } - return j; - } - - /** - * The transition table of the DFA - */ - private static final int [] ZZ_TRANS = zzUnpacktrans(); - - private static final String ZZ_TRANS_PACKED_0 = - "\1\2\3\3\1\4\1\5\1\6\1\7\1\10\1\11"+ - "\1\2\1\12\1\13\1\14\1\15\1\16\1\17\1\20"+ - "\1\21\1\22\1\23\1\24\1\25\1\26\1\2\1\27"+ - "\1\30\1\6\1\31\1\32\1\33\1\6\1\34\1\6"+ - "\1\35\1\36\1\37\2\6\1\40\1\41\1\42\1\43"+ - "\2\6\1\44\1\45\1\46\2\2\63\0\3\3\56\0"+ - "\2\4\1\0\1\4\1\47\23\4\1\50\31\4\27\0"+ - "\1\51\25\0\1\52\12\0\1\6\10\0\1\6\12\0"+ - "\23\6\4\0\1\6\17\0\1\16\57\0\1\53\56\0"+ - "\1\54\3\0\1\55\60\0\1\56\1\0\1\16\62\0"+ - "\1\57\67\0\1\60\41\0\1\6\10\0\1\6\12\0"+ - "\7\6\1\61\1\6\1\62\11\6\4\0\1\6\6\0"+ - "\1\6\10\0\1\6\12\0\3\6\1\63\17\6\4\0"+ - "\1\6\6\0\1\6\10\0\1\6\12\0\11\6\1\64"+ - "\7\6\1\65\1\6\4\0\1\6\6\0\1\6\10\0"+ - "\1\6\12\0\1\66\22\6\4\0\1\6\6\0\1\6"+ - "\10\0\1\6\12\0\10\6\1\67\1\70\3\6\1\71"+ - "\5\6\4\0\1\6\6\0\1\6\10\0\1\6\12\0"+ - "\12\6\1\72\10\6\4\0\1\6\6\0\1\6\10\0"+ - "\1\6\12\0\1\73\2\6\1\74\17\6\4\0\1\6"+ - "\6\0\1\6\10\0\1\6\12\0\13\6\1\75\7\6"+ - "\4\0\1\6\6\0\1\6\10\0\1\6\12\0\1\6"+ - "\1\76\21\6\4\0\1\6\6\0\1\6\10\0\1\6"+ - "\12\0\14\6\1\77\5\6\1\100\4\0\1\6\6\0"+ - "\1\6\10\0\1\6\12\0\11\6\1\101\3\6\1\102"+ - "\5\6\4\0\1\6\6\0\1\6\10\0\1\6\12\0"+ - "\1\103\11\6\1\104\10\6\4\0\1\6\2\4\1\0"+ - "\57\4\15\0\1\105\44\0\12\106\1\107\47\106\2\55"+ - "\2\0\54\55\1\0\1\55\17\0\1\110\50\0\1\6"+ - "\10\0\1\6\12\0\6\6\1\111\14\6\4\0\1\6"+ - "\6\0\1\6\10\0\1\6\12\0\22\6\1\112\4\0"+ - "\1\6\6\0\1\6\10\0\1\6\12\0\1\6\1\113"+ - "\21\6\4\0\1\6\6\0\1\6\10\0\1\6\12\0"+ - "\17\6\1\114\3\6\4\0\1\6\6\0\1\6\10\0"+ - "\1\6\12\0\16\6\1\115\4\6\4\0\1\6\6\0"+ - "\1\6\10\0\1\6\12\0\7\6\1\116\13\6\4\0"+ - "\1\6\6\0\1\6\10\0\1\6\12\0\13\6\1\117"+ - "\7\6\4\0\1\6\6\0\1\6\10\0\1\6\12\0"+ - "\6\6\1\120\7\6\1\121\4\6\4\0\1\6\6\0"+ - "\1\6\10\0\1\6\12\0\2\6\1\122\20\6\4\0"+ - "\1\6\6\0\1\6\10\0\1\6\12\0\10\6\1\123"+ - "\12\6\4\0\1\6\6\0\1\6\10\0\1\6\12\0"+ - "\20\6\1\124\2\6\4\0\1\6\6\0\1\6\10\0"+ - "\1\6\12\0\1\125\22\6\4\0\1\6\6\0\1\6"+ - "\10\0\1\6\12\0\17\6\1\126\3\6\4\0\1\6"+ - "\6\0\1\6\10\0\1\6\12\0\13\6\1\127\7\6"+ - "\4\0\1\6\6\0\1\6\10\0\1\6\12\0\6\6"+ - "\1\130\14\6\4\0\1\6\6\0\1\6\10\0\1\6"+ - "\12\0\6\6\1\131\14\6\4\0\1\6\6\0\1\6"+ - "\10\0\1\6\12\0\7\6\1\132\13\6\4\0\1\6"+ - "\6\0\1\6\10\0\1\6\12\0\6\6\1\133\14\6"+ - "\4\0\1\6\12\106\1\134\47\106\12\135\1\136\3\135"+ - "\1\137\43\135\6\0\1\6\10\0\1\6\12\0\1\140"+ - "\22\6\4\0\1\6\6\0\1\6\10\0\1\6\12\0"+ - "\10\6\1\141\12\6\4\0\1\6\6\0\1\6\10\0"+ - "\1\6\12\0\3\6\1\142\17\6\4\0\1\6\6\0"+ - "\1\6\10\0\1\6\12\0\15\6\1\143\5\6\4\0"+ - "\1\6\6\0\1\6\10\0\1\6\12\0\12\6\1\144"+ - "\10\6\4\0\1\6\6\0\1\6\10\0\1\6\12\0"+ - "\16\6\1\145\4\6\4\0\1\6\6\0\1\6\10\0"+ - "\1\6\12\0\3\6\1\146\17\6\4\0\1\6\6\0"+ - "\1\6\10\0\1\6\12\0\3\6\1\147\17\6\4\0"+ - "\1\6\6\0\1\6\10\0\1\6\12\0\3\6\1\150"+ - "\17\6\4\0\1\6\6\0\1\6\10\0\1\6\12\0"+ - "\3\6\1\151\17\6\4\0\1\6\6\0\1\6\10\0"+ - "\1\6\12\0\7\6\1\152\13\6\4\0\1\6\6\0"+ - "\1\6\10\0\1\6\12\0\3\6\1\153\17\6\4\0"+ - "\1\6\6\0\1\6\10\0\1\6\12\0\3\6\1\154"+ - "\17\6\4\0\1\6\6\0\1\6\10\0\1\6\12\0"+ - "\12\6\1\155\10\6\4\0\1\6\6\0\1\6\10\0"+ - "\1\6\12\0\11\6\1\156\11\6\4\0\1\6\6\0"+ - "\1\6\10\0\1\6\12\0\17\6\1\157\3\6\4\0"+ - "\1\6\6\0\1\6\10\0\1\6\12\0\2\6\1\160"+ - "\20\6\4\0\1\6\16\106\1\161\43\106\12\135\1\162"+ - "\61\135\1\107\3\135\1\163\43\135\6\0\1\6\10\0"+ - "\1\6\12\0\15\6\1\164\5\6\4\0\1\6\6\0"+ - "\1\6\10\0\1\6\12\0\11\6\1\165\2\6\1\166"+ - "\6\6\4\0\1\6\6\0\1\6\10\0\1\6\12\0"+ - "\3\6\1\167\17\6\4\0\1\6\6\0\1\6\10\0"+ - "\1\6\12\0\14\6\1\170\6\6\4\0\1\6\6\0"+ - "\1\6\10\0\1\6\12\0\14\6\1\171\6\6\4\0"+ - "\1\6\6\0\1\6\10\0\1\6\12\0\7\6\1\172"+ - "\13\6\4\0\1\6\6\0\1\6\10\0\1\6\12\0"+ - "\15\6\1\173\5\6\4\0\1\6\6\0\1\6\10\0"+ - "\1\6\12\0\14\6\1\174\6\6\4\0\1\6\6\0"+ - "\1\6\10\0\1\6\12\0\1\175\22\6\4\0\1\6"+ - "\6\0\1\6\10\0\1\6\12\0\12\6\1\176\10\6"+ - "\4\0\1\6\6\0\1\6\10\0\1\6\12\0\11\6"+ - "\1\177\11\6\4\0\1\6\6\0\1\6\10\0\1\6"+ - "\12\0\5\6\1\200\15\6\4\0\1\6\6\0\1\6"+ - "\10\0\1\6\12\0\3\6\1\201\17\6\4\0\1\6"+ - "\16\135\1\202\43\135\6\0\1\6\10\0\1\6\12\0"+ - "\2\6\1\203\20\6\4\0\1\6\6\0\1\6\10\0"+ - "\1\6\12\0\11\6\1\204\11\6\4\0\1\6\6\0"+ - "\1\6\10\0\1\6\12\0\16\6\1\205\4\6\4\0"+ - "\1\6\6\0\1\6\10\0\1\6\12\0\4\6\1\206"+ - "\16\6\4\0\1\6\6\0\1\6\10\0\1\6\12\0"+ - "\13\6\1\207\7\6\4\0\1\6\6\0\1\6\10\0"+ - "\1\6\12\0\14\6\1\210\6\6\4\0\1\6\6\0"+ - "\1\6\10\0\1\6\12\0\4\6\1\211\16\6\4\0"+ - "\1\6\6\0\1\6\10\0\1\6\12\0\12\6\1\212"+ - "\10\6\4\0\1\6\6\0\1\6\10\0\1\6\12\0"+ - "\15\6\1\213\5\6\4\0\1\6\6\0\1\6\10\0"+ - "\1\6\12\0\1\214\22\6\4\0\1\6\6\0\1\6"+ - "\10\0\1\6\12\0\1\215\22\6\4\0\1\6\6\0"+ - "\1\6\10\0\1\6\12\0\4\6\1\216\16\6\4\0"+ - "\1\6\6\0\1\6\10\0\1\6\12\0\1\6\1\217"+ - "\21\6\4\0\1\6\6\0\1\6\10\0\1\6\12\0"+ - "\1\6\1\220\21\6\4\0\1\6\6\0\1\6\10\0"+ - "\1\6\12\0\3\6\1\221\17\6\4\0\1\6\6\0"+ - "\1\6\10\0\1\6\12\0\3\6\1\222\17\6\4\0"+ - "\1\6"; - - private static int [] zzUnpacktrans() { - int [] result = new int[4950]; - int offset = 0; - offset = zzUnpacktrans(ZZ_TRANS_PACKED_0, offset, result); - return result; - } - - private static int zzUnpacktrans(String packed, int offset, int [] result) { - int i = 0; /* index in packed string */ - int j = offset; /* index in unpacked array */ - int l = packed.length(); - while (i < l) { - int count = packed.charAt(i++); - int value = packed.charAt(i++); - value--; - do result[j++] = value; while (--count > 0); - } - return j; - } - - - /* error codes */ - private static final int ZZ_UNKNOWN_ERROR = 0; - private static final int ZZ_NO_MATCH = 1; - private static final int ZZ_PUSHBACK_2BIG = 2; - - /* error messages for the codes above */ - private static final String[] ZZ_ERROR_MSG = { - "Unknown internal scanner error", - "Error: could not match input", - "Error: pushback value was too large" - }; - - /** - * ZZ_ATTRIBUTE[aState] contains the attributes of state {@code aState} - */ - private static final int [] ZZ_ATTRIBUTE = zzUnpackAttribute(); - - private static final String ZZ_ATTRIBUTE_PACKED_0 = - "\1\0\1\11\4\1\4\11\5\1\5\11\1\1\2\11"+ - "\14\1\4\11\1\0\2\11\2\0\1\1\1\0\2\11"+ - "\24\1\1\11\2\0\24\1\3\0\22\1\1\11\1\0"+ - "\17\1\1\11\20\1"; - - private static int [] zzUnpackAttribute() { - int [] result = new int[146]; - int offset = 0; - offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result); - return result; - } - - private static int zzUnpackAttribute(String packed, int offset, int [] result) { - int i = 0; /* index in packed string */ - int j = offset; /* index in unpacked array */ - int l = packed.length(); - while (i < l) { - int count = packed.charAt(i++); - int value = packed.charAt(i++); - do result[j++] = value; while (--count > 0); - } - return j; - } - - /** the input device */ - private java.io.Reader zzReader; - - /** the current state of the DFA */ - private int zzState; - - /** the current lexical state */ - private int zzLexicalState = YYINITIAL; - - /** this buffer contains the current text to be matched and is - the source of the yytext() string */ - private CharSequence zzBuffer = ""; - - /** the textposition at the last accepting state */ - private int zzMarkedPos; - - /** the current text position in the buffer */ - private int zzCurrentPos; - - /** startRead marks the beginning of the yytext() string in the buffer */ - private int zzStartRead; - - /** endRead marks the last character in the buffer, that has been read - from input */ - private int zzEndRead; - - /** zzAtEOF == true <=> the scanner is at the EOF */ - private boolean zzAtEOF; - - /** Number of newlines encountered up to the start of the matched text. */ - @SuppressWarnings("unused") - private int yyline; - - /** Number of characters from the last newline up to the start of the matched text. */ - @SuppressWarnings("unused") - protected int yycolumn; - - /** Number of characters up to the start of the matched text. */ - @SuppressWarnings("unused") - private long yychar; - - /** Whether the scanner is currently at the beginning of a line. */ - @SuppressWarnings("unused") - private boolean zzAtBOL = true; - - /** Whether the user-EOF-code has already been executed. */ - @SuppressWarnings("unused") - private boolean zzEOFDone; - - /* user code: */ - public _TypeSpecLexer() { - this((java.io.Reader)null); - } - - - /** - * Creates a new scanner - * - * @param in the java.io.Reader to read input from. - */ - public _TypeSpecLexer(java.io.Reader in) { - this.zzReader = in; - } - - - /** Returns the maximum size of the scanner buffer, which limits the size of tokens. */ - private int zzMaxBufferLen() { - return Integer.MAX_VALUE; - } - - /** Whether the scanner buffer can grow to accommodate a larger token. */ - private boolean zzCanGrow() { - return true; - } - - /** - * Translates raw input code points to DFA table row - */ - private static int zzCMap(int input) { - int offset = input & 255; - return offset == input ? ZZ_CMAP_BLOCKS[offset] : ZZ_CMAP_BLOCKS[ZZ_CMAP_TOP[input >> 8] | offset]; - } - - public final int getTokenStart() { - return zzStartRead; - } - - public final int getTokenEnd() { - return getTokenStart() + yylength(); - } - - public void reset(CharSequence buffer, int start, int end, int initialState) { - zzBuffer = buffer; - zzCurrentPos = zzMarkedPos = zzStartRead = start; - zzAtEOF = false; - zzAtBOL = true; - zzEndRead = end; - yybegin(initialState); - } - - /** - * Refills the input buffer. - * - * @return {@code false}, iff there was new input. - * - * @exception java.io.IOException if any I/O-Error occurs - */ - private boolean zzRefill() throws java.io.IOException { - return true; - } - - - /** - * Returns the current lexical state. - */ - public final int yystate() { - return zzLexicalState; - } - - - /** - * Enters a new lexical state - * - * @param newState the new lexical state - */ - public final void yybegin(int newState) { - zzLexicalState = newState; - } - - - /** - * Returns the text matched by the current regular expression. - */ - public final CharSequence yytext() { - return zzBuffer.subSequence(zzStartRead, zzMarkedPos); - } - - - /** - * Returns the character at position {@code pos} from the - * matched text. - * - * It is equivalent to yytext().charAt(pos), but faster - * - * @param pos the position of the character to fetch. - * A value from 0 to yylength()-1. - * - * @return the character at position pos - */ - public final char yycharat(int pos) { - return zzBuffer.charAt(zzStartRead+pos); - } - - - /** - * Returns the length of the matched text region. - */ - public final int yylength() { - return zzMarkedPos-zzStartRead; - } - - - /** - * Reports an error that occurred while scanning. - * - * In a wellformed scanner (no or only correct usage of - * yypushback(int) and a match-all fallback rule) this method - * will only be called with things that "Can't Possibly Happen". - * If this method is called, something is seriously wrong - * (e.g. a JFlex bug producing a faulty scanner etc.). - * - * Usual syntax/scanner level error handling should be done - * in error fallback rules. - * - * @param errorCode the code of the errormessage to display - */ - private void zzScanError(int errorCode) { - String message; - try { - message = ZZ_ERROR_MSG[errorCode]; - } - catch (ArrayIndexOutOfBoundsException e) { - message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR]; - } - - throw new Error(message); - } - - - /** - * Pushes the specified amount of characters back into the input stream. - * - * They will be read again by then next call of the scanning method - * - * @param number the number of characters to be read again. - * This number must not be greater than yylength()! - */ - public void yypushback(int number) { - if ( number > yylength() ) - zzScanError(ZZ_PUSHBACK_2BIG); - - zzMarkedPos -= number; - } - - - /** - * Resumes scanning until the next regular expression is matched, - * the end of input is encountered or an I/O-Error occurs. - * - * @return the next token - * @exception java.io.IOException if any I/O-Error occurs - */ - public IElementType advance() throws java.io.IOException - { - int zzInput; - int zzAction; - - // cached fields: - int zzCurrentPosL; - int zzMarkedPosL; - int zzEndReadL = zzEndRead; - CharSequence zzBufferL = zzBuffer; - - int [] zzTransL = ZZ_TRANS; - int [] zzRowMapL = ZZ_ROWMAP; - int [] zzAttrL = ZZ_ATTRIBUTE; - - while (true) { - zzMarkedPosL = zzMarkedPos; - - zzAction = -1; - - zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL; - - zzState = ZZ_LEXSTATE[zzLexicalState]; - - // set up zzAction for empty match case: - int zzAttributes = zzAttrL[zzState]; - if ( (zzAttributes & 1) == 1 ) { - zzAction = zzState; - } - - - zzForAction: { - while (true) { - - if (zzCurrentPosL < zzEndReadL) { - zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL); - zzCurrentPosL += Character.charCount(zzInput); - } - else if (zzAtEOF) { - zzInput = YYEOF; - break zzForAction; - } - else { - // store back cached positions - zzCurrentPos = zzCurrentPosL; - zzMarkedPos = zzMarkedPosL; - boolean eof = zzRefill(); - // get translated positions and possibly new buffer - zzCurrentPosL = zzCurrentPos; - zzMarkedPosL = zzMarkedPos; - zzBufferL = zzBuffer; - zzEndReadL = zzEndRead; - if (eof) { - zzInput = YYEOF; - break zzForAction; - } - else { - zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL); - zzCurrentPosL += Character.charCount(zzInput); - } - } - int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMap(zzInput) ]; - if (zzNext == -1) break zzForAction; - zzState = zzNext; - - zzAttributes = zzAttrL[zzState]; - if ( (zzAttributes & 1) == 1 ) { - zzAction = zzState; - zzMarkedPosL = zzCurrentPosL; - if ( (zzAttributes & 8) == 8 ) break zzForAction; - } - - } - } - - // store back cached position - zzMarkedPos = zzMarkedPosL; - - if (zzInput == YYEOF && zzStartRead == zzCurrentPos) { - zzAtEOF = true; - return null; - } - else { - switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) { - case 1: - { return BAD_CHARACTER; - } - // fall through - case 54: break; - case 2: - { return WHITE_SPACE; - } - // fall through - case 55: break; - case 3: - { return STRING_LITERAL; - } - // fall through - case 56: break; - case 4: - { return HASH; - } - // fall through - case 57: break; - case 5: - { return IDENT; - } - // fall through - case 58: break; - case 6: - { return AMP; - } - // fall through - case 59: break; - case 7: - { return LPAREN; - } - // fall through - case 60: break; - case 8: - { return RPAREN; - } - // fall through - case 61: break; - case 9: - { return COMMA; - } - // fall through - case 62: break; - case 10: - { return DOT; - } - // fall through - case 63: break; - case 11: - { return NUMERIC_LITERAL; - } - // fall through - case 64: break; - case 12: - { return COLON; - } - // fall through - case 65: break; - case 13: - { return SEMICOLON; - } - // fall through - case 66: break; - case 14: - { return LT; - } - // fall through - case 67: break; - case 15: - { return EQ; - } - // fall through - case 68: break; - case 16: - { return GT; - } - // fall through - case 69: break; - case 17: - { return QUEST; - } - // fall through - case 70: break; - case 18: - { return AT; - } - // fall through - case 71: break; - case 19: - { return LBRACKET; - } - // fall through - case 72: break; - case 20: - { return RBRACKET; - } - // fall through - case 73: break; - case 21: - { return LBRACE; - } - // fall through - case 74: break; - case 22: - { return PIPE; - } - // fall through - case 75: break; - case 23: - { return RBRACE; - } - // fall through - case 76: break; - case 24: - { return HASHLBRACKET; - } - // fall through - case 77: break; - case 25: - { return HASHLBRACE; - } - // fall through - case 78: break; - case 26: - { return LINE_COMMENT; - } - // fall through - case 79: break; - case 27: - { return COLONCOLON; - } - // fall through - case 80: break; - case 28: - { return ATAT; - } - // fall through - case 81: break; - case 29: - { return IS; - } - // fall through - case 82: break; - case 30: - { return OP; - } - // fall through - case 83: break; - case 31: - { return DOTDOTDOT; - } - // fall through - case 84: break; - case 32: - { return ANY; - } - // fall through - case 85: break; - case 33: - { return DEC; - } - // fall through - case 86: break; - case 34: - { return BLOCK_COMMENT; - } - // fall through - case 87: break; - case 35: - { return ENUM; - } - // fall through - case 88: break; - case 36: - { return INIT; - } - // fall through - case 89: break; - case 37: - { return TRUE; - } - // fall through - case 90: break; - case 38: - { return VOID; - } - // fall through - case 91: break; - case 39: - { return DOC_COMMENT; - } - // fall through - case 92: break; - case 40: - { return ALIAS; - } - // fall through - case 93: break; - case 41: - { return FALSE; - } - // fall through - case 94: break; - case 42: - { return MODEL; - } - // fall through - case 95: break; - case 43: - { return NEVER; - } - // fall through - case 96: break; - case 44: - { return UNION; - } - // fall through - case 97: break; - case 45: - { return USING; - } - // fall through - case 98: break; - case 46: - { return EXTERN; - } - // fall through - case 99: break; - case 47: - { return IMPORT; - } - // fall through - case 100: break; - case 48: - { return SCALAR; - } - // fall through - case 101: break; - case 49: - { return TYPEOF; - } - // fall through - case 102: break; - case 50: - { return EXTENDS; - } - // fall through - case 103: break; - case 51: - { return VALUEOF; - } - // fall through - case 104: break; - case 52: - { return INTERFACE; - } - // fall through - case 105: break; - case 53: - { return NAMESPACE; - } - // fall through - case 106: break; - default: - zzScanError(ZZ_NO_MATCH); - } - } - } - } - - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecAliasStatement.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecAliasStatement.java deleted file mode 100644 index 7bc3c5c..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecAliasStatement.java +++ /dev/null @@ -1,26 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; -import com.intellij.navigation.ItemPresentation; - -public interface TypeSpecAliasStatement extends TypeSpecStatement { - - @NotNull - List getDecoratorLikeList(); - - @Nullable - TypeSpecExpression getExpression(); - - @Nullable - TypeSpecIdentifier getIdentifier(); - - @Nullable - TypeSpecTypeParameterList getTypeParameterList(); - - @Nullable - ItemPresentation getPresentation(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecArgumentList.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecArgumentList.java deleted file mode 100644 index 2bd6f53..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecArgumentList.java +++ /dev/null @@ -1,13 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecArgumentList extends TypeSpecElement { - - @NotNull - List getExpressionList(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecArrayExpression.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecArrayExpression.java deleted file mode 100644 index 40fa1a3..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecArrayExpression.java +++ /dev/null @@ -1,13 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecArrayExpression extends TypeSpecOperatorExpression { - - @NotNull - TypeSpecNonArrayExpression getNonArrayExpression(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecArrayLiteral.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecArrayLiteral.java deleted file mode 100644 index 68524b3..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecArrayLiteral.java +++ /dev/null @@ -1,13 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecArrayLiteral extends TypeSpecNonArrayExpression { - - @NotNull - List getExpressionList(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecAugmentDecoratorStatement.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecAugmentDecoratorStatement.java deleted file mode 100644 index a23c489..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecAugmentDecoratorStatement.java +++ /dev/null @@ -1,16 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecAugmentDecoratorStatement extends TypeSpecStatement { - - @Nullable - TypeSpecArgumentList getArgumentList(); - - @Nullable - TypeSpecPath getPath(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecCallExpression.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecCallExpression.java deleted file mode 100644 index 75b8d56..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecCallExpression.java +++ /dev/null @@ -1,16 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecCallExpression extends TypeSpecOperatorExpression { - - @NotNull - TypeSpecArgumentList getArgumentList(); - - @NotNull - TypeSpecNonArrayExpression getNonArrayExpression(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecDecorator.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecDecorator.java deleted file mode 100644 index 0a05d09..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecDecorator.java +++ /dev/null @@ -1,16 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecDecorator extends TypeSpecElement { - - @Nullable - TypeSpecArgumentList getArgumentList(); - - @NotNull - TypeSpecPath getPath(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecDecoratorLike.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecDecoratorLike.java deleted file mode 100644 index 28f5fcc..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecDecoratorLike.java +++ /dev/null @@ -1,16 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecDecoratorLike extends TypeSpecElement { - - @Nullable - TypeSpecDecorator getDecorator(); - - @Nullable - TypeSpecDirective getDirective(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecDirective.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecDirective.java deleted file mode 100644 index 3695633..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecDirective.java +++ /dev/null @@ -1,16 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecDirective extends TypeSpecElement { - - @NotNull - TypeSpecIdentifier getIdentifier(); - - @NotNull - List getLiteralExpressionList(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecElementTypes.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecElementTypes.java deleted file mode 100644 index e52e116..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecElementTypes.java +++ /dev/null @@ -1,320 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import com.intellij.psi.tree.IElementType; -import com.intellij.psi.PsiElement; -import com.intellij.lang.ASTNode; -import jp.s6n.idea.typespec.lang.psi.impl.*; - -public interface TypeSpecElementTypes { - - IElementType ALIAS_STATEMENT = new TypeSpecElementType("ALIAS_STATEMENT"); - IElementType ARGUMENT_LIST = new TypeSpecElementType("ARGUMENT_LIST"); - IElementType ARRAY_EXPRESSION = new TypeSpecElementType("ARRAY_EXPRESSION"); - IElementType ARRAY_LITERAL = new TypeSpecElementType("ARRAY_LITERAL"); - IElementType AUGMENT_DECORATOR_STATEMENT = new TypeSpecElementType("AUGMENT_DECORATOR_STATEMENT"); - IElementType CALL_EXPRESSION = new TypeSpecElementType("CALL_EXPRESSION"); - IElementType DECORATOR = new TypeSpecElementType("DECORATOR"); - IElementType DECORATOR_LIKE = new TypeSpecElementType("DECORATOR_LIKE"); - IElementType DIRECTIVE = new TypeSpecElementType("DIRECTIVE"); - IElementType ENUM_STATEMENT = new TypeSpecElementType("ENUM_STATEMENT"); - IElementType ENUM_VARIANT = new TypeSpecElementType("ENUM_VARIANT"); - IElementType ENUM_VARIANTS_BLOCK = new TypeSpecElementType("ENUM_VARIANTS_BLOCK"); - IElementType EXPRESSION = new TypeSpecElementType("EXPRESSION"); - IElementType EXTERN_DECORATOR_STATEMENT = new TypeSpecElementType("EXTERN_DECORATOR_STATEMENT"); - IElementType IDENTIFIER = new TypeSpecElementType("IDENTIFIER"); - IElementType IMPORT_STATEMENT = new TypeSpecElementType("IMPORT_STATEMENT"); - IElementType INTERFACE_EXTENDS = new TypeSpecElementType("INTERFACE_EXTENDS"); - IElementType INTERFACE_OPERATION = new TypeSpecElementType("INTERFACE_OPERATION"); - IElementType INTERFACE_OPERATIONS_BLOCK = new TypeSpecElementType("INTERFACE_OPERATIONS_BLOCK"); - IElementType INTERFACE_STATEMENT = new TypeSpecElementType("INTERFACE_STATEMENT"); - IElementType INTERSECTION_EXPRESSION = new TypeSpecElementType("INTERSECTION_EXPRESSION"); - IElementType KEYWORD_EXPRESSION = new TypeSpecElementType("KEYWORD_EXPRESSION"); - IElementType LITERAL_EXPRESSION = new TypeSpecElementType("LITERAL_EXPRESSION"); - IElementType MEMBER_EXPRESSION = new TypeSpecElementType("MEMBER_EXPRESSION"); - IElementType MODEL_EXPRESSION = new TypeSpecElementType("MODEL_EXPRESSION"); - IElementType MODEL_EXTENDS = new TypeSpecElementType("MODEL_EXTENDS"); - IElementType MODEL_IS = new TypeSpecElementType("MODEL_IS"); - IElementType MODEL_PROPERTY = new TypeSpecElementType("MODEL_PROPERTY"); - IElementType MODEL_PROPERTY_LIKE = new TypeSpecElementType("MODEL_PROPERTY_LIKE"); - IElementType MODEL_STATEMENT = new TypeSpecElementType("MODEL_STATEMENT"); - IElementType NAMED_PARAMETER = new TypeSpecElementType("NAMED_PARAMETER"); - IElementType NAMESPACE_STATEMENT = new TypeSpecElementType("NAMESPACE_STATEMENT"); - IElementType NON_ARRAY_EXPRESSION = new TypeSpecElementType("NON_ARRAY_EXPRESSION"); - IElementType OBJECT_LITERAL = new TypeSpecElementType("OBJECT_LITERAL"); - IElementType OBJECT_LITERAL_PROPERTY = new TypeSpecElementType("OBJECT_LITERAL_PROPERTY"); - IElementType OPERATION = new TypeSpecElementType("OPERATION"); - IElementType OPERATION_SIGNATURE = new TypeSpecElementType("OPERATION_SIGNATURE"); - IElementType OPERATION_SIGNATURE_DECLARATION_NODE = new TypeSpecElementType("OPERATION_SIGNATURE_DECLARATION_NODE"); - IElementType OPERATION_SIGNATURE_REFERENCE_NODE = new TypeSpecElementType("OPERATION_SIGNATURE_REFERENCE_NODE"); - IElementType OPERATION_STATEMENT = new TypeSpecElementType("OPERATION_STATEMENT"); - IElementType OPERATOR_EXPRESSION = new TypeSpecElementType("OPERATOR_EXPRESSION"); - IElementType PARAMETER = new TypeSpecElementType("PARAMETER"); - IElementType PARAMETER_LIST = new TypeSpecElementType("PARAMETER_LIST"); - IElementType PATH = new TypeSpecElementType("PATH"); - IElementType SCALAR_CONSTRUCTOR = new TypeSpecElementType("SCALAR_CONSTRUCTOR"); - IElementType SCALAR_CONSTRUCTOR_LIST = new TypeSpecElementType("SCALAR_CONSTRUCTOR_LIST"); - IElementType SCALAR_EXTENDS = new TypeSpecElementType("SCALAR_EXTENDS"); - IElementType SCALAR_STATEMENT = new TypeSpecElementType("SCALAR_STATEMENT"); - IElementType SPREAD_MODEL_PROPERTY = new TypeSpecElementType("SPREAD_MODEL_PROPERTY"); - IElementType SPREAD_OBJECT_LITERAL_PROPERTY = new TypeSpecElementType("SPREAD_OBJECT_LITERAL_PROPERTY"); - IElementType STATEMENT = new TypeSpecElementType("STATEMENT"); - IElementType TUPLE_EXPRESSION = new TypeSpecElementType("TUPLE_EXPRESSION"); - IElementType TYPE_ARGUMENT_LIST = new TypeSpecElementType("TYPE_ARGUMENT_LIST"); - IElementType TYPE_OF_EXPRESSION = new TypeSpecElementType("TYPE_OF_EXPRESSION"); - IElementType TYPE_PARAMETER = new TypeSpecElementType("TYPE_PARAMETER"); - IElementType TYPE_PARAMETER_LIST = new TypeSpecElementType("TYPE_PARAMETER_LIST"); - IElementType TYPE_REFERENCE = new TypeSpecElementType("TYPE_REFERENCE"); - IElementType UNION_EXPRESSION = new TypeSpecElementType("UNION_EXPRESSION"); - IElementType UNION_STATEMENT = new TypeSpecElementType("UNION_STATEMENT"); - IElementType UNION_VARIANT = new TypeSpecElementType("UNION_VARIANT"); - IElementType UNION_VARIANTS_BLOCK = new TypeSpecElementType("UNION_VARIANTS_BLOCK"); - IElementType USING_STATEMENT = new TypeSpecElementType("USING_STATEMENT"); - IElementType VALUE_OF_EXPRESSION = new TypeSpecElementType("VALUE_OF_EXPRESSION"); - IElementType VARIADIC_PARAMETER = new TypeSpecElementType("VARIADIC_PARAMETER"); - - IElementType ALIAS = new TypeSpecTokenType("alias"); - IElementType AMP = new TypeSpecTokenType("&"); - IElementType ANY = new TypeSpecTokenType("any"); - IElementType AT = new TypeSpecTokenType("@"); - IElementType ATAT = new TypeSpecTokenType("@@"); - IElementType BLOCK_COMMENT = new TypeSpecTokenType("BLOCK_COMMENT"); - IElementType COLON = new TypeSpecTokenType(":"); - IElementType COLONCOLON = new TypeSpecTokenType("::"); - IElementType COMMA = new TypeSpecTokenType(","); - IElementType DEC = new TypeSpecTokenType("dec"); - IElementType DOC_COMMENT = new TypeSpecTokenType("DOC_COMMENT"); - IElementType DOT = new TypeSpecTokenType("."); - IElementType DOTDOTDOT = new TypeSpecTokenType("..."); - IElementType ENUM = new TypeSpecTokenType("enum"); - IElementType EQ = new TypeSpecTokenType("="); - IElementType EXTENDS = new TypeSpecTokenType("extends"); - IElementType EXTERN = new TypeSpecTokenType("extern"); - IElementType FALSE = new TypeSpecTokenType("false"); - IElementType GT = new TypeSpecTokenType(">"); - IElementType HASH = new TypeSpecTokenType("#"); - IElementType HASHLBRACE = new TypeSpecTokenType("#{"); - IElementType HASHLBRACKET = new TypeSpecTokenType("#["); - IElementType IDENT = new TypeSpecTokenType("IDENT"); - IElementType IMPORT = new TypeSpecTokenType("import"); - IElementType INIT = new TypeSpecTokenType("init"); - IElementType INTERFACE = new TypeSpecTokenType("interface"); - IElementType IS = new TypeSpecTokenType("is"); - IElementType LBRACE = new TypeSpecTokenType("{"); - IElementType LBRACKET = new TypeSpecTokenType("["); - IElementType LINE_COMMENT = new TypeSpecTokenType("LINE_COMMENT"); - IElementType LPAREN = new TypeSpecTokenType("("); - IElementType LT = new TypeSpecTokenType("<"); - IElementType MODEL = new TypeSpecTokenType("model"); - IElementType NAMESPACE = new TypeSpecTokenType("namespace"); - IElementType NEVER = new TypeSpecTokenType("never"); - IElementType NUMERIC_LITERAL = new TypeSpecTokenType("NUMERIC_LITERAL"); - IElementType OP = new TypeSpecTokenType("op"); - IElementType PIPE = new TypeSpecTokenType("|"); - IElementType QUEST = new TypeSpecTokenType("?"); - IElementType RBRACE = new TypeSpecTokenType("}"); - IElementType RBRACKET = new TypeSpecTokenType("]"); - IElementType RPAREN = new TypeSpecTokenType(")"); - IElementType SCALAR = new TypeSpecTokenType("scalar"); - IElementType SEMICOLON = new TypeSpecTokenType(";"); - IElementType STRING_LITERAL = new TypeSpecTokenType("STRING_LITERAL"); - IElementType TRUE = new TypeSpecTokenType("true"); - IElementType TYPEOF = new TypeSpecTokenType("typeof"); - IElementType UNION = new TypeSpecTokenType("union"); - IElementType USING = new TypeSpecTokenType("using"); - IElementType VALUEOF = new TypeSpecTokenType("valueof"); - IElementType VOID = new TypeSpecTokenType("void"); - - class Factory { - public static PsiElement createElement(ASTNode node) { - IElementType type = node.getElementType(); - if (type == ALIAS_STATEMENT) { - return new TypeSpecAliasStatementImpl(node); - } - else if (type == ARGUMENT_LIST) { - return new TypeSpecArgumentListImpl(node); - } - else if (type == ARRAY_EXPRESSION) { - return new TypeSpecArrayExpressionImpl(node); - } - else if (type == ARRAY_LITERAL) { - return new TypeSpecArrayLiteralImpl(node); - } - else if (type == AUGMENT_DECORATOR_STATEMENT) { - return new TypeSpecAugmentDecoratorStatementImpl(node); - } - else if (type == CALL_EXPRESSION) { - return new TypeSpecCallExpressionImpl(node); - } - else if (type == DECORATOR) { - return new TypeSpecDecoratorImpl(node); - } - else if (type == DECORATOR_LIKE) { - return new TypeSpecDecoratorLikeImpl(node); - } - else if (type == DIRECTIVE) { - return new TypeSpecDirectiveImpl(node); - } - else if (type == ENUM_STATEMENT) { - return new TypeSpecEnumStatementImpl(node); - } - else if (type == ENUM_VARIANT) { - return new TypeSpecEnumVariantImpl(node); - } - else if (type == ENUM_VARIANTS_BLOCK) { - return new TypeSpecEnumVariantsBlockImpl(node); - } - else if (type == EXTERN_DECORATOR_STATEMENT) { - return new TypeSpecExternDecoratorStatementImpl(node); - } - else if (type == IDENTIFIER) { - return new TypeSpecIdentifierImpl(node); - } - else if (type == IMPORT_STATEMENT) { - return new TypeSpecImportStatementImpl(node); - } - else if (type == INTERFACE_EXTENDS) { - return new TypeSpecInterfaceExtendsImpl(node); - } - else if (type == INTERFACE_OPERATION) { - return new TypeSpecInterfaceOperationImpl(node); - } - else if (type == INTERFACE_OPERATIONS_BLOCK) { - return new TypeSpecInterfaceOperationsBlockImpl(node); - } - else if (type == INTERFACE_STATEMENT) { - return new TypeSpecInterfaceStatementImpl(node); - } - else if (type == INTERSECTION_EXPRESSION) { - return new TypeSpecIntersectionExpressionImpl(node); - } - else if (type == KEYWORD_EXPRESSION) { - return new TypeSpecKeywordExpressionImpl(node); - } - else if (type == LITERAL_EXPRESSION) { - return new TypeSpecLiteralExpressionImpl(node); - } - else if (type == MEMBER_EXPRESSION) { - return new TypeSpecMemberExpressionImpl(node); - } - else if (type == MODEL_EXPRESSION) { - return new TypeSpecModelExpressionImpl(node); - } - else if (type == MODEL_EXTENDS) { - return new TypeSpecModelExtendsImpl(node); - } - else if (type == MODEL_IS) { - return new TypeSpecModelIsImpl(node); - } - else if (type == MODEL_PROPERTY) { - return new TypeSpecModelPropertyImpl(node); - } - else if (type == MODEL_STATEMENT) { - return new TypeSpecModelStatementImpl(node); - } - else if (type == NAMED_PARAMETER) { - return new TypeSpecNamedParameterImpl(node); - } - else if (type == NAMESPACE_STATEMENT) { - return new TypeSpecNamespaceStatementImpl(node); - } - else if (type == NON_ARRAY_EXPRESSION) { - return new TypeSpecNonArrayExpressionImpl(node); - } - else if (type == OBJECT_LITERAL) { - return new TypeSpecObjectLiteralImpl(node); - } - else if (type == OBJECT_LITERAL_PROPERTY) { - return new TypeSpecObjectLiteralPropertyImpl(node); - } - else if (type == OPERATION) { - return new TypeSpecOperationImpl(node); - } - else if (type == OPERATION_SIGNATURE) { - return new TypeSpecOperationSignatureImpl(node); - } - else if (type == OPERATION_SIGNATURE_DECLARATION_NODE) { - return new TypeSpecOperationSignatureDeclarationNodeImpl(node); - } - else if (type == OPERATION_SIGNATURE_REFERENCE_NODE) { - return new TypeSpecOperationSignatureReferenceNodeImpl(node); - } - else if (type == OPERATION_STATEMENT) { - return new TypeSpecOperationStatementImpl(node); - } - else if (type == OPERATOR_EXPRESSION) { - return new TypeSpecOperatorExpressionImpl(node); - } - else if (type == PARAMETER) { - return new TypeSpecParameterImpl(node); - } - else if (type == PARAMETER_LIST) { - return new TypeSpecParameterListImpl(node); - } - else if (type == PATH) { - return new TypeSpecPathImpl(node); - } - else if (type == SCALAR_CONSTRUCTOR) { - return new TypeSpecScalarConstructorImpl(node); - } - else if (type == SCALAR_CONSTRUCTOR_LIST) { - return new TypeSpecScalarConstructorListImpl(node); - } - else if (type == SCALAR_EXTENDS) { - return new TypeSpecScalarExtendsImpl(node); - } - else if (type == SCALAR_STATEMENT) { - return new TypeSpecScalarStatementImpl(node); - } - else if (type == SPREAD_MODEL_PROPERTY) { - return new TypeSpecSpreadModelPropertyImpl(node); - } - else if (type == SPREAD_OBJECT_LITERAL_PROPERTY) { - return new TypeSpecSpreadObjectLiteralPropertyImpl(node); - } - else if (type == STATEMENT) { - return new TypeSpecStatementImpl(node); - } - else if (type == TUPLE_EXPRESSION) { - return new TypeSpecTupleExpressionImpl(node); - } - else if (type == TYPE_ARGUMENT_LIST) { - return new TypeSpecTypeArgumentListImpl(node); - } - else if (type == TYPE_OF_EXPRESSION) { - return new TypeSpecTypeOfExpressionImpl(node); - } - else if (type == TYPE_PARAMETER) { - return new TypeSpecTypeParameterImpl(node); - } - else if (type == TYPE_PARAMETER_LIST) { - return new TypeSpecTypeParameterListImpl(node); - } - else if (type == TYPE_REFERENCE) { - return new TypeSpecTypeReferenceImpl(node); - } - else if (type == UNION_EXPRESSION) { - return new TypeSpecUnionExpressionImpl(node); - } - else if (type == UNION_STATEMENT) { - return new TypeSpecUnionStatementImpl(node); - } - else if (type == UNION_VARIANT) { - return new TypeSpecUnionVariantImpl(node); - } - else if (type == UNION_VARIANTS_BLOCK) { - return new TypeSpecUnionVariantsBlockImpl(node); - } - else if (type == USING_STATEMENT) { - return new TypeSpecUsingStatementImpl(node); - } - else if (type == VALUE_OF_EXPRESSION) { - return new TypeSpecValueOfExpressionImpl(node); - } - else if (type == VARIADIC_PARAMETER) { - return new TypeSpecVariadicParameterImpl(node); - } - throw new AssertionError("Unknown element type: " + type); - } - } -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecEnumStatement.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecEnumStatement.java deleted file mode 100644 index 7ce9265..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecEnumStatement.java +++ /dev/null @@ -1,23 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; -import com.intellij.navigation.ItemPresentation; - -public interface TypeSpecEnumStatement extends TypeSpecStatement { - - @NotNull - List getDecoratorLikeList(); - - @Nullable - TypeSpecEnumVariantsBlock getEnumVariantsBlock(); - - @Nullable - TypeSpecIdentifier getIdentifier(); - - @Nullable - ItemPresentation getPresentation(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecEnumVariant.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecEnumVariant.java deleted file mode 100644 index 116593b..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecEnumVariant.java +++ /dev/null @@ -1,19 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecEnumVariant extends TypeSpecElement { - - @NotNull - List getDecoratorLikeList(); - - @NotNull - TypeSpecIdentifier getIdentifier(); - - @Nullable - TypeSpecLiteralExpression getLiteralExpression(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecEnumVariantsBlock.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecEnumVariantsBlock.java deleted file mode 100644 index 0ca7e4e..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecEnumVariantsBlock.java +++ /dev/null @@ -1,13 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecEnumVariantsBlock extends TypeSpecElement { - - @NotNull - List getEnumVariantList(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecExpression.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecExpression.java deleted file mode 100644 index 60e9846..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecExpression.java +++ /dev/null @@ -1,10 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecExpression extends TypeSpecElement { - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecExternDecoratorStatement.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecExternDecoratorStatement.java deleted file mode 100644 index 7bc8976..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecExternDecoratorStatement.java +++ /dev/null @@ -1,20 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; -import com.intellij.navigation.ItemPresentation; - -public interface TypeSpecExternDecoratorStatement extends TypeSpecStatement { - - @Nullable - TypeSpecIdentifier getIdentifier(); - - @Nullable - TypeSpecParameterList getParameterList(); - - @Nullable - ItemPresentation getPresentation(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecIdentifier.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecIdentifier.java deleted file mode 100644 index d27f4f7..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecIdentifier.java +++ /dev/null @@ -1,13 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecIdentifier extends TypeSpecElement { - - @NotNull - PsiElement getIdent(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecImportStatement.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecImportStatement.java deleted file mode 100644 index bb09ac5..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecImportStatement.java +++ /dev/null @@ -1,13 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecImportStatement extends TypeSpecStatement { - - @Nullable - PsiElement getStringLiteral(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecInterfaceExtends.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecInterfaceExtends.java deleted file mode 100644 index 36cc1b6..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecInterfaceExtends.java +++ /dev/null @@ -1,13 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecInterfaceExtends extends TypeSpecElement { - - @NotNull - List getTypeReferenceList(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecInterfaceOperation.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecInterfaceOperation.java deleted file mode 100644 index bc98c6d..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecInterfaceOperation.java +++ /dev/null @@ -1,16 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecInterfaceOperation extends TypeSpecElement { - - @NotNull - List getDecoratorLikeList(); - - @NotNull - TypeSpecOperation getOperation(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecInterfaceOperationsBlock.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecInterfaceOperationsBlock.java deleted file mode 100644 index 7076678..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecInterfaceOperationsBlock.java +++ /dev/null @@ -1,13 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecInterfaceOperationsBlock extends TypeSpecElement { - - @NotNull - List getInterfaceOperationList(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecInterfaceStatement.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecInterfaceStatement.java deleted file mode 100644 index c70bce3..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecInterfaceStatement.java +++ /dev/null @@ -1,29 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; -import com.intellij.navigation.ItemPresentation; - -public interface TypeSpecInterfaceStatement extends TypeSpecStatement { - - @NotNull - List getDecoratorLikeList(); - - @Nullable - TypeSpecIdentifier getIdentifier(); - - @Nullable - TypeSpecInterfaceExtends getInterfaceExtends(); - - @Nullable - TypeSpecInterfaceOperationsBlock getInterfaceOperationsBlock(); - - @Nullable - TypeSpecTypeParameterList getTypeParameterList(); - - @Nullable - ItemPresentation getPresentation(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecIntersectionExpression.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecIntersectionExpression.java deleted file mode 100644 index 5e1360a..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecIntersectionExpression.java +++ /dev/null @@ -1,13 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecIntersectionExpression extends TypeSpecUnionExpression { - - @NotNull - List getOperatorExpressionList(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecKeywordExpression.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecKeywordExpression.java deleted file mode 100644 index 59e23cb..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecKeywordExpression.java +++ /dev/null @@ -1,10 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecKeywordExpression extends TypeSpecNonArrayExpression { - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecLiteralExpression.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecLiteralExpression.java deleted file mode 100644 index 52c07c1..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecLiteralExpression.java +++ /dev/null @@ -1,16 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecLiteralExpression extends TypeSpecNonArrayExpression { - - @Nullable - PsiElement getNumericLiteral(); - - @Nullable - PsiElement getStringLiteral(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecMemberExpression.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecMemberExpression.java deleted file mode 100644 index c0023bf..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecMemberExpression.java +++ /dev/null @@ -1,13 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecMemberExpression extends TypeSpecNonArrayExpression { - - @NotNull - List getIdentifierList(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecModelExpression.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecModelExpression.java deleted file mode 100644 index eeb40a0..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecModelExpression.java +++ /dev/null @@ -1,13 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecModelExpression extends TypeSpecExpression { - - @NotNull - List getModelPropertyLikeList(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecModelExtends.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecModelExtends.java deleted file mode 100644 index 60a4e7a..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecModelExtends.java +++ /dev/null @@ -1,13 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecModelExtends extends TypeSpecElement { - - @NotNull - TypeSpecExpression getExpression(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecModelIs.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecModelIs.java deleted file mode 100644 index cf8d605..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecModelIs.java +++ /dev/null @@ -1,13 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecModelIs extends TypeSpecElement { - - @NotNull - TypeSpecTypeReference getTypeReference(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecModelProperty.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecModelProperty.java deleted file mode 100644 index 4528642..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecModelProperty.java +++ /dev/null @@ -1,19 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecModelProperty extends TypeSpecModelPropertyLike { - - @NotNull - List getDecoratorLikeList(); - - @NotNull - List getExpressionList(); - - @NotNull - TypeSpecIdentifier getIdentifier(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecModelPropertyLike.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecModelPropertyLike.java deleted file mode 100644 index b3dae53..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecModelPropertyLike.java +++ /dev/null @@ -1,10 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecModelPropertyLike extends TypeSpecElement { - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecModelStatement.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecModelStatement.java deleted file mode 100644 index 7e00ae7..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecModelStatement.java +++ /dev/null @@ -1,32 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; -import com.intellij.navigation.ItemPresentation; - -public interface TypeSpecModelStatement extends TypeSpecStatement { - - @NotNull - List getDecoratorLikeList(); - - @Nullable - TypeSpecIdentifier getIdentifier(); - - @Nullable - TypeSpecModelExpression getModelExpression(); - - @Nullable - TypeSpecModelExtends getModelExtends(); - - @Nullable - TypeSpecModelIs getModelIs(); - - @Nullable - TypeSpecTypeParameterList getTypeParameterList(); - - @Nullable - ItemPresentation getPresentation(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecNamedParameter.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecNamedParameter.java deleted file mode 100644 index d2c3d56..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecNamedParameter.java +++ /dev/null @@ -1,19 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecNamedParameter extends TypeSpecElement { - - @NotNull - List getDecoratorLikeList(); - - @Nullable - TypeSpecExpression getExpression(); - - @NotNull - TypeSpecIdentifier getIdentifier(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecNamespaceStatement.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecNamespaceStatement.java deleted file mode 100644 index 69c333d..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecNamespaceStatement.java +++ /dev/null @@ -1,19 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecNamespaceStatement extends TypeSpecStatement { - - @NotNull - List getDecoratorLikeList(); - - @Nullable - TypeSpecPath getPath(); - - @NotNull - List getStatementList(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecNonArrayExpression.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecNonArrayExpression.java deleted file mode 100644 index 627f104..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecNonArrayExpression.java +++ /dev/null @@ -1,13 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecNonArrayExpression extends TypeSpecElement { - - @Nullable - TypeSpecModelExpression getModelExpression(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecObjectLiteral.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecObjectLiteral.java deleted file mode 100644 index c3acc20..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecObjectLiteral.java +++ /dev/null @@ -1,16 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecObjectLiteral extends TypeSpecNonArrayExpression { - - @NotNull - List getObjectLiteralPropertyList(); - - @NotNull - List getSpreadObjectLiteralPropertyList(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecObjectLiteralProperty.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecObjectLiteralProperty.java deleted file mode 100644 index 24209a1..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecObjectLiteralProperty.java +++ /dev/null @@ -1,16 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecObjectLiteralProperty extends TypeSpecElement { - - @NotNull - TypeSpecExpression getExpression(); - - @NotNull - TypeSpecIdentifier getIdentifier(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecOperation.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecOperation.java deleted file mode 100644 index 0e05924..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecOperation.java +++ /dev/null @@ -1,19 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecOperation extends TypeSpecElement { - - @NotNull - TypeSpecIdentifier getIdentifier(); - - @NotNull - TypeSpecOperationSignature getOperationSignature(); - - @Nullable - TypeSpecTypeParameterList getTypeParameterList(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecOperationSignature.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecOperationSignature.java deleted file mode 100644 index 8e72ced..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecOperationSignature.java +++ /dev/null @@ -1,16 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecOperationSignature extends TypeSpecElement { - - @Nullable - TypeSpecOperationSignatureDeclarationNode getOperationSignatureDeclarationNode(); - - @Nullable - TypeSpecOperationSignatureReferenceNode getOperationSignatureReferenceNode(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecOperationSignatureDeclarationNode.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecOperationSignatureDeclarationNode.java deleted file mode 100644 index 4860e3e..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecOperationSignatureDeclarationNode.java +++ /dev/null @@ -1,16 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecOperationSignatureDeclarationNode extends TypeSpecElement { - - @NotNull - TypeSpecExpression getExpression(); - - @NotNull - TypeSpecParameterList getParameterList(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecOperationSignatureReferenceNode.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecOperationSignatureReferenceNode.java deleted file mode 100644 index 7db839f..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecOperationSignatureReferenceNode.java +++ /dev/null @@ -1,13 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecOperationSignatureReferenceNode extends TypeSpecElement { - - @NotNull - TypeSpecTypeReference getTypeReference(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecOperationStatement.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecOperationStatement.java deleted file mode 100644 index e1b4a92..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecOperationStatement.java +++ /dev/null @@ -1,20 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; -import com.intellij.navigation.ItemPresentation; - -public interface TypeSpecOperationStatement extends TypeSpecStatement { - - @NotNull - List getDecoratorLikeList(); - - @Nullable - TypeSpecOperation getOperation(); - - @Nullable - ItemPresentation getPresentation(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecOperatorExpression.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecOperatorExpression.java deleted file mode 100644 index f23236d..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecOperatorExpression.java +++ /dev/null @@ -1,13 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecOperatorExpression extends TypeSpecElement { - - @Nullable - TypeSpecNonArrayExpression getNonArrayExpression(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecParameter.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecParameter.java deleted file mode 100644 index fe9a789..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecParameter.java +++ /dev/null @@ -1,16 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecParameter extends TypeSpecElement { - - @Nullable - TypeSpecNamedParameter getNamedParameter(); - - @Nullable - TypeSpecVariadicParameter getVariadicParameter(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecParameterList.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecParameterList.java deleted file mode 100644 index 3c940b8..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecParameterList.java +++ /dev/null @@ -1,13 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecParameterList extends TypeSpecElement { - - @NotNull - List getParameterList(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecPath.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecPath.java deleted file mode 100644 index d1d3c41..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecPath.java +++ /dev/null @@ -1,16 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecPath extends TypeSpecElement { - - @Nullable - TypeSpecIdentifier getIdentifier(); - - @Nullable - TypeSpecMemberExpression getMemberExpression(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecScalarConstructor.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecScalarConstructor.java deleted file mode 100644 index 51ab20c..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecScalarConstructor.java +++ /dev/null @@ -1,16 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecScalarConstructor extends TypeSpecElement { - - @NotNull - TypeSpecIdentifier getIdentifier(); - - @Nullable - TypeSpecParameterList getParameterList(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecScalarConstructorList.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecScalarConstructorList.java deleted file mode 100644 index 5685fc8..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecScalarConstructorList.java +++ /dev/null @@ -1,13 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecScalarConstructorList extends TypeSpecElement { - - @NotNull - List getScalarConstructorList(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecScalarExtends.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecScalarExtends.java deleted file mode 100644 index 20b3ff6..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecScalarExtends.java +++ /dev/null @@ -1,13 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecScalarExtends extends TypeSpecElement { - - @NotNull - TypeSpecTypeReference getTypeReference(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecScalarStatement.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecScalarStatement.java deleted file mode 100644 index a34ed81..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecScalarStatement.java +++ /dev/null @@ -1,29 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; -import com.intellij.navigation.ItemPresentation; - -public interface TypeSpecScalarStatement extends TypeSpecStatement { - - @NotNull - List getDecoratorLikeList(); - - @Nullable - TypeSpecIdentifier getIdentifier(); - - @Nullable - TypeSpecScalarConstructorList getScalarConstructorList(); - - @Nullable - TypeSpecScalarExtends getScalarExtends(); - - @Nullable - TypeSpecTypeParameterList getTypeParameterList(); - - @Nullable - ItemPresentation getPresentation(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecSpreadModelProperty.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecSpreadModelProperty.java deleted file mode 100644 index 74adbb5..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecSpreadModelProperty.java +++ /dev/null @@ -1,13 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecSpreadModelProperty extends TypeSpecModelPropertyLike { - - @NotNull - TypeSpecExpression getExpression(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecSpreadObjectLiteralProperty.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecSpreadObjectLiteralProperty.java deleted file mode 100644 index fef34b6..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecSpreadObjectLiteralProperty.java +++ /dev/null @@ -1,13 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecSpreadObjectLiteralProperty extends TypeSpecElement { - - @NotNull - TypeSpecExpression getExpression(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecStatement.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecStatement.java deleted file mode 100644 index 35912e6..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecStatement.java +++ /dev/null @@ -1,10 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecStatement extends TypeSpecElement { - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecTupleExpression.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecTupleExpression.java deleted file mode 100644 index f1f9d95..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecTupleExpression.java +++ /dev/null @@ -1,13 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecTupleExpression extends TypeSpecNonArrayExpression { - - @NotNull - List getExpressionList(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecTypeArgumentList.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecTypeArgumentList.java deleted file mode 100644 index 563b951..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecTypeArgumentList.java +++ /dev/null @@ -1,13 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecTypeArgumentList extends TypeSpecElement { - - @NotNull - List getExpressionList(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecTypeOfExpression.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecTypeOfExpression.java deleted file mode 100644 index 84d7472..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecTypeOfExpression.java +++ /dev/null @@ -1,13 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecTypeOfExpression extends TypeSpecOperatorExpression { - - @NotNull - TypeSpecOperatorExpression getOperatorExpression(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecTypeParameter.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecTypeParameter.java deleted file mode 100644 index e4a538f..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecTypeParameter.java +++ /dev/null @@ -1,16 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecTypeParameter extends TypeSpecElement { - - @NotNull - List getExpressionList(); - - @NotNull - TypeSpecIdentifier getIdentifier(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecTypeParameterList.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecTypeParameterList.java deleted file mode 100644 index 6fdd7d3..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecTypeParameterList.java +++ /dev/null @@ -1,13 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecTypeParameterList extends TypeSpecElement { - - @NotNull - List getTypeParameterList(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecTypeReference.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecTypeReference.java deleted file mode 100644 index 5ec6176..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecTypeReference.java +++ /dev/null @@ -1,16 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecTypeReference extends TypeSpecNonArrayExpression { - - @NotNull - TypeSpecPath getPath(); - - @Nullable - TypeSpecTypeArgumentList getTypeArgumentList(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecUnionExpression.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecUnionExpression.java deleted file mode 100644 index fed2da6..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecUnionExpression.java +++ /dev/null @@ -1,13 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecUnionExpression extends TypeSpecExpression { - - @NotNull - List getIntersectionExpressionList(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecUnionStatement.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecUnionStatement.java deleted file mode 100644 index 948ccc9..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecUnionStatement.java +++ /dev/null @@ -1,23 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; -import com.intellij.navigation.ItemPresentation; - -public interface TypeSpecUnionStatement extends TypeSpecStatement { - - @NotNull - List getDecoratorLikeList(); - - @Nullable - TypeSpecIdentifier getIdentifier(); - - @Nullable - TypeSpecUnionVariantsBlock getUnionVariantsBlock(); - - @Nullable - ItemPresentation getPresentation(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecUnionVariant.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecUnionVariant.java deleted file mode 100644 index b25835c..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecUnionVariant.java +++ /dev/null @@ -1,19 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecUnionVariant extends TypeSpecElement { - - @NotNull - List getDecoratorLikeList(); - - @NotNull - TypeSpecExpression getExpression(); - - @Nullable - TypeSpecIdentifier getIdentifier(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecUnionVariantsBlock.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecUnionVariantsBlock.java deleted file mode 100644 index fa1cefd..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecUnionVariantsBlock.java +++ /dev/null @@ -1,13 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecUnionVariantsBlock extends TypeSpecElement { - - @NotNull - List getUnionVariantList(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecUsingStatement.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecUsingStatement.java deleted file mode 100644 index 6170708..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecUsingStatement.java +++ /dev/null @@ -1,13 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecUsingStatement extends TypeSpecStatement { - - @Nullable - TypeSpecPath getPath(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecValueOfExpression.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecValueOfExpression.java deleted file mode 100644 index fd29750..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecValueOfExpression.java +++ /dev/null @@ -1,13 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecValueOfExpression extends TypeSpecOperatorExpression { - - @NotNull - TypeSpecOperatorExpression getOperatorExpression(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecVariadicParameter.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecVariadicParameter.java deleted file mode 100644 index d68e0c5..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecVariadicParameter.java +++ /dev/null @@ -1,13 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface TypeSpecVariadicParameter extends TypeSpecElement { - - @NotNull - TypeSpecExpression getExpression(); - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecVisitor.java b/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecVisitor.java deleted file mode 100644 index 65947eb..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/TypeSpecVisitor.java +++ /dev/null @@ -1,269 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi; - -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElementVisitor; - -public class TypeSpecVisitor extends PsiElementVisitor { - - public void visitAliasStatement(@NotNull TypeSpecAliasStatement o) { - visitStatement(o); - } - - public void visitArgumentList(@NotNull TypeSpecArgumentList o) { - visitElement(o); - } - - public void visitArrayExpression(@NotNull TypeSpecArrayExpression o) { - visitOperatorExpression(o); - } - - public void visitArrayLiteral(@NotNull TypeSpecArrayLiteral o) { - visitNonArrayExpression(o); - } - - public void visitAugmentDecoratorStatement(@NotNull TypeSpecAugmentDecoratorStatement o) { - visitStatement(o); - } - - public void visitCallExpression(@NotNull TypeSpecCallExpression o) { - visitOperatorExpression(o); - } - - public void visitDecorator(@NotNull TypeSpecDecorator o) { - visitElement(o); - } - - public void visitDecoratorLike(@NotNull TypeSpecDecoratorLike o) { - visitElement(o); - } - - public void visitDirective(@NotNull TypeSpecDirective o) { - visitElement(o); - } - - public void visitEnumStatement(@NotNull TypeSpecEnumStatement o) { - visitStatement(o); - } - - public void visitEnumVariant(@NotNull TypeSpecEnumVariant o) { - visitElement(o); - } - - public void visitEnumVariantsBlock(@NotNull TypeSpecEnumVariantsBlock o) { - visitElement(o); - } - - public void visitExpression(@NotNull TypeSpecExpression o) { - visitElement(o); - } - - public void visitExternDecoratorStatement(@NotNull TypeSpecExternDecoratorStatement o) { - visitStatement(o); - } - - public void visitIdentifier(@NotNull TypeSpecIdentifier o) { - visitElement(o); - } - - public void visitImportStatement(@NotNull TypeSpecImportStatement o) { - visitStatement(o); - } - - public void visitInterfaceExtends(@NotNull TypeSpecInterfaceExtends o) { - visitElement(o); - } - - public void visitInterfaceOperation(@NotNull TypeSpecInterfaceOperation o) { - visitElement(o); - } - - public void visitInterfaceOperationsBlock(@NotNull TypeSpecInterfaceOperationsBlock o) { - visitElement(o); - } - - public void visitInterfaceStatement(@NotNull TypeSpecInterfaceStatement o) { - visitStatement(o); - } - - public void visitIntersectionExpression(@NotNull TypeSpecIntersectionExpression o) { - visitUnionExpression(o); - } - - public void visitKeywordExpression(@NotNull TypeSpecKeywordExpression o) { - visitNonArrayExpression(o); - } - - public void visitLiteralExpression(@NotNull TypeSpecLiteralExpression o) { - visitNonArrayExpression(o); - } - - public void visitMemberExpression(@NotNull TypeSpecMemberExpression o) { - visitNonArrayExpression(o); - } - - public void visitModelExpression(@NotNull TypeSpecModelExpression o) { - visitExpression(o); - } - - public void visitModelExtends(@NotNull TypeSpecModelExtends o) { - visitElement(o); - } - - public void visitModelIs(@NotNull TypeSpecModelIs o) { - visitElement(o); - } - - public void visitModelProperty(@NotNull TypeSpecModelProperty o) { - visitModelPropertyLike(o); - } - - public void visitModelPropertyLike(@NotNull TypeSpecModelPropertyLike o) { - visitElement(o); - } - - public void visitModelStatement(@NotNull TypeSpecModelStatement o) { - visitStatement(o); - } - - public void visitNamedParameter(@NotNull TypeSpecNamedParameter o) { - visitElement(o); - } - - public void visitNamespaceStatement(@NotNull TypeSpecNamespaceStatement o) { - visitStatement(o); - } - - public void visitNonArrayExpression(@NotNull TypeSpecNonArrayExpression o) { - visitElement(o); - } - - public void visitObjectLiteral(@NotNull TypeSpecObjectLiteral o) { - visitNonArrayExpression(o); - } - - public void visitObjectLiteralProperty(@NotNull TypeSpecObjectLiteralProperty o) { - visitElement(o); - } - - public void visitOperation(@NotNull TypeSpecOperation o) { - visitElement(o); - } - - public void visitOperationSignature(@NotNull TypeSpecOperationSignature o) { - visitElement(o); - } - - public void visitOperationSignatureDeclarationNode(@NotNull TypeSpecOperationSignatureDeclarationNode o) { - visitElement(o); - } - - public void visitOperationSignatureReferenceNode(@NotNull TypeSpecOperationSignatureReferenceNode o) { - visitElement(o); - } - - public void visitOperationStatement(@NotNull TypeSpecOperationStatement o) { - visitStatement(o); - } - - public void visitOperatorExpression(@NotNull TypeSpecOperatorExpression o) { - visitElement(o); - } - - public void visitParameter(@NotNull TypeSpecParameter o) { - visitElement(o); - } - - public void visitParameterList(@NotNull TypeSpecParameterList o) { - visitElement(o); - } - - public void visitPath(@NotNull TypeSpecPath o) { - visitElement(o); - } - - public void visitScalarConstructor(@NotNull TypeSpecScalarConstructor o) { - visitElement(o); - } - - public void visitScalarConstructorList(@NotNull TypeSpecScalarConstructorList o) { - visitElement(o); - } - - public void visitScalarExtends(@NotNull TypeSpecScalarExtends o) { - visitElement(o); - } - - public void visitScalarStatement(@NotNull TypeSpecScalarStatement o) { - visitStatement(o); - } - - public void visitSpreadModelProperty(@NotNull TypeSpecSpreadModelProperty o) { - visitModelPropertyLike(o); - } - - public void visitSpreadObjectLiteralProperty(@NotNull TypeSpecSpreadObjectLiteralProperty o) { - visitElement(o); - } - - public void visitStatement(@NotNull TypeSpecStatement o) { - visitElement(o); - } - - public void visitTupleExpression(@NotNull TypeSpecTupleExpression o) { - visitNonArrayExpression(o); - } - - public void visitTypeArgumentList(@NotNull TypeSpecTypeArgumentList o) { - visitElement(o); - } - - public void visitTypeOfExpression(@NotNull TypeSpecTypeOfExpression o) { - visitOperatorExpression(o); - } - - public void visitTypeParameter(@NotNull TypeSpecTypeParameter o) { - visitElement(o); - } - - public void visitTypeParameterList(@NotNull TypeSpecTypeParameterList o) { - visitElement(o); - } - - public void visitTypeReference(@NotNull TypeSpecTypeReference o) { - visitNonArrayExpression(o); - } - - public void visitUnionExpression(@NotNull TypeSpecUnionExpression o) { - visitExpression(o); - } - - public void visitUnionStatement(@NotNull TypeSpecUnionStatement o) { - visitStatement(o); - } - - public void visitUnionVariant(@NotNull TypeSpecUnionVariant o) { - visitElement(o); - } - - public void visitUnionVariantsBlock(@NotNull TypeSpecUnionVariantsBlock o) { - visitElement(o); - } - - public void visitUsingStatement(@NotNull TypeSpecUsingStatement o) { - visitStatement(o); - } - - public void visitValueOfExpression(@NotNull TypeSpecValueOfExpression o) { - visitOperatorExpression(o); - } - - public void visitVariadicParameter(@NotNull TypeSpecVariadicParameter o) { - visitElement(o); - } - - public void visitElement(@NotNull TypeSpecElement o) { - super.visitElement(o); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecAliasStatementImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecAliasStatementImpl.java deleted file mode 100644 index 13abe0f..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecAliasStatementImpl.java +++ /dev/null @@ -1,61 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; -import com.intellij.navigation.ItemPresentation; - -public class TypeSpecAliasStatementImpl extends TypeSpecStatementImpl implements TypeSpecAliasStatement { - - public TypeSpecAliasStatementImpl(@NotNull ASTNode node) { - super(node); - } - - @Override - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitAliasStatement(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public List getDecoratorLikeList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecDecoratorLike.class); - } - - @Override - @Nullable - public TypeSpecExpression getExpression() { - return findChildByClass(TypeSpecExpression.class); - } - - @Override - @Nullable - public TypeSpecIdentifier getIdentifier() { - return findChildByClass(TypeSpecIdentifier.class); - } - - @Override - @Nullable - public TypeSpecTypeParameterList getTypeParameterList() { - return findChildByClass(TypeSpecTypeParameterList.class); - } - - @Override - @Nullable - public ItemPresentation getPresentation() { - return TypeSpecImplUtil.getPresentation(this); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecArgumentListImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecArgumentListImpl.java deleted file mode 100644 index 8a4a1f3..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecArgumentListImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecArgumentListImpl extends TypeSpecElementImpl implements TypeSpecArgumentList { - - public TypeSpecArgumentListImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitArgumentList(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public List getExpressionList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecExpression.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecArrayExpressionImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecArrayExpressionImpl.java deleted file mode 100644 index f5e3a44..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecArrayExpressionImpl.java +++ /dev/null @@ -1,36 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecArrayExpressionImpl extends TypeSpecOperatorExpressionImpl implements TypeSpecArrayExpression { - - public TypeSpecArrayExpressionImpl(@NotNull ASTNode node) { - super(node); - } - - @Override - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitArrayExpression(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public TypeSpecNonArrayExpression getNonArrayExpression() { - return findNotNullChildByClass(TypeSpecNonArrayExpression.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecArrayLiteralImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecArrayLiteralImpl.java deleted file mode 100644 index 4f573c6..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecArrayLiteralImpl.java +++ /dev/null @@ -1,36 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecArrayLiteralImpl extends TypeSpecNonArrayExpressionImpl implements TypeSpecArrayLiteral { - - public TypeSpecArrayLiteralImpl(@NotNull ASTNode node) { - super(node); - } - - @Override - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitArrayLiteral(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public List getExpressionList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecExpression.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecAugmentDecoratorStatementImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecAugmentDecoratorStatementImpl.java deleted file mode 100644 index ae05bc2..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecAugmentDecoratorStatementImpl.java +++ /dev/null @@ -1,42 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecAugmentDecoratorStatementImpl extends TypeSpecStatementImpl implements TypeSpecAugmentDecoratorStatement { - - public TypeSpecAugmentDecoratorStatementImpl(@NotNull ASTNode node) { - super(node); - } - - @Override - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitAugmentDecoratorStatement(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @Nullable - public TypeSpecArgumentList getArgumentList() { - return findChildByClass(TypeSpecArgumentList.class); - } - - @Override - @Nullable - public TypeSpecPath getPath() { - return findChildByClass(TypeSpecPath.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecCallExpressionImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecCallExpressionImpl.java deleted file mode 100644 index c2a3516..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecCallExpressionImpl.java +++ /dev/null @@ -1,42 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecCallExpressionImpl extends TypeSpecOperatorExpressionImpl implements TypeSpecCallExpression { - - public TypeSpecCallExpressionImpl(@NotNull ASTNode node) { - super(node); - } - - @Override - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitCallExpression(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public TypeSpecArgumentList getArgumentList() { - return findNotNullChildByClass(TypeSpecArgumentList.class); - } - - @Override - @NotNull - public TypeSpecNonArrayExpression getNonArrayExpression() { - return findNotNullChildByClass(TypeSpecNonArrayExpression.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecDecoratorImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecDecoratorImpl.java deleted file mode 100644 index 3b1a684..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecDecoratorImpl.java +++ /dev/null @@ -1,41 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecDecoratorImpl extends TypeSpecElementImpl implements TypeSpecDecorator { - - public TypeSpecDecoratorImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitDecorator(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @Nullable - public TypeSpecArgumentList getArgumentList() { - return findChildByClass(TypeSpecArgumentList.class); - } - - @Override - @NotNull - public TypeSpecPath getPath() { - return findNotNullChildByClass(TypeSpecPath.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecDecoratorLikeImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecDecoratorLikeImpl.java deleted file mode 100644 index d7b24f5..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecDecoratorLikeImpl.java +++ /dev/null @@ -1,41 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecDecoratorLikeImpl extends TypeSpecElementImpl implements TypeSpecDecoratorLike { - - public TypeSpecDecoratorLikeImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitDecoratorLike(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @Nullable - public TypeSpecDecorator getDecorator() { - return findChildByClass(TypeSpecDecorator.class); - } - - @Override - @Nullable - public TypeSpecDirective getDirective() { - return findChildByClass(TypeSpecDirective.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecDirectiveImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecDirectiveImpl.java deleted file mode 100644 index 068fa14..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecDirectiveImpl.java +++ /dev/null @@ -1,41 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecDirectiveImpl extends TypeSpecElementImpl implements TypeSpecDirective { - - public TypeSpecDirectiveImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitDirective(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public TypeSpecIdentifier getIdentifier() { - return findNotNullChildByClass(TypeSpecIdentifier.class); - } - - @Override - @NotNull - public List getLiteralExpressionList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecLiteralExpression.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecEnumStatementImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecEnumStatementImpl.java deleted file mode 100644 index f29878e..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecEnumStatementImpl.java +++ /dev/null @@ -1,55 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; -import com.intellij.navigation.ItemPresentation; - -public class TypeSpecEnumStatementImpl extends TypeSpecStatementImpl implements TypeSpecEnumStatement { - - public TypeSpecEnumStatementImpl(@NotNull ASTNode node) { - super(node); - } - - @Override - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitEnumStatement(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public List getDecoratorLikeList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecDecoratorLike.class); - } - - @Override - @Nullable - public TypeSpecEnumVariantsBlock getEnumVariantsBlock() { - return findChildByClass(TypeSpecEnumVariantsBlock.class); - } - - @Override - @Nullable - public TypeSpecIdentifier getIdentifier() { - return findChildByClass(TypeSpecIdentifier.class); - } - - @Override - @Nullable - public ItemPresentation getPresentation() { - return TypeSpecImplUtil.getPresentation(this); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecEnumVariantImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecEnumVariantImpl.java deleted file mode 100644 index c636e26..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecEnumVariantImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecEnumVariantImpl extends TypeSpecElementImpl implements TypeSpecEnumVariant { - - public TypeSpecEnumVariantImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitEnumVariant(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public List getDecoratorLikeList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecDecoratorLike.class); - } - - @Override - @NotNull - public TypeSpecIdentifier getIdentifier() { - return findNotNullChildByClass(TypeSpecIdentifier.class); - } - - @Override - @Nullable - public TypeSpecLiteralExpression getLiteralExpression() { - return findChildByClass(TypeSpecLiteralExpression.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecEnumVariantsBlockImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecEnumVariantsBlockImpl.java deleted file mode 100644 index 615dae5..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecEnumVariantsBlockImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecEnumVariantsBlockImpl extends TypeSpecElementImpl implements TypeSpecEnumVariantsBlock { - - public TypeSpecEnumVariantsBlockImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitEnumVariantsBlock(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public List getEnumVariantList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecEnumVariant.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecExpressionImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecExpressionImpl.java deleted file mode 100644 index aaa37e0..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecExpressionImpl.java +++ /dev/null @@ -1,29 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public abstract class TypeSpecExpressionImpl extends TypeSpecElementImpl implements TypeSpecExpression { - - public TypeSpecExpressionImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitExpression(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecExternDecoratorStatementImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecExternDecoratorStatementImpl.java deleted file mode 100644 index fe474c6..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecExternDecoratorStatementImpl.java +++ /dev/null @@ -1,49 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; -import com.intellij.navigation.ItemPresentation; - -public class TypeSpecExternDecoratorStatementImpl extends TypeSpecStatementImpl implements TypeSpecExternDecoratorStatement { - - public TypeSpecExternDecoratorStatementImpl(@NotNull ASTNode node) { - super(node); - } - - @Override - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitExternDecoratorStatement(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @Nullable - public TypeSpecIdentifier getIdentifier() { - return findChildByClass(TypeSpecIdentifier.class); - } - - @Override - @Nullable - public TypeSpecParameterList getParameterList() { - return findChildByClass(TypeSpecParameterList.class); - } - - @Override - @Nullable - public ItemPresentation getPresentation() { - return TypeSpecImplUtil.getPresentation(this); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecIdentifierImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecIdentifierImpl.java deleted file mode 100644 index f0e8a41..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecIdentifierImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecIdentifierImpl extends TypeSpecElementImpl implements TypeSpecIdentifier { - - public TypeSpecIdentifierImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitIdentifier(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public PsiElement getIdent() { - return findNotNullChildByType(IDENT); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecImportStatementImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecImportStatementImpl.java deleted file mode 100644 index 8422ccc..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecImportStatementImpl.java +++ /dev/null @@ -1,36 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecImportStatementImpl extends TypeSpecStatementImpl implements TypeSpecImportStatement { - - public TypeSpecImportStatementImpl(@NotNull ASTNode node) { - super(node); - } - - @Override - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitImportStatement(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @Nullable - public PsiElement getStringLiteral() { - return findChildByType(STRING_LITERAL); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecInterfaceExtendsImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecInterfaceExtendsImpl.java deleted file mode 100644 index 604cee0..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecInterfaceExtendsImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecInterfaceExtendsImpl extends TypeSpecElementImpl implements TypeSpecInterfaceExtends { - - public TypeSpecInterfaceExtendsImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitInterfaceExtends(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public List getTypeReferenceList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecTypeReference.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecInterfaceOperationImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecInterfaceOperationImpl.java deleted file mode 100644 index 43dbc37..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecInterfaceOperationImpl.java +++ /dev/null @@ -1,41 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecInterfaceOperationImpl extends TypeSpecElementImpl implements TypeSpecInterfaceOperation { - - public TypeSpecInterfaceOperationImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitInterfaceOperation(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public List getDecoratorLikeList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecDecoratorLike.class); - } - - @Override - @NotNull - public TypeSpecOperation getOperation() { - return findNotNullChildByClass(TypeSpecOperation.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecInterfaceOperationsBlockImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecInterfaceOperationsBlockImpl.java deleted file mode 100644 index 05cd66a..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecInterfaceOperationsBlockImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecInterfaceOperationsBlockImpl extends TypeSpecElementImpl implements TypeSpecInterfaceOperationsBlock { - - public TypeSpecInterfaceOperationsBlockImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitInterfaceOperationsBlock(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public List getInterfaceOperationList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecInterfaceOperation.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecInterfaceStatementImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecInterfaceStatementImpl.java deleted file mode 100644 index f67b315..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecInterfaceStatementImpl.java +++ /dev/null @@ -1,67 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; -import com.intellij.navigation.ItemPresentation; - -public class TypeSpecInterfaceStatementImpl extends TypeSpecStatementImpl implements TypeSpecInterfaceStatement { - - public TypeSpecInterfaceStatementImpl(@NotNull ASTNode node) { - super(node); - } - - @Override - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitInterfaceStatement(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public List getDecoratorLikeList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecDecoratorLike.class); - } - - @Override - @Nullable - public TypeSpecIdentifier getIdentifier() { - return findChildByClass(TypeSpecIdentifier.class); - } - - @Override - @Nullable - public TypeSpecInterfaceExtends getInterfaceExtends() { - return findChildByClass(TypeSpecInterfaceExtends.class); - } - - @Override - @Nullable - public TypeSpecInterfaceOperationsBlock getInterfaceOperationsBlock() { - return findChildByClass(TypeSpecInterfaceOperationsBlock.class); - } - - @Override - @Nullable - public TypeSpecTypeParameterList getTypeParameterList() { - return findChildByClass(TypeSpecTypeParameterList.class); - } - - @Override - @Nullable - public ItemPresentation getPresentation() { - return TypeSpecImplUtil.getPresentation(this); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecIntersectionExpressionImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecIntersectionExpressionImpl.java deleted file mode 100644 index e5db9f4..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecIntersectionExpressionImpl.java +++ /dev/null @@ -1,36 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecIntersectionExpressionImpl extends TypeSpecUnionExpressionImpl implements TypeSpecIntersectionExpression { - - public TypeSpecIntersectionExpressionImpl(@NotNull ASTNode node) { - super(node); - } - - @Override - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitIntersectionExpression(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public List getOperatorExpressionList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecOperatorExpression.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecKeywordExpressionImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecKeywordExpressionImpl.java deleted file mode 100644 index 4e2bab3..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecKeywordExpressionImpl.java +++ /dev/null @@ -1,30 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecKeywordExpressionImpl extends TypeSpecNonArrayExpressionImpl implements TypeSpecKeywordExpression { - - public TypeSpecKeywordExpressionImpl(@NotNull ASTNode node) { - super(node); - } - - @Override - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitKeywordExpression(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecLiteralExpressionImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecLiteralExpressionImpl.java deleted file mode 100644 index e5fdf8f..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecLiteralExpressionImpl.java +++ /dev/null @@ -1,42 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecLiteralExpressionImpl extends TypeSpecNonArrayExpressionImpl implements TypeSpecLiteralExpression { - - public TypeSpecLiteralExpressionImpl(@NotNull ASTNode node) { - super(node); - } - - @Override - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitLiteralExpression(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @Nullable - public PsiElement getNumericLiteral() { - return findChildByType(NUMERIC_LITERAL); - } - - @Override - @Nullable - public PsiElement getStringLiteral() { - return findChildByType(STRING_LITERAL); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecMemberExpressionImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecMemberExpressionImpl.java deleted file mode 100644 index 40f79e1..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecMemberExpressionImpl.java +++ /dev/null @@ -1,36 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecMemberExpressionImpl extends TypeSpecNonArrayExpressionImpl implements TypeSpecMemberExpression { - - public TypeSpecMemberExpressionImpl(@NotNull ASTNode node) { - super(node); - } - - @Override - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitMemberExpression(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public List getIdentifierList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecIdentifier.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecModelExpressionImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecModelExpressionImpl.java deleted file mode 100644 index 5d41f79..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecModelExpressionImpl.java +++ /dev/null @@ -1,36 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecModelExpressionImpl extends TypeSpecExpressionImpl implements TypeSpecModelExpression { - - public TypeSpecModelExpressionImpl(@NotNull ASTNode node) { - super(node); - } - - @Override - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitModelExpression(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public List getModelPropertyLikeList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecModelPropertyLike.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecModelExtendsImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecModelExtendsImpl.java deleted file mode 100644 index 0e813c4..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecModelExtendsImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecModelExtendsImpl extends TypeSpecElementImpl implements TypeSpecModelExtends { - - public TypeSpecModelExtendsImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitModelExtends(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public TypeSpecExpression getExpression() { - return findNotNullChildByClass(TypeSpecExpression.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecModelIsImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecModelIsImpl.java deleted file mode 100644 index 1acb3f5..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecModelIsImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecModelIsImpl extends TypeSpecElementImpl implements TypeSpecModelIs { - - public TypeSpecModelIsImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitModelIs(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public TypeSpecTypeReference getTypeReference() { - return findNotNullChildByClass(TypeSpecTypeReference.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecModelPropertyImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecModelPropertyImpl.java deleted file mode 100644 index 599aa90..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecModelPropertyImpl.java +++ /dev/null @@ -1,48 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecModelPropertyImpl extends TypeSpecModelPropertyLikeImpl implements TypeSpecModelProperty { - - public TypeSpecModelPropertyImpl(@NotNull ASTNode node) { - super(node); - } - - @Override - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitModelProperty(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public List getDecoratorLikeList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecDecoratorLike.class); - } - - @Override - @NotNull - public List getExpressionList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecExpression.class); - } - - @Override - @NotNull - public TypeSpecIdentifier getIdentifier() { - return findNotNullChildByClass(TypeSpecIdentifier.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecModelPropertyLikeImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecModelPropertyLikeImpl.java deleted file mode 100644 index f6d8c33..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecModelPropertyLikeImpl.java +++ /dev/null @@ -1,29 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public abstract class TypeSpecModelPropertyLikeImpl extends TypeSpecElementImpl implements TypeSpecModelPropertyLike { - - public TypeSpecModelPropertyLikeImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitModelPropertyLike(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecModelStatementImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecModelStatementImpl.java deleted file mode 100644 index d144cec..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecModelStatementImpl.java +++ /dev/null @@ -1,73 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; -import com.intellij.navigation.ItemPresentation; - -public class TypeSpecModelStatementImpl extends TypeSpecStatementImpl implements TypeSpecModelStatement { - - public TypeSpecModelStatementImpl(@NotNull ASTNode node) { - super(node); - } - - @Override - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitModelStatement(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public List getDecoratorLikeList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecDecoratorLike.class); - } - - @Override - @Nullable - public TypeSpecIdentifier getIdentifier() { - return findChildByClass(TypeSpecIdentifier.class); - } - - @Override - @Nullable - public TypeSpecModelExpression getModelExpression() { - return findChildByClass(TypeSpecModelExpression.class); - } - - @Override - @Nullable - public TypeSpecModelExtends getModelExtends() { - return findChildByClass(TypeSpecModelExtends.class); - } - - @Override - @Nullable - public TypeSpecModelIs getModelIs() { - return findChildByClass(TypeSpecModelIs.class); - } - - @Override - @Nullable - public TypeSpecTypeParameterList getTypeParameterList() { - return findChildByClass(TypeSpecTypeParameterList.class); - } - - @Override - @Nullable - public ItemPresentation getPresentation() { - return TypeSpecImplUtil.getPresentation(this); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecNamedParameterImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecNamedParameterImpl.java deleted file mode 100644 index be1abe5..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecNamedParameterImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecNamedParameterImpl extends TypeSpecElementImpl implements TypeSpecNamedParameter { - - public TypeSpecNamedParameterImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitNamedParameter(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public List getDecoratorLikeList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecDecoratorLike.class); - } - - @Override - @Nullable - public TypeSpecExpression getExpression() { - return findChildByClass(TypeSpecExpression.class); - } - - @Override - @NotNull - public TypeSpecIdentifier getIdentifier() { - return findNotNullChildByClass(TypeSpecIdentifier.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecNamespaceStatementImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecNamespaceStatementImpl.java deleted file mode 100644 index fd3f6fc..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecNamespaceStatementImpl.java +++ /dev/null @@ -1,48 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecNamespaceStatementImpl extends TypeSpecStatementImpl implements TypeSpecNamespaceStatement { - - public TypeSpecNamespaceStatementImpl(@NotNull ASTNode node) { - super(node); - } - - @Override - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitNamespaceStatement(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public List getDecoratorLikeList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecDecoratorLike.class); - } - - @Override - @Nullable - public TypeSpecPath getPath() { - return findChildByClass(TypeSpecPath.class); - } - - @Override - @NotNull - public List getStatementList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecStatement.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecNonArrayExpressionImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecNonArrayExpressionImpl.java deleted file mode 100644 index 4c56e17..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecNonArrayExpressionImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecNonArrayExpressionImpl extends TypeSpecElementImpl implements TypeSpecNonArrayExpression { - - public TypeSpecNonArrayExpressionImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitNonArrayExpression(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @Nullable - public TypeSpecModelExpression getModelExpression() { - return findChildByClass(TypeSpecModelExpression.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecObjectLiteralImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecObjectLiteralImpl.java deleted file mode 100644 index 8f16a84..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecObjectLiteralImpl.java +++ /dev/null @@ -1,42 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecObjectLiteralImpl extends TypeSpecNonArrayExpressionImpl implements TypeSpecObjectLiteral { - - public TypeSpecObjectLiteralImpl(@NotNull ASTNode node) { - super(node); - } - - @Override - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitObjectLiteral(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public List getObjectLiteralPropertyList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecObjectLiteralProperty.class); - } - - @Override - @NotNull - public List getSpreadObjectLiteralPropertyList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecSpreadObjectLiteralProperty.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecObjectLiteralPropertyImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecObjectLiteralPropertyImpl.java deleted file mode 100644 index a4c6faa..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecObjectLiteralPropertyImpl.java +++ /dev/null @@ -1,41 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecObjectLiteralPropertyImpl extends TypeSpecElementImpl implements TypeSpecObjectLiteralProperty { - - public TypeSpecObjectLiteralPropertyImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitObjectLiteralProperty(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public TypeSpecExpression getExpression() { - return findNotNullChildByClass(TypeSpecExpression.class); - } - - @Override - @NotNull - public TypeSpecIdentifier getIdentifier() { - return findNotNullChildByClass(TypeSpecIdentifier.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecOperationImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecOperationImpl.java deleted file mode 100644 index e1b842f..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecOperationImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecOperationImpl extends TypeSpecElementImpl implements TypeSpecOperation { - - public TypeSpecOperationImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitOperation(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public TypeSpecIdentifier getIdentifier() { - return findNotNullChildByClass(TypeSpecIdentifier.class); - } - - @Override - @NotNull - public TypeSpecOperationSignature getOperationSignature() { - return findNotNullChildByClass(TypeSpecOperationSignature.class); - } - - @Override - @Nullable - public TypeSpecTypeParameterList getTypeParameterList() { - return findChildByClass(TypeSpecTypeParameterList.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecOperationSignatureDeclarationNodeImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecOperationSignatureDeclarationNodeImpl.java deleted file mode 100644 index cd00ff3..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecOperationSignatureDeclarationNodeImpl.java +++ /dev/null @@ -1,41 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecOperationSignatureDeclarationNodeImpl extends TypeSpecElementImpl implements TypeSpecOperationSignatureDeclarationNode { - - public TypeSpecOperationSignatureDeclarationNodeImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitOperationSignatureDeclarationNode(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public TypeSpecExpression getExpression() { - return findNotNullChildByClass(TypeSpecExpression.class); - } - - @Override - @NotNull - public TypeSpecParameterList getParameterList() { - return findNotNullChildByClass(TypeSpecParameterList.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecOperationSignatureImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecOperationSignatureImpl.java deleted file mode 100644 index 07ae5a4..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecOperationSignatureImpl.java +++ /dev/null @@ -1,41 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecOperationSignatureImpl extends TypeSpecElementImpl implements TypeSpecOperationSignature { - - public TypeSpecOperationSignatureImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitOperationSignature(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @Nullable - public TypeSpecOperationSignatureDeclarationNode getOperationSignatureDeclarationNode() { - return findChildByClass(TypeSpecOperationSignatureDeclarationNode.class); - } - - @Override - @Nullable - public TypeSpecOperationSignatureReferenceNode getOperationSignatureReferenceNode() { - return findChildByClass(TypeSpecOperationSignatureReferenceNode.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecOperationSignatureReferenceNodeImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecOperationSignatureReferenceNodeImpl.java deleted file mode 100644 index 0df8d7f..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecOperationSignatureReferenceNodeImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecOperationSignatureReferenceNodeImpl extends TypeSpecElementImpl implements TypeSpecOperationSignatureReferenceNode { - - public TypeSpecOperationSignatureReferenceNodeImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitOperationSignatureReferenceNode(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public TypeSpecTypeReference getTypeReference() { - return findNotNullChildByClass(TypeSpecTypeReference.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecOperationStatementImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecOperationStatementImpl.java deleted file mode 100644 index 72d3a57..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecOperationStatementImpl.java +++ /dev/null @@ -1,49 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; -import com.intellij.navigation.ItemPresentation; - -public class TypeSpecOperationStatementImpl extends TypeSpecStatementImpl implements TypeSpecOperationStatement { - - public TypeSpecOperationStatementImpl(@NotNull ASTNode node) { - super(node); - } - - @Override - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitOperationStatement(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public List getDecoratorLikeList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecDecoratorLike.class); - } - - @Override - @Nullable - public TypeSpecOperation getOperation() { - return findChildByClass(TypeSpecOperation.class); - } - - @Override - @Nullable - public ItemPresentation getPresentation() { - return TypeSpecImplUtil.getPresentation(this); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecOperatorExpressionImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecOperatorExpressionImpl.java deleted file mode 100644 index 29beaf0..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecOperatorExpressionImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecOperatorExpressionImpl extends TypeSpecElementImpl implements TypeSpecOperatorExpression { - - public TypeSpecOperatorExpressionImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitOperatorExpression(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @Nullable - public TypeSpecNonArrayExpression getNonArrayExpression() { - return findChildByClass(TypeSpecNonArrayExpression.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecParameterImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecParameterImpl.java deleted file mode 100644 index d99e9f5..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecParameterImpl.java +++ /dev/null @@ -1,41 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecParameterImpl extends TypeSpecElementImpl implements TypeSpecParameter { - - public TypeSpecParameterImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitParameter(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @Nullable - public TypeSpecNamedParameter getNamedParameter() { - return findChildByClass(TypeSpecNamedParameter.class); - } - - @Override - @Nullable - public TypeSpecVariadicParameter getVariadicParameter() { - return findChildByClass(TypeSpecVariadicParameter.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecParameterListImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecParameterListImpl.java deleted file mode 100644 index 290bab3..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecParameterListImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecParameterListImpl extends TypeSpecElementImpl implements TypeSpecParameterList { - - public TypeSpecParameterListImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitParameterList(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public List getParameterList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecParameter.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecPathImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecPathImpl.java deleted file mode 100644 index cc98e16..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecPathImpl.java +++ /dev/null @@ -1,41 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecPathImpl extends TypeSpecElementImpl implements TypeSpecPath { - - public TypeSpecPathImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitPath(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @Nullable - public TypeSpecIdentifier getIdentifier() { - return findChildByClass(TypeSpecIdentifier.class); - } - - @Override - @Nullable - public TypeSpecMemberExpression getMemberExpression() { - return findChildByClass(TypeSpecMemberExpression.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecScalarConstructorImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecScalarConstructorImpl.java deleted file mode 100644 index b456145..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecScalarConstructorImpl.java +++ /dev/null @@ -1,41 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecScalarConstructorImpl extends TypeSpecElementImpl implements TypeSpecScalarConstructor { - - public TypeSpecScalarConstructorImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitScalarConstructor(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public TypeSpecIdentifier getIdentifier() { - return findNotNullChildByClass(TypeSpecIdentifier.class); - } - - @Override - @Nullable - public TypeSpecParameterList getParameterList() { - return findChildByClass(TypeSpecParameterList.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecScalarConstructorListImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecScalarConstructorListImpl.java deleted file mode 100644 index a922a14..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecScalarConstructorListImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecScalarConstructorListImpl extends TypeSpecElementImpl implements TypeSpecScalarConstructorList { - - public TypeSpecScalarConstructorListImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitScalarConstructorList(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public List getScalarConstructorList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecScalarConstructor.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecScalarExtendsImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecScalarExtendsImpl.java deleted file mode 100644 index 39f0c58..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecScalarExtendsImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecScalarExtendsImpl extends TypeSpecElementImpl implements TypeSpecScalarExtends { - - public TypeSpecScalarExtendsImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitScalarExtends(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public TypeSpecTypeReference getTypeReference() { - return findNotNullChildByClass(TypeSpecTypeReference.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecScalarStatementImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecScalarStatementImpl.java deleted file mode 100644 index 14f34cb..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecScalarStatementImpl.java +++ /dev/null @@ -1,67 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; -import com.intellij.navigation.ItemPresentation; - -public class TypeSpecScalarStatementImpl extends TypeSpecStatementImpl implements TypeSpecScalarStatement { - - public TypeSpecScalarStatementImpl(@NotNull ASTNode node) { - super(node); - } - - @Override - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitScalarStatement(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public List getDecoratorLikeList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecDecoratorLike.class); - } - - @Override - @Nullable - public TypeSpecIdentifier getIdentifier() { - return findChildByClass(TypeSpecIdentifier.class); - } - - @Override - @Nullable - public TypeSpecScalarConstructorList getScalarConstructorList() { - return findChildByClass(TypeSpecScalarConstructorList.class); - } - - @Override - @Nullable - public TypeSpecScalarExtends getScalarExtends() { - return findChildByClass(TypeSpecScalarExtends.class); - } - - @Override - @Nullable - public TypeSpecTypeParameterList getTypeParameterList() { - return findChildByClass(TypeSpecTypeParameterList.class); - } - - @Override - @Nullable - public ItemPresentation getPresentation() { - return TypeSpecImplUtil.getPresentation(this); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecSpreadModelPropertyImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecSpreadModelPropertyImpl.java deleted file mode 100644 index 1b0f1f7..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecSpreadModelPropertyImpl.java +++ /dev/null @@ -1,36 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecSpreadModelPropertyImpl extends TypeSpecModelPropertyLikeImpl implements TypeSpecSpreadModelProperty { - - public TypeSpecSpreadModelPropertyImpl(@NotNull ASTNode node) { - super(node); - } - - @Override - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitSpreadModelProperty(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public TypeSpecExpression getExpression() { - return findNotNullChildByClass(TypeSpecExpression.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecSpreadObjectLiteralPropertyImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecSpreadObjectLiteralPropertyImpl.java deleted file mode 100644 index 4d74c22..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecSpreadObjectLiteralPropertyImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecSpreadObjectLiteralPropertyImpl extends TypeSpecElementImpl implements TypeSpecSpreadObjectLiteralProperty { - - public TypeSpecSpreadObjectLiteralPropertyImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitSpreadObjectLiteralProperty(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public TypeSpecExpression getExpression() { - return findNotNullChildByClass(TypeSpecExpression.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecStatementImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecStatementImpl.java deleted file mode 100644 index 90b9b04..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecStatementImpl.java +++ /dev/null @@ -1,29 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecStatementImpl extends TypeSpecElementImpl implements TypeSpecStatement { - - public TypeSpecStatementImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitStatement(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecTupleExpressionImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecTupleExpressionImpl.java deleted file mode 100644 index d74a8be..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecTupleExpressionImpl.java +++ /dev/null @@ -1,36 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecTupleExpressionImpl extends TypeSpecNonArrayExpressionImpl implements TypeSpecTupleExpression { - - public TypeSpecTupleExpressionImpl(@NotNull ASTNode node) { - super(node); - } - - @Override - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitTupleExpression(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public List getExpressionList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecExpression.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecTypeArgumentListImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecTypeArgumentListImpl.java deleted file mode 100644 index 94b8a82..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecTypeArgumentListImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecTypeArgumentListImpl extends TypeSpecElementImpl implements TypeSpecTypeArgumentList { - - public TypeSpecTypeArgumentListImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitTypeArgumentList(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public List getExpressionList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecExpression.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecTypeOfExpressionImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecTypeOfExpressionImpl.java deleted file mode 100644 index 662ea16..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecTypeOfExpressionImpl.java +++ /dev/null @@ -1,36 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecTypeOfExpressionImpl extends TypeSpecOperatorExpressionImpl implements TypeSpecTypeOfExpression { - - public TypeSpecTypeOfExpressionImpl(@NotNull ASTNode node) { - super(node); - } - - @Override - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitTypeOfExpression(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public TypeSpecOperatorExpression getOperatorExpression() { - return findNotNullChildByClass(TypeSpecOperatorExpression.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecTypeParameterImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecTypeParameterImpl.java deleted file mode 100644 index 8118bfe..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecTypeParameterImpl.java +++ /dev/null @@ -1,41 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecTypeParameterImpl extends TypeSpecElementImpl implements TypeSpecTypeParameter { - - public TypeSpecTypeParameterImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitTypeParameter(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public List getExpressionList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecExpression.class); - } - - @Override - @NotNull - public TypeSpecIdentifier getIdentifier() { - return findNotNullChildByClass(TypeSpecIdentifier.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecTypeParameterListImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecTypeParameterListImpl.java deleted file mode 100644 index a327f7f..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecTypeParameterListImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecTypeParameterListImpl extends TypeSpecElementImpl implements TypeSpecTypeParameterList { - - public TypeSpecTypeParameterListImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitTypeParameterList(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public List getTypeParameterList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecTypeParameter.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecTypeReferenceImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecTypeReferenceImpl.java deleted file mode 100644 index 2c8dd60..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecTypeReferenceImpl.java +++ /dev/null @@ -1,42 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecTypeReferenceImpl extends TypeSpecNonArrayExpressionImpl implements TypeSpecTypeReference { - - public TypeSpecTypeReferenceImpl(@NotNull ASTNode node) { - super(node); - } - - @Override - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitTypeReference(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public TypeSpecPath getPath() { - return findNotNullChildByClass(TypeSpecPath.class); - } - - @Override - @Nullable - public TypeSpecTypeArgumentList getTypeArgumentList() { - return findChildByClass(TypeSpecTypeArgumentList.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecUnionExpressionImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecUnionExpressionImpl.java deleted file mode 100644 index afcb087..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecUnionExpressionImpl.java +++ /dev/null @@ -1,36 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecUnionExpressionImpl extends TypeSpecExpressionImpl implements TypeSpecUnionExpression { - - public TypeSpecUnionExpressionImpl(@NotNull ASTNode node) { - super(node); - } - - @Override - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitUnionExpression(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public List getIntersectionExpressionList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecIntersectionExpression.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecUnionStatementImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecUnionStatementImpl.java deleted file mode 100644 index 6ceb45f..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecUnionStatementImpl.java +++ /dev/null @@ -1,55 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; -import com.intellij.navigation.ItemPresentation; - -public class TypeSpecUnionStatementImpl extends TypeSpecStatementImpl implements TypeSpecUnionStatement { - - public TypeSpecUnionStatementImpl(@NotNull ASTNode node) { - super(node); - } - - @Override - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitUnionStatement(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public List getDecoratorLikeList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecDecoratorLike.class); - } - - @Override - @Nullable - public TypeSpecIdentifier getIdentifier() { - return findChildByClass(TypeSpecIdentifier.class); - } - - @Override - @Nullable - public TypeSpecUnionVariantsBlock getUnionVariantsBlock() { - return findChildByClass(TypeSpecUnionVariantsBlock.class); - } - - @Override - @Nullable - public ItemPresentation getPresentation() { - return TypeSpecImplUtil.getPresentation(this); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecUnionVariantImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecUnionVariantImpl.java deleted file mode 100644 index 87b7822..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecUnionVariantImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecUnionVariantImpl extends TypeSpecElementImpl implements TypeSpecUnionVariant { - - public TypeSpecUnionVariantImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitUnionVariant(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public List getDecoratorLikeList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecDecoratorLike.class); - } - - @Override - @NotNull - public TypeSpecExpression getExpression() { - return findNotNullChildByClass(TypeSpecExpression.class); - } - - @Override - @Nullable - public TypeSpecIdentifier getIdentifier() { - return findChildByClass(TypeSpecIdentifier.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecUnionVariantsBlockImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecUnionVariantsBlockImpl.java deleted file mode 100644 index 1e17c3d..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecUnionVariantsBlockImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecUnionVariantsBlockImpl extends TypeSpecElementImpl implements TypeSpecUnionVariantsBlock { - - public TypeSpecUnionVariantsBlockImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitUnionVariantsBlock(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public List getUnionVariantList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, TypeSpecUnionVariant.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecUsingStatementImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecUsingStatementImpl.java deleted file mode 100644 index 25ea64f..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecUsingStatementImpl.java +++ /dev/null @@ -1,36 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecUsingStatementImpl extends TypeSpecStatementImpl implements TypeSpecUsingStatement { - - public TypeSpecUsingStatementImpl(@NotNull ASTNode node) { - super(node); - } - - @Override - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitUsingStatement(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @Nullable - public TypeSpecPath getPath() { - return findChildByClass(TypeSpecPath.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecValueOfExpressionImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecValueOfExpressionImpl.java deleted file mode 100644 index 58e1691..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecValueOfExpressionImpl.java +++ /dev/null @@ -1,36 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecValueOfExpressionImpl extends TypeSpecOperatorExpressionImpl implements TypeSpecValueOfExpression { - - public TypeSpecValueOfExpressionImpl(@NotNull ASTNode node) { - super(node); - } - - @Override - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitValueOfExpression(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public TypeSpecOperatorExpression getOperatorExpression() { - return findNotNullChildByClass(TypeSpecOperatorExpression.class); - } - -} diff --git a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecVariadicParameterImpl.java b/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecVariadicParameterImpl.java deleted file mode 100644 index f3197d7..0000000 --- a/gen/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecVariadicParameterImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -// This is a generated file. Not intended for manual editing. -package jp.s6n.idea.typespec.lang.psi.impl; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.lang.ASTNode; -import com.intellij.psi.PsiElement; -import com.intellij.psi.PsiElementVisitor; -import com.intellij.psi.util.PsiTreeUtil; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; -import jp.s6n.idea.typespec.lang.psi.*; - -public class TypeSpecVariadicParameterImpl extends TypeSpecElementImpl implements TypeSpecVariadicParameter { - - public TypeSpecVariadicParameterImpl(@NotNull ASTNode node) { - super(node); - } - - public void accept(@NotNull TypeSpecVisitor visitor) { - visitor.visitVariadicParameter(this); - } - - @Override - public void accept(@NotNull PsiElementVisitor visitor) { - if (visitor instanceof TypeSpecVisitor) accept((TypeSpecVisitor)visitor); - else super.accept(visitor); - } - - @Override - @NotNull - public TypeSpecExpression getExpression() { - return findNotNullChildByClass(TypeSpecExpression.class); - } - -} diff --git a/grammars/TypeSpec.bnf b/grammars/TypeSpec.bnf deleted file mode 100644 index 5dc29a6..0000000 --- a/grammars/TypeSpec.bnf +++ /dev/null @@ -1,292 +0,0 @@ -{ - parserClass='jp.s6n.idea.typespec.lang.parser.TypeSpecParser' - parserUtilClass='jp.s6n.idea.typespec.lang.parser.TypeSpecParserUtil' - - implements='jp.s6n.idea.typespec.lang.psi.TypeSpecElement' - extends='jp.s6n.idea.typespec.lang.psi.impl.TypeSpecElementImpl' - - elementTypeHolderClass='jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes' - elementTypeClass='jp.s6n.idea.typespec.lang.psi.TypeSpecElementType' - tokenTypeClass='jp.s6n.idea.typespec.lang.psi.TypeSpecTokenType' - - psiClassPrefix='TypeSpec' - psiImplClassSuffix='Impl' - psiPackage='jp.s6n.idea.typespec.lang.psi' - psiImplPackage='jp.s6n.idea.typespec.lang.psi.impl' - psiImplUtilClass='jp.s6n.idea.typespec.lang.psi.impl.TypeSpecImplUtil' - - tokens=[ - IMPORT = 'import' - USING = 'using' - NAMESPACE = 'namespace' - SCALAR = 'scalar' - INIT = 'init' - ENUM = 'enum' - UNION = 'union' - MODEL = 'model' - INTERFACE = 'interface' - EXTENDS = 'extends' - IS = 'is' - OP = 'op' - ALIAS = 'alias' - EXTERN = 'extern' - DEC = 'dec' - VALUEOF = 'valueof' - TYPEOF = 'typeof' - TRUE = 'true' - FALSE = 'false' - VOID = 'void' - NEVER = 'never' - ANY = 'any' - - LBRACE = '{' - RBRACE = '}' - LPAREN = '(' - RPAREN = ')' - LBRACKET = '[' - RBRACKET = ']' - LT = '<' - GT = '>' - EQ = '=' - DOTDOTDOT = '...' - DOT = '.' - COLON = ':' - COLONCOLON = '::' - SEMICOLON = ';' - QUEST = '?' - AT = '@' - ATAT = '@@' - COMMA = ',' - PIPE = '|' - AMP = '&' - HASH = '#' - HASHLBRACE = '#{' - HASHLBRACKET = '#[' - - STRING_LITERAL = 'regexp:"([^\\"\r\n]|\\[^\r\n])*"?' - NUMERIC_LITERAL = 'regexp:-?\d+(\.\d+)?' - IDENT = 'regexp:[$_[\p{ID_Start}&&[^#]]][$\p{ID_Continue}]*' - WHITE_SPACE = 'regexp:\s+' - - DOC_COMMENT = 'regexp:/\*\*([^*]|\*[^/])*\*/' - BLOCK_COMMENT = 'regexp:/\*([^*]|\*[^/])*\*/' - LINE_COMMENT = 'regexp://.*' - ] -} - -File ::= Statement* - -Statement ::= - ImportStatement - | UsingStatement - | NamespaceStatement - | ScalarStatement - | EnumStatement - | UnionStatement - | ModelStatement - | InterfaceStatement - | OperationStatement - | AliasStatement - | ExternDecoratorStatement - | AugmentDecoratorStatement - { - recoverWhile=Statement_recover - } - -private Statement_recover ::= !( - RBRACE | SEMICOLON | IMPORT | USING | NAMESPACE | SCALAR | ENUM | UNION | MODEL | INTERFACE | OP | ALIAS | EXTERN | AT | ATAT | HASH -) - -ImportStatement ::= IMPORT STRING_LITERAL SEMICOLON { - pin=1 - extends=Statement -} - -UsingStatement ::= USING Path SEMICOLON { - pin=1 - extends=Statement -} - -NamespaceStatement ::= DecoratorLike* NAMESPACE Path (SEMICOLON | LBRACE Statement* RBRACE) { - pin=2 - extends=Statement -} - -ScalarStatement ::= DecoratorLike* SCALAR Identifier TypeParameterList? ScalarExtends? (SEMICOLON | ScalarConstructorList) { - pin=2 - extends=Statement - methods=[getPresentation] -} - -ScalarExtends ::= EXTENDS TypeReference - -ScalarConstructorList ::= LBRACE ScalarConstructor* RBRACE - -ScalarConstructor ::= INIT Identifier ParameterList? SEMICOLON - -EnumStatement ::= DecoratorLike* ENUM Identifier EnumVariantsBlock { - pin=2 - extends=Statement - methods=[getPresentation] -} - -EnumVariantsBlock ::= LBRACE [EnumVariant (COMMA EnumVariant)* COMMA?] RBRACE - -EnumVariant ::= DecoratorLike* Identifier (COLON LiteralExpression)? - -UnionStatement ::= DecoratorLike* UNION Identifier UnionVariantsBlock { - pin=2 - extends=Statement - methods=[getPresentation] -} - -UnionVariantsBlock ::= LBRACE [(UnionVariant COMMA)* UnionVariant?] RBRACE - -UnionVariant ::= DecoratorLike* (Identifier COLON)? Expression - -ModelStatement ::= DecoratorLike* MODEL Identifier TypeParameterList? (ModelExtends | ModelIs)? (ModelExpression | SEMICOLON) { - pin=2 - extends=Statement - methods=[getPresentation] -} - -ModelExtends ::= EXTENDS Expression - -ModelIs ::= IS TypeReference - -ModelPropertyLike ::= ModelProperty | SpreadModelProperty - -ModelProperty ::= DecoratorLike* Identifier QUEST? COLON Expression (EQ Expression)? (COMMA | SEMICOLON) {extends=ModelPropertyLike} - -SpreadModelProperty ::= DOTDOTDOT Expression (COMMA | SEMICOLON) {extends=ModelPropertyLike} - -InterfaceStatement ::= DecoratorLike* INTERFACE Identifier TypeParameterList? InterfaceExtends? InterfaceOperationsBlock { - pin=2 - extends=Statement - methods=[getPresentation] -} - -InterfaceExtends ::= EXTENDS [TypeReference (COMMA TypeReference)*] - -InterfaceOperationsBlock ::= LBRACE InterfaceOperation* RBRACE - -InterfaceOperation ::= DecoratorLike* Operation SEMICOLON - -OperationStatement ::= DecoratorLike* OP Operation SEMICOLON { - pin=2 - extends=Statement - methods=[getPresentation] -} - -AliasStatement ::= DecoratorLike* ALIAS Identifier TypeParameterList? EQ Expression SEMICOLON { - pin=2 - extends=Statement - methods=[getPresentation] -} - -ExternDecoratorStatement ::= EXTERN DEC Identifier ParameterList SEMICOLON { - pin=1 - extends=Statement - methods=[getPresentation] -} - -AugmentDecoratorStatement ::= ATAT Path ArgumentList? SEMICOLON { - pin=1 - extends=Statement -} - -Operation ::= Identifier TypeParameterList? OperationSignature - -OperationSignature ::= - OperationSignatureDeclarationNode - | OperationSignatureReferenceNode - -OperationSignatureDeclarationNode ::= ParameterList COLON Expression - -OperationSignatureReferenceNode ::= IS TypeReference - -TypeParameterList ::= LT [(TypeParameter COMMA)* TypeParameter?] GT - -TypeParameter ::= Identifier (EXTENDS Expression)? (EQ Expression)? - -TypeArgumentList ::= LT [(Expression COMMA)* Expression?] GT - -ParameterList ::= LPAREN [(Parameter COMMA)* Parameter?] RPAREN - -Parameter ::= - NamedParameter - | VariadicParameter - -NamedParameter ::= DecoratorLike* Identifier QUEST? (COLON Expression)? - -VariadicParameter ::= DOTDOTDOT Expression - -DecoratorLike ::= Decorator | Directive - -Directive ::= HASH Identifier LiteralExpression* - -Decorator ::= AT Path ArgumentList? - -ArgumentList ::= LPAREN [(Expression COMMA)* Expression?] RPAREN - -Path ::= MemberExpression | Identifier - -Expression ::= - UnionExpression - -UnionExpression ::= - PIPE? [IntersectionExpression (PIPE IntersectionExpression)*] - {extends=Expression} - -IntersectionExpression ::= - AMP? [OperatorExpression (AMP OperatorExpression)*] - {extends=UnionExpression} - -OperatorExpression ::= - ValueOfExpression - | TypeOfExpression - | CallExpression - | ArrayExpression - | NonArrayExpression - -ValueOfExpression ::= VALUEOF OperatorExpression {extends=OperatorExpression} - -TypeOfExpression ::= TYPEOF OperatorExpression {extends=OperatorExpression} - -CallExpression ::= NonArrayExpression ArgumentList {extends=OperatorExpression} - -ArrayExpression ::= NonArrayExpression (LBRACKET RBRACKET)+ {extends=OperatorExpression} - -NonArrayExpression ::= - TypeReference - | MemberExpression - | TupleExpression - | ModelExpression - | ArrayLiteral - | ObjectLiteral - | LiteralExpression - | KeywordExpression - -TupleExpression ::= LBRACKET [(Expression COMMA)* Expression?] RBRACKET {extends=NonArrayExpression} - -ModelExpression ::= LBRACE ModelPropertyLike* RBRACE {extends=Expression} - -ArrayLiteral ::= HASHLBRACKET [(Expression COMMA)* Expression?] RBRACKET {extends=NonArrayExpression} - -ObjectLiteral ::= HASHLBRACE [(ObjectLiteralPropertyLike COMMA)* ObjectLiteralPropertyLike?] RBRACE {extends=NonArrayExpression} - -private ObjectLiteralPropertyLike ::= ObjectLiteralProperty | SpreadObjectLiteralProperty - -ObjectLiteralProperty ::= Identifier COLON Expression - -SpreadObjectLiteralProperty ::= DOTDOTDOT Expression - -MemberExpression ::= Identifier ((DOT | COLONCOLON) Identifier)+ {extends=NonArrayExpression} - -TypeReference ::= Path TypeArgumentList? {extends=NonArrayExpression} - -LiteralExpression ::= STRING_LITERAL | NUMERIC_LITERAL | TRUE | FALSE {extends=NonArrayExpression} - -KeywordExpression ::= VOID | NEVER | ANY {extends=NonArrayExpression} - -Identifier ::= IDENT diff --git a/grammars/_TypeSpecLexer.flex b/grammars/_TypeSpecLexer.flex deleted file mode 100644 index 5363852..0000000 --- a/grammars/_TypeSpecLexer.flex +++ /dev/null @@ -1,96 +0,0 @@ -package jp.s6n.idea.typespec.lang.parser; - -import com.intellij.lexer.FlexLexer; -import com.intellij.psi.tree.IElementType; - -import static com.intellij.psi.TokenType.BAD_CHARACTER; -import static com.intellij.psi.TokenType.WHITE_SPACE; -import static jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.*; - -%% - -%{ - public _TypeSpecLexer() { - this((java.io.Reader)null); - } -%} - -%public -%class _TypeSpecLexer -%implements FlexLexer -%function advance -%type IElementType -%unicode - -EOL=\R -WHITE_SPACE=\s+ - -STRING_LITERAL=\"([^\\\"\r\n]|\\[^\r\n])*\"? -NUMERIC_LITERAL=-?[0-9]+(\.[0-9]+)? -IDENT=[$_[\p{ID_Start}&&[^#]]][$\p{ID_Continue}]* -WHITE_SPACE=[ \t\n\x0B\f\r]+ -DOC_COMMENT="/"\*\*([^*]|\*[^/])*\*"/" -BLOCK_COMMENT="/"\*([^*]|\*[^/])*\*"/" -LINE_COMMENT="//".* - -%% - { - {WHITE_SPACE} { return WHITE_SPACE; } - - "import" { return IMPORT; } - "using" { return USING; } - "namespace" { return NAMESPACE; } - "scalar" { return SCALAR; } - "init" { return INIT; } - "enum" { return ENUM; } - "union" { return UNION; } - "model" { return MODEL; } - "interface" { return INTERFACE; } - "extends" { return EXTENDS; } - "is" { return IS; } - "op" { return OP; } - "alias" { return ALIAS; } - "extern" { return EXTERN; } - "dec" { return DEC; } - "valueof" { return VALUEOF; } - "typeof" { return TYPEOF; } - "true" { return TRUE; } - "false" { return FALSE; } - "void" { return VOID; } - "never" { return NEVER; } - "any" { return ANY; } - "{" { return LBRACE; } - "}" { return RBRACE; } - "(" { return LPAREN; } - ")" { return RPAREN; } - "[" { return LBRACKET; } - "]" { return RBRACKET; } - "<" { return LT; } - ">" { return GT; } - "=" { return EQ; } - "..." { return DOTDOTDOT; } - "." { return DOT; } - ":" { return COLON; } - "::" { return COLONCOLON; } - ";" { return SEMICOLON; } - "?" { return QUEST; } - "@" { return AT; } - "@@" { return ATAT; } - "," { return COMMA; } - "|" { return PIPE; } - "&" { return AMP; } - "#" { return HASH; } - "#{" { return HASHLBRACE; } - "#[" { return HASHLBRACKET; } - - {STRING_LITERAL} { return STRING_LITERAL; } - {NUMERIC_LITERAL} { return NUMERIC_LITERAL; } - {IDENT} { return IDENT; } - {WHITE_SPACE} { return WHITE_SPACE; } - {DOC_COMMENT} { return DOC_COMMENT; } - {BLOCK_COMMENT} { return BLOCK_COMMENT; } - {LINE_COMMENT} { return LINE_COMMENT; } - -} - -[^] { return BAD_CHARACTER; } diff --git a/src/main/kotlin/jp/s6n/idea/typespec/highlighting/TypeSpecColorSettingsPage.kt b/src/main/kotlin/jp/s6n/idea/typespec/highlighting/TypeSpecColorSettingsPage.kt deleted file mode 100644 index 613c072..0000000 --- a/src/main/kotlin/jp/s6n/idea/typespec/highlighting/TypeSpecColorSettingsPage.kt +++ /dev/null @@ -1,14 +0,0 @@ -package jp.s6n.idea.typespec.highlighting - -import com.intellij.openapi.editor.colors.TextAttributesKey -import com.intellij.openapi.options.OptionsBundle -import com.intellij.openapi.options.colors.AttributesDescriptor - -private val DESCRIPTORS = arrayOf( - AttributesDescriptor( - OptionsBundle.messagePointer("options.language.defaults.block.comment"), - TypeSpecColors.DECORATOR - ), -) - -private val ADDITIONAL_DESCRIPTORS = mapOf() diff --git a/src/main/kotlin/jp/s6n/idea/typespec/highlighting/TypeSpecColors.kt b/src/main/kotlin/jp/s6n/idea/typespec/highlighting/TypeSpecColors.kt deleted file mode 100644 index 7235cc8..0000000 --- a/src/main/kotlin/jp/s6n/idea/typespec/highlighting/TypeSpecColors.kt +++ /dev/null @@ -1,26 +0,0 @@ -package jp.s6n.idea.typespec.highlighting - -import com.intellij.openapi.editor.DefaultLanguageHighlighterColors -import com.intellij.openapi.editor.colors.TextAttributesKey.createTextAttributesKey - -object TypeSpecColors { - val DOC_COMMENT = createTextAttributesKey("TYPESPEC_DOC_COMMENT", DefaultLanguageHighlighterColors.DOC_COMMENT) - val BLOCK_COMMENT = createTextAttributesKey("TYPESPEC_BLOCK_COMMENT", DefaultLanguageHighlighterColors.BLOCK_COMMENT) - val LINE_COMMENT = createTextAttributesKey("TYPESPEC_LINE_COMMENT", DefaultLanguageHighlighterColors.LINE_COMMENT) - val STRING_LITERAL = createTextAttributesKey("TYPESPEC_STRING_LITERAL", DefaultLanguageHighlighterColors.STRING) - val KEYWORD = createTextAttributesKey("TYPESPEC_KEYWORD", DefaultLanguageHighlighterColors.KEYWORD) - val IDENTIFIER = createTextAttributesKey("TYPESPEC_IDENTIFIER", DefaultLanguageHighlighterColors.IDENTIFIER) - val NUMBER = createTextAttributesKey("TYPESPEC_NUMBER", DefaultLanguageHighlighterColors.NUMBER) - val BRACKETS = createTextAttributesKey("TYPESPEC_BRACKETS", DefaultLanguageHighlighterColors.BRACKETS) - val PARENTHESES = createTextAttributesKey("TYPESPEC_PARENTHESES", DefaultLanguageHighlighterColors.PARENTHESES) - val BRACES = createTextAttributesKey("TYPESPEC_BRACES", DefaultLanguageHighlighterColors.BRACES) - val DOT = createTextAttributesKey("TYPESPEC_DOT", DefaultLanguageHighlighterColors.DOT) - val COMMA = createTextAttributesKey("TYPESPEC_COMMA", DefaultLanguageHighlighterColors.COMMA) - val OPERATION_SIGN = - createTextAttributesKey("TYPESPEC_OPERATION_SIGN", DefaultLanguageHighlighterColors.OPERATION_SIGN) - - val DECORATOR = createTextAttributesKey("TYPESPEC_DECORATOR", DefaultLanguageHighlighterColors.METADATA) - val TYPE = createTextAttributesKey("TYPESPEC_TYPE", DefaultLanguageHighlighterColors.CLASS_NAME) - val TYPE_REFERENCE = createTextAttributesKey("TYPESPEC_TYPE_REFERENCE", DefaultLanguageHighlighterColors.CLASS_REFERENCE) - val OPERATION = createTextAttributesKey("TYPESPEC_OPERATION", DefaultLanguageHighlighterColors.FUNCTION_DECLARATION) -} diff --git a/src/main/kotlin/jp/s6n/idea/typespec/highlighting/TypeSpecHighlightingAnnotator.kt b/src/main/kotlin/jp/s6n/idea/typespec/highlighting/TypeSpecHighlightingAnnotator.kt deleted file mode 100644 index bf99469..0000000 --- a/src/main/kotlin/jp/s6n/idea/typespec/highlighting/TypeSpecHighlightingAnnotator.kt +++ /dev/null @@ -1,53 +0,0 @@ -package jp.s6n.idea.typespec.highlighting - -import com.intellij.lang.annotation.AnnotationHolder -import com.intellij.lang.annotation.Annotator -import com.intellij.lang.annotation.HighlightSeverity -import com.intellij.openapi.editor.colors.TextAttributesKey -import com.intellij.psi.PsiElement -import jp.s6n.idea.typespec.lang.psi.* - -class TypeSpecHighlightingAnnotator : Annotator { - override fun annotate(element: PsiElement, holder: AnnotationHolder) { - when (element) { - is TypeSpecScalarStatement -> element.identifier?.let { newAnnotation(it, holder, TypeSpecColors.TYPE) } - is TypeSpecEnumStatement -> element.identifier?.let { newAnnotation(it, holder, TypeSpecColors.TYPE) } - is TypeSpecUnionStatement -> element.identifier?.let { newAnnotation(it, holder, TypeSpecColors.TYPE) } - is TypeSpecModelStatement -> element.identifier?.let { newAnnotation(it, holder, TypeSpecColors.TYPE) } - is TypeSpecInterfaceStatement -> element.identifier?.let { newAnnotation(it, holder, TypeSpecColors.TYPE) } - is TypeSpecAliasStatement -> element.identifier?.let { newAnnotation(it, holder, TypeSpecColors.TYPE) } - - is TypeSpecOperationStatement -> element.operation?.identifier?.let { - newAnnotation(it, holder, TypeSpecColors.OPERATION) - } - - is TypeSpecExternDecoratorStatement -> element.identifier?.let { - newAnnotation(it, holder, TypeSpecColors.DECORATOR) - } - - is TypeSpecAugmentDecoratorStatement -> element.path?.let { - newAnnotation(it, holder, TypeSpecColors.DECORATOR) - } - - is TypeSpecDecorator -> newAnnotation(element.path, holder, TypeSpecColors.DECORATOR) - is TypeSpecDirective -> newAnnotation(element.identifier, holder, TypeSpecColors.DECORATOR) - - is TypeSpecTypeReference -> { - (element.path.identifier ?: element.path.memberExpression?.lastChild)?.let { - newAnnotation(it, holder, TypeSpecColors.TYPE_REFERENCE) - } - } - - is TypeSpecTypeParameterList -> element.typeParameterList.forEach { - newAnnotation(it.identifier, holder, TypeSpecColors.TYPE) - } - } - } - - private fun newAnnotation( - element: PsiElement, holder: AnnotationHolder, textAttributesKey: TextAttributesKey - ) { - holder.newSilentAnnotation(HighlightSeverity.INFORMATION).textAttributes(textAttributesKey).range(element) - .create() - } -} diff --git a/src/main/kotlin/jp/s6n/idea/typespec/highlighting/TypeSpecSyntaxHighlighter.kt b/src/main/kotlin/jp/s6n/idea/typespec/highlighting/TypeSpecSyntaxHighlighter.kt deleted file mode 100644 index 95ddc7f..0000000 --- a/src/main/kotlin/jp/s6n/idea/typespec/highlighting/TypeSpecSyntaxHighlighter.kt +++ /dev/null @@ -1,37 +0,0 @@ -package jp.s6n.idea.typespec.highlighting - -import com.intellij.lexer.Lexer -import com.intellij.openapi.editor.colors.TextAttributesKey -import com.intellij.openapi.fileTypes.SyntaxHighlighterBase -import com.intellij.psi.tree.IElementType -import jp.s6n.idea.typespec.lang.lexer.TypeSpecLexer -import jp.s6n.idea.typespec.lang.psi.* - -class TypeSpecSyntaxHighlighter : SyntaxHighlighterBase() { - override fun getHighlightingLexer(): Lexer = TypeSpecLexer() - - override fun getTokenHighlights(tokenType: IElementType): Array = - pack(ATTRIBUTES[tokenType]) -} - -private val ATTRIBUTES = buildMap { - put(TypeSpecElementTypes.DOC_COMMENT, TypeSpecColors.DOC_COMMENT) - put(TypeSpecElementTypes.BLOCK_COMMENT, TypeSpecColors.BLOCK_COMMENT) - put(TypeSpecElementTypes.LINE_COMMENT, TypeSpecColors.LINE_COMMENT) - put(TypeSpecElementTypes.STRING_LITERAL, TypeSpecColors.STRING_LITERAL) - put(TypeSpecElementTypes.NUMERIC_LITERAL, TypeSpecColors.NUMBER) - put(TypeSpecElementTypes.IDENT, TypeSpecColors.IDENTIFIER) - put(TypeSpecElementTypes.COMMA, TypeSpecColors.COMMA) - put(TypeSpecElementTypes.DOT, TypeSpecColors.DOT) - put(TypeSpecElementTypes.EQ, TypeSpecColors.OPERATION_SIGN) - put(TypeSpecElementTypes.COLON, TypeSpecColors.OPERATION_SIGN) - put(TypeSpecElementTypes.QUEST, TypeSpecColors.OPERATION_SIGN) - put(TypeSpecElementTypes.AT, TypeSpecColors.DECORATOR) - put(TypeSpecElementTypes.ATAT, TypeSpecColors.DECORATOR) - put(TypeSpecElementTypes.HASH, TypeSpecColors.DECORATOR) - - SyntaxHighlighterBase.fillMap(this, TYPESPEC_KEYWORDS, TypeSpecColors.KEYWORD) - SyntaxHighlighterBase.fillMap(this, TYPESPEC_BRACKETS, TypeSpecColors.BRACKETS) - SyntaxHighlighterBase.fillMap(this, TYPESPEC_BRACES, TypeSpecColors.BRACES) - SyntaxHighlighterBase.fillMap(this, TYPESPEC_PARENTHESES, TypeSpecColors.PARENTHESES) -} diff --git a/src/main/kotlin/jp/s6n/idea/typespec/highlighting/TypeSpecSyntaxHighlighterFactory.kt b/src/main/kotlin/jp/s6n/idea/typespec/highlighting/TypeSpecSyntaxHighlighterFactory.kt deleted file mode 100644 index 27ade28..0000000 --- a/src/main/kotlin/jp/s6n/idea/typespec/highlighting/TypeSpecSyntaxHighlighterFactory.kt +++ /dev/null @@ -1,12 +0,0 @@ -package jp.s6n.idea.typespec.highlighting - -import com.intellij.openapi.fileTypes.SyntaxHighlighter -import com.intellij.openapi.fileTypes.SyntaxHighlighterFactory -import com.intellij.openapi.project.Project -import com.intellij.openapi.vfs.VirtualFile - -class TypeSpecSyntaxHighlighterFactory : SyntaxHighlighterFactory() { - override fun getSyntaxHighlighter(p0: Project?, p1: VirtualFile?): SyntaxHighlighter { - return TypeSpecSyntaxHighlighter() - } -} diff --git a/src/main/kotlin/jp/s6n/idea/typespec/lang/TypeSpecIconProvider.kt b/src/main/kotlin/jp/s6n/idea/typespec/lang/TypeSpecIconProvider.kt deleted file mode 100644 index 9c10f47..0000000 --- a/src/main/kotlin/jp/s6n/idea/typespec/lang/TypeSpecIconProvider.kt +++ /dev/null @@ -1,21 +0,0 @@ -package jp.s6n.idea.typespec.lang - -import com.intellij.icons.AllIcons -import com.intellij.ide.IconProvider -import com.intellij.psi.PsiElement -import jp.s6n.idea.typespec.lang.psi.* -import javax.swing.Icon - -class TypeSpecIconProvider : IconProvider() { - override fun getIcon(element: PsiElement, flags: Int): Icon? { - return when (element) { - is TypeSpecEnumStatement -> AllIcons.Nodes.Enum - is TypeSpecUnionStatement -> AllIcons.Nodes.Enum - is TypeSpecModelStatement -> AllIcons.Nodes.Class - is TypeSpecInterfaceStatement -> AllIcons.Nodes.Interface - is TypeSpecAliasStatement -> AllIcons.Nodes.Type - is TypeSpecOperationStatement -> AllIcons.Nodes.Function - else -> null - } - } -} diff --git a/src/main/kotlin/jp/s6n/idea/typespec/lang/lexer/TypeSpecLexer.kt b/src/main/kotlin/jp/s6n/idea/typespec/lang/lexer/TypeSpecLexer.kt deleted file mode 100644 index 6d5329e..0000000 --- a/src/main/kotlin/jp/s6n/idea/typespec/lang/lexer/TypeSpecLexer.kt +++ /dev/null @@ -1,6 +0,0 @@ -package jp.s6n.idea.typespec.lang.lexer - -import com.intellij.lexer.FlexAdapter -import jp.s6n.idea.typespec.lang.parser._TypeSpecLexer - -class TypeSpecLexer : FlexAdapter(_TypeSpecLexer()) diff --git a/src/main/kotlin/jp/s6n/idea/typespec/lang/parser/TypeSpecParserDefinition.kt b/src/main/kotlin/jp/s6n/idea/typespec/lang/parser/TypeSpecParserDefinition.kt deleted file mode 100644 index fabeeb9..0000000 --- a/src/main/kotlin/jp/s6n/idea/typespec/lang/parser/TypeSpecParserDefinition.kt +++ /dev/null @@ -1,30 +0,0 @@ -package jp.s6n.idea.typespec.lang.parser - -import com.intellij.lang.ASTNode -import com.intellij.lang.ParserDefinition -import com.intellij.openapi.project.Project -import com.intellij.psi.FileViewProvider -import com.intellij.psi.PsiElement -import com.intellij.psi.tree.IFileElementType -import jp.s6n.idea.typespec.lang.TypeSpecLanguage -import jp.s6n.idea.typespec.lang.lexer.TypeSpecLexer -import jp.s6n.idea.typespec.lang.psi.* - -class TypeSpecParserDefinition : ParserDefinition { - override fun createLexer(project: Project?) = TypeSpecLexer() - - override fun createParser(project: Project?) = TypeSpecParser() - - override fun getFileNodeType() = FILE - - override fun getCommentTokens() = TYPESPEC_COMMENTS - - override fun getStringLiteralElements() = TYPESPEC_STRINGS - - override fun createElement(node: ASTNode?): PsiElement = TypeSpecElementTypes.Factory.createElement(node) - - override fun createFile(viewProvider: FileViewProvider) = TypeSpecFile(viewProvider) - -} - -val FILE = IFileElementType(TypeSpecLanguage) diff --git a/src/main/kotlin/jp/s6n/idea/typespec/lang/parser/TypeSpecParserUtil.kt b/src/main/kotlin/jp/s6n/idea/typespec/lang/parser/TypeSpecParserUtil.kt deleted file mode 100644 index 9985b2a..0000000 --- a/src/main/kotlin/jp/s6n/idea/typespec/lang/parser/TypeSpecParserUtil.kt +++ /dev/null @@ -1,5 +0,0 @@ -package jp.s6n.idea.typespec.lang.parser - -import com.intellij.lang.parser.GeneratedParserUtilBase - -class TypeSpecParserUtil : GeneratedParserUtilBase() diff --git a/src/main/kotlin/jp/s6n/idea/typespec/lang/psi/TypeSpecElement.kt b/src/main/kotlin/jp/s6n/idea/typespec/lang/psi/TypeSpecElement.kt deleted file mode 100644 index b2a471e..0000000 --- a/src/main/kotlin/jp/s6n/idea/typespec/lang/psi/TypeSpecElement.kt +++ /dev/null @@ -1,5 +0,0 @@ -package jp.s6n.idea.typespec.lang.psi - -import com.intellij.psi.PsiElement - -interface TypeSpecElement : PsiElement diff --git a/src/main/kotlin/jp/s6n/idea/typespec/lang/psi/TypeSpecElementType.kt b/src/main/kotlin/jp/s6n/idea/typespec/lang/psi/TypeSpecElementType.kt deleted file mode 100644 index 704777f..0000000 --- a/src/main/kotlin/jp/s6n/idea/typespec/lang/psi/TypeSpecElementType.kt +++ /dev/null @@ -1,6 +0,0 @@ -package jp.s6n.idea.typespec.lang.psi - -import com.intellij.psi.tree.IElementType -import jp.s6n.idea.typespec.lang.TypeSpecLanguage - -class TypeSpecElementType(debugName: String) : IElementType(debugName, TypeSpecLanguage) diff --git a/src/main/kotlin/jp/s6n/idea/typespec/lang/psi/TypeSpecFile.kt b/src/main/kotlin/jp/s6n/idea/typespec/lang/psi/TypeSpecFile.kt deleted file mode 100644 index e564e34..0000000 --- a/src/main/kotlin/jp/s6n/idea/typespec/lang/psi/TypeSpecFile.kt +++ /dev/null @@ -1,13 +0,0 @@ -package jp.s6n.idea.typespec.lang.psi - -import com.intellij.extapi.psi.PsiFileBase -import com.intellij.psi.FileViewProvider -import com.intellij.psi.util.childrenOfType -import jp.s6n.idea.typespec.lang.TypeSpecFileType -import jp.s6n.idea.typespec.lang.TypeSpecLanguage - -class TypeSpecFile(viewProvider: FileViewProvider) : PsiFileBase(viewProvider, TypeSpecLanguage) { - val statements get() = childrenOfType() - - override fun getFileType() = TypeSpecFileType -} diff --git a/src/main/kotlin/jp/s6n/idea/typespec/lang/psi/TypeSpecPsiUtils.kt b/src/main/kotlin/jp/s6n/idea/typespec/lang/psi/TypeSpecPsiUtils.kt deleted file mode 100644 index dfb4bfd..0000000 --- a/src/main/kotlin/jp/s6n/idea/typespec/lang/psi/TypeSpecPsiUtils.kt +++ /dev/null @@ -1,7 +0,0 @@ -package jp.s6n.idea.typespec.lang.psi - -import com.intellij.psi.PsiElement - -fun TypeSpecMemberExpression.findTopmostPathParent(): PsiElement? { - return this.identifierList.firstOrNull() -} diff --git a/src/main/kotlin/jp/s6n/idea/typespec/lang/psi/TypeSpecTokenType.kt b/src/main/kotlin/jp/s6n/idea/typespec/lang/psi/TypeSpecTokenType.kt deleted file mode 100644 index 3c0d53e..0000000 --- a/src/main/kotlin/jp/s6n/idea/typespec/lang/psi/TypeSpecTokenType.kt +++ /dev/null @@ -1,15 +0,0 @@ -package jp.s6n.idea.typespec.lang.psi - -import com.intellij.psi.tree.IElementType -import com.intellij.psi.tree.TokenSet.create -import jp.s6n.idea.typespec.lang.TypeSpecLanguage -import jp.s6n.idea.typespec.lang.psi.TypeSpecElementTypes.* - -class TypeSpecTokenType(debugName: String) : IElementType(debugName, TypeSpecLanguage) - -val TYPESPEC_STRINGS = create(STRING_LITERAL) -val TYPESPEC_COMMENTS = create(DOC_COMMENT, BLOCK_COMMENT, LINE_COMMENT) -val TYPESPEC_KEYWORDS = create(IMPORT, USING, NAMESPACE, SCALAR, INIT, ENUM, UNION, MODEL, INTERFACE, EXTENDS, IS, OP, ALIAS, EXTERN, DEC, VALUEOF, TYPEOF, TRUE, FALSE, VOID, NEVER, ANY) -val TYPESPEC_BRACES = create(LBRACE, RBRACE, HASHLBRACE) -val TYPESPEC_BRACKETS = create(LBRACKET, RBRACKET, HASHLBRACKET) -val TYPESPEC_PARENTHESES = create(LPAREN, RPAREN) diff --git a/src/main/kotlin/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecElementImpl.kt b/src/main/kotlin/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecElementImpl.kt deleted file mode 100644 index 61e4d41..0000000 --- a/src/main/kotlin/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecElementImpl.kt +++ /dev/null @@ -1,7 +0,0 @@ -package jp.s6n.idea.typespec.lang.psi.impl - -import com.intellij.extapi.psi.ASTWrapperPsiElement -import com.intellij.lang.ASTNode -import jp.s6n.idea.typespec.lang.psi.TypeSpecElement - -open class TypeSpecElementImpl(node: ASTNode) : ASTWrapperPsiElement(node), TypeSpecElement diff --git a/src/main/kotlin/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecImplUtil.kt b/src/main/kotlin/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecImplUtil.kt deleted file mode 100644 index 84a4f46..0000000 --- a/src/main/kotlin/jp/s6n/idea/typespec/lang/psi/impl/TypeSpecImplUtil.kt +++ /dev/null @@ -1,48 +0,0 @@ -package jp.s6n.idea.typespec.lang.psi.impl - -import com.intellij.navigation.ItemPresentation -import jp.s6n.idea.typespec.lang.psi.TypeSpecAliasStatement -import jp.s6n.idea.typespec.lang.psi.TypeSpecElement -import jp.s6n.idea.typespec.lang.psi.TypeSpecEnumStatement -import jp.s6n.idea.typespec.lang.psi.TypeSpecInterfaceStatement -import jp.s6n.idea.typespec.lang.psi.TypeSpecModelStatement -import jp.s6n.idea.typespec.lang.psi.TypeSpecOperationStatement -import jp.s6n.idea.typespec.lang.psi.TypeSpecScalarStatement -import jp.s6n.idea.typespec.lang.psi.TypeSpecUnionStatement - -object TypeSpecImplUtil { - @JvmStatic - fun getPresentation(element: TypeSpecElement): ItemPresentation? { - return when (element) { - is TypeSpecScalarStatement -> object : ItemPresentation { - override fun getPresentableText() = element.identifier?.text - override fun getIcon(unused: Boolean) = element.getIcon(0) - } - is TypeSpecEnumStatement -> object : ItemPresentation { - override fun getPresentableText() = element.identifier?.text - override fun getIcon(unused: Boolean) = element.getIcon(0) - } - is TypeSpecUnionStatement -> object : ItemPresentation { - override fun getPresentableText() = element.identifier?.text - override fun getIcon(unused: Boolean) = element.getIcon(0) - } - is TypeSpecModelStatement -> object : ItemPresentation { - override fun getPresentableText() = element.identifier?.text - override fun getIcon(unused: Boolean) = element.getIcon(0) - } - is TypeSpecInterfaceStatement -> object : ItemPresentation { - override fun getPresentableText() = element.identifier?.text - override fun getIcon(unused: Boolean) = element.getIcon(0) - } - is TypeSpecOperationStatement -> object : ItemPresentation { - override fun getPresentableText() = element.operation?.identifier?.text - override fun getIcon(unused: Boolean) = element.getIcon(0) - } - is TypeSpecAliasStatement -> object : ItemPresentation { - override fun getPresentableText() = element.identifier?.text - override fun getIcon(unused: Boolean) = element.getIcon(0) - } - else -> null - } - } -}