|
| 1 | +export default { |
| 2 | + entrypoint: { |
| 3 | + type: "choice", |
| 4 | + category: "Global", |
| 5 | + default: "compilationUnit", |
| 6 | + // sed -nr 's/.*\.RULE\(([^,]+),.*/\1/p' $(ls path/to/java-parser/rules/folder/*) |
| 7 | + choices: [ |
| 8 | + { value: "arrayInitializer" }, |
| 9 | + { value: "variableInitializerList" }, |
| 10 | + { value: "block" }, |
| 11 | + { value: "blockStatements" }, |
| 12 | + { value: "blockStatement" }, |
| 13 | + { value: "localVariableDeclarationStatement" }, |
| 14 | + { value: "localVariableDeclaration" }, |
| 15 | + { value: "localVariableType" }, |
| 16 | + { value: "statement" }, |
| 17 | + { value: "statementWithoutTrailingSubstatement" }, |
| 18 | + { value: "emptyStatement" }, |
| 19 | + { value: "labeledStatement" }, |
| 20 | + { value: "expressionStatement" }, |
| 21 | + { value: "statementExpression" }, |
| 22 | + { value: "ifStatement" }, |
| 23 | + { value: "assertStatement" }, |
| 24 | + { value: "switchStatement" }, |
| 25 | + { value: "switchBlock" }, |
| 26 | + { value: "switchBlockStatementGroup" }, |
| 27 | + { value: "switchLabel" }, |
| 28 | + { value: "switchRule" }, |
| 29 | + { value: "caseConstant" }, |
| 30 | + { value: "whileStatement" }, |
| 31 | + { value: "doStatement" }, |
| 32 | + { value: "forStatement" }, |
| 33 | + { value: "basicForStatement" }, |
| 34 | + { value: "forInit" }, |
| 35 | + { value: "forUpdate" }, |
| 36 | + { value: "statementExpressionList" }, |
| 37 | + { value: "enhancedForStatement" }, |
| 38 | + { value: "breakStatement" }, |
| 39 | + { value: "continueStatement" }, |
| 40 | + { value: "returnStatement" }, |
| 41 | + { value: "throwStatement" }, |
| 42 | + { value: "synchronizedStatement" }, |
| 43 | + { value: "tryStatement" }, |
| 44 | + { value: "catches" }, |
| 45 | + { value: "catchClause" }, |
| 46 | + { value: "catchFormalParameter" }, |
| 47 | + { value: "catchType" }, |
| 48 | + { value: "finally" }, |
| 49 | + { value: "tryWithResourcesStatement" }, |
| 50 | + { value: "resourceSpecification" }, |
| 51 | + { value: "resourceList" }, |
| 52 | + { value: "resource" }, |
| 53 | + { value: "yieldStatement" }, |
| 54 | + { value: "variableAccess" }, |
| 55 | + { value: "classDeclaration" }, |
| 56 | + { value: "normalClassDeclaration" }, |
| 57 | + { value: "classModifier" }, |
| 58 | + { value: "typeParameters" }, |
| 59 | + { value: "typeParameterList" }, |
| 60 | + { value: "superclass" }, |
| 61 | + { value: "superinterfaces" }, |
| 62 | + { value: "interfaceTypeList" }, |
| 63 | + { value: "classPermits" }, |
| 64 | + { value: "classBody" }, |
| 65 | + { value: "classBodyDeclaration" }, |
| 66 | + { value: "classMemberDeclaration" }, |
| 67 | + { value: "fieldDeclaration" }, |
| 68 | + { value: "fieldModifier" }, |
| 69 | + { value: "variableDeclaratorList" }, |
| 70 | + { value: "variableDeclarator" }, |
| 71 | + { value: "variableDeclaratorId" }, |
| 72 | + { value: "variableInitializer" }, |
| 73 | + { value: "unannType" }, |
| 74 | + { value: "unannPrimitiveTypeWithOptionalDimsSuffix" }, |
| 75 | + { value: "unannPrimitiveType" }, |
| 76 | + { value: "unannReferenceType" }, |
| 77 | + { value: "unannClassOrInterfaceType" }, |
| 78 | + { value: "unannClassType" }, |
| 79 | + { value: "unannInterfaceType" }, |
| 80 | + { value: "unannTypeVariable" }, |
| 81 | + { value: "methodDeclaration" }, |
| 82 | + { value: "methodModifier" }, |
| 83 | + { value: "methodHeader" }, |
| 84 | + { value: "result" }, |
| 85 | + { value: "methodDeclarator" }, |
| 86 | + { value: "receiverParameter" }, |
| 87 | + { value: "formalParameterList" }, |
| 88 | + { value: "formalParameter" }, |
| 89 | + { value: "variableParaRegularParameter" }, |
| 90 | + { value: "variableArityParameter" }, |
| 91 | + { value: "variableModifier" }, |
| 92 | + { value: "throws" }, |
| 93 | + { value: "exceptionTypeList" }, |
| 94 | + { value: "exceptionType" }, |
| 95 | + { value: "methodBody" }, |
| 96 | + { value: "instanceInitializer" }, |
| 97 | + { value: "staticInitializer" }, |
| 98 | + { value: "constructorDeclaration" }, |
| 99 | + { value: "constructorModifier" }, |
| 100 | + { value: "constructorDeclarator" }, |
| 101 | + { value: "simpleTypeName" }, |
| 102 | + { value: "constructorBody" }, |
| 103 | + { value: "explicitConstructorInvocation" }, |
| 104 | + { value: "unqualifiedExplicitConstructorInvocation" }, |
| 105 | + { value: "qualifiedExplicitConstructorInvocation" }, |
| 106 | + { value: "enumDeclaration" }, |
| 107 | + { value: "enumBody" }, |
| 108 | + { value: "enumConstantList" }, |
| 109 | + { value: "enumConstant" }, |
| 110 | + { value: "enumConstantModifier" }, |
| 111 | + { value: "enumBodyDeclarations" }, |
| 112 | + { value: "recordDeclaration" }, |
| 113 | + { value: "recordHeader" }, |
| 114 | + { value: "recordComponentList" }, |
| 115 | + { value: "recordComponent" }, |
| 116 | + { value: "variableArityRecordComponent" }, |
| 117 | + { value: "recordComponentModifier" }, |
| 118 | + { value: "recordBody" }, |
| 119 | + { value: "recordBodyDeclaration" }, |
| 120 | + { value: "compactConstructorDeclaration" }, |
| 121 | + { value: "isDims" }, |
| 122 | + { value: "expression" }, |
| 123 | + { value: "lambdaExpression" }, |
| 124 | + { value: "lambdaParameters" }, |
| 125 | + { value: "lambdaParametersWithBraces" }, |
| 126 | + { value: "lambdaParameterList" }, |
| 127 | + { value: "inferredLambdaParameterList" }, |
| 128 | + { value: "explicitLambdaParameterList" }, |
| 129 | + { value: "lambdaParameter" }, |
| 130 | + { value: "regularLambdaParameter" }, |
| 131 | + { value: "lambdaParameterType" }, |
| 132 | + { value: "lambdaBody" }, |
| 133 | + { value: "ternaryExpression" }, |
| 134 | + { value: "binaryExpression" }, |
| 135 | + { value: "unaryExpression" }, |
| 136 | + { value: "unaryExpressionNotPlusMinus" }, |
| 137 | + { value: "primary" }, |
| 138 | + { value: "primaryPrefix" }, |
| 139 | + { value: "primarySuffix" }, |
| 140 | + { value: "fqnOrRefType" }, |
| 141 | + { value: "fqnOrRefTypePartRest" }, |
| 142 | + { value: "fqnOrRefTypePartCommon" }, |
| 143 | + { value: "fqnOrRefTypePartFirst" }, |
| 144 | + { value: "parenthesisExpression" }, |
| 145 | + { value: "castExpression" }, |
| 146 | + { value: "primitiveCastExpression" }, |
| 147 | + { value: "referenceTypeCastExpression" }, |
| 148 | + { value: "newExpression" }, |
| 149 | + { value: "unqualifiedClassInstanceCreationExpression" }, |
| 150 | + { value: "classOrInterfaceTypeToInstantiate" }, |
| 151 | + { value: "typeArgumentsOrDiamond" }, |
| 152 | + { value: "diamond" }, |
| 153 | + { value: "methodInvocationSuffix" }, |
| 154 | + { value: "argumentList" }, |
| 155 | + { value: "arrayCreationExpression" }, |
| 156 | + { value: "arrayCreationDefaultInitSuffix" }, |
| 157 | + { value: "arrayCreationExplicitInitSuffix" }, |
| 158 | + { value: "dimExprs" }, |
| 159 | + { value: "dimExpr" }, |
| 160 | + { value: "classLiteralSuffix" }, |
| 161 | + { value: "arrayAccessSuffix" }, |
| 162 | + { value: "methodReferenceSuffix" }, |
| 163 | + { value: "pattern" }, |
| 164 | + { value: "typePattern" }, |
| 165 | + { value: "recordPattern" }, |
| 166 | + { value: "componentPatternList" }, |
| 167 | + { value: "componentPattern" }, |
| 168 | + { value: "unnamedPattern" }, |
| 169 | + { value: "guard" }, |
| 170 | + { value: "isRefTypeInMethodRef" }, |
| 171 | + { value: "interfaceDeclaration" }, |
| 172 | + { value: "normalInterfaceDeclaration" }, |
| 173 | + { value: "interfaceModifier" }, |
| 174 | + { value: "extendsInterfaces" }, |
| 175 | + { value: "interfacePermits" }, |
| 176 | + { value: "interfaceBody" }, |
| 177 | + { value: "interfaceMemberDeclaration" }, |
| 178 | + { value: "constantDeclaration" }, |
| 179 | + { value: "constantModifier" }, |
| 180 | + { value: "interfaceMethodDeclaration" }, |
| 181 | + { value: "interfaceMethodModifier" }, |
| 182 | + { value: "annotationTypeDeclaration" }, |
| 183 | + { value: "annotationTypeBody" }, |
| 184 | + { value: "annotationTypeMemberDeclaration" }, |
| 185 | + { value: "annotationTypeElementDeclaration" }, |
| 186 | + { value: "annotationTypeElementModifier" }, |
| 187 | + { value: "defaultValue" }, |
| 188 | + { value: "annotation" }, |
| 189 | + { value: "elementValuePairList" }, |
| 190 | + { value: "elementValuePair" }, |
| 191 | + { value: "elementValue" }, |
| 192 | + { value: "elementValueArrayInitializer" }, |
| 193 | + { value: "elementValueList" }, |
| 194 | + { value: "literal" }, |
| 195 | + { value: "integerLiteral" }, |
| 196 | + { value: "floatingPointLiteral" }, |
| 197 | + { value: "booleanLiteral" }, |
| 198 | + { value: "moduleName" }, |
| 199 | + { value: "packageName" }, |
| 200 | + { value: "typeName" }, |
| 201 | + { value: "expressionName" }, |
| 202 | + { value: "methodName" }, |
| 203 | + { value: "packageOrTypeName" }, |
| 204 | + { value: "ambiguousName" }, |
| 205 | + { value: "compilationUnit" }, |
| 206 | + { value: "ordinaryCompilationUnit" }, |
| 207 | + { value: "modularCompilationUnit" }, |
| 208 | + { value: "packageDeclaration" }, |
| 209 | + { value: "packageModifier" }, |
| 210 | + { value: "importDeclaration" }, |
| 211 | + { value: "typeDeclaration" }, |
| 212 | + { value: "moduleDeclaration" }, |
| 213 | + { value: "moduleDirective" }, |
| 214 | + { value: "requiresModuleDirective" }, |
| 215 | + { value: "exportsModuleDirective" }, |
| 216 | + { value: "opensModuleDirective" }, |
| 217 | + { value: "usesModuleDirective" }, |
| 218 | + { value: "providesModuleDirective" }, |
| 219 | + { value: "requiresModifier" }, |
| 220 | + { value: "primitiveType" }, |
| 221 | + { value: "numericType" }, |
| 222 | + { value: "integralType" }, |
| 223 | + { value: "floatingPointType" }, |
| 224 | + { value: "referenceType" }, |
| 225 | + { value: "classOrInterfaceType" }, |
| 226 | + { value: "classType" }, |
| 227 | + { value: "interfaceType" }, |
| 228 | + { value: "typeVariable" }, |
| 229 | + { value: "dims" }, |
| 230 | + { value: "typeParameter" }, |
| 231 | + { value: "typeParameterModifier" }, |
| 232 | + { value: "typeBound" }, |
| 233 | + { value: "additionalBound" }, |
| 234 | + { value: "typeArguments" }, |
| 235 | + { value: "typeArgumentList" }, |
| 236 | + { value: "typeArgument" }, |
| 237 | + { value: "wildcard" }, |
| 238 | + { value: "wildcardBounds" } |
| 239 | + ], |
| 240 | + description: "Prettify from the entrypoint, allowing to use prettier on snippet." |
| 241 | + } |
| 242 | +}; |
0 commit comments