1/* 2 * Copyright (c) 2022-2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16export enum FaultID { 17 AnyType, 18 SymbolType, 19 ObjectLiteralNoContextType, 20 ArrayLiteralNoContextType, 21 ComputedPropertyName, 22 LiteralAsPropertyName, 23 TypeQuery, 24 IsOperator, 25 DestructuringParameter, 26 YieldExpression, 27 InterfaceMerging, 28 EnumMerging, 29 InterfaceExtendsClass, 30 IndexMember, 31 WithStatement, 32 ThrowStatement, 33 IndexedAccessType, 34 UnknownType, 35 ForInStatement, 36 InOperator, 37 ImportFromPath, 38 FunctionExpression, 39 IntersectionType, 40 ObjectTypeLiteral, 41 CommaOperator, 42 LimitedReturnTypeInference, 43 LambdaWithTypeParameters, 44 ClassExpression, 45 DestructuringAssignment, 46 DestructuringDeclaration, 47 VarDeclaration, 48 CatchWithUnsupportedType, 49 DeleteOperator, 50 DeclWithDuplicateName, 51 UnaryArithmNotNumber, 52 ConstructorType, 53 ConstructorIface, 54 ConstructorFuncs, 55 CallSignature, 56 TypeAssertion, 57 PrivateIdentifier, 58 LocalFunction, 59 ConditionalType, 60 MappedType, 61 NamespaceAsObject, 62 ClassAsObject, 63 NonDeclarationInNamespace, 64 GeneratorFunction, 65 FunctionContainsThis, 66 NoOptionalMemberFunction, 67 PropertyAccessByIndex, 68 JsxElement, 69 EnumMemberNonConstInit, 70 ImplementsClass, 71 MethodReassignment, 72 MultipleStaticBlocks, 73 ThisType, 74 IntefaceExtendDifProps, 75 StructuralIdentity, 76 DefaultImport, 77 ExportAssignment, 78 ImportAssignment, 79 GenericCallNoTypeArgs, 80 ParameterProperties, 81 InstanceofUnsupported, 82 ShorthandAmbientModuleDecl, 83 WildcardsInModuleName, 84 UMDModuleDefinition, 85 NewTarget, 86 DefiniteAssignment, 87 Prototype, 88 GlobalThis, 89 UtilityType, 90 PropertyDeclOnFunction, 91 FunctionApplyCall, 92 FunctionBind, 93 ConstAssertion, 94 ImportAssertion, 95 SpreadOperator, 96 LimitedStdLibApi, 97 ErrorSuppression, 98 StrictDiagnostic, 99 ImportAfterStatement, 100 ESObjectType, 101 NumbericLiteral, 102 ConditionalTypes, 103 EnumWithMixedType, 104 IndexAccessType, 105 Module, 106 ExportNamespace, 107 TypeLiteral, 108 KeyofType, 109 AnyToJSValue, 110 UnknownToJSValue, 111 SymbolToJSValue, 112 ESObjectToJSValue, 113 IntersectionTypeJSValue, 114 TypeDeclaration, 115 DuplicatedDeclaration, 116 ObjectParametersToJSValue, 117 WrapperToPrimitive, 118 TypeTransform, 119 StringLiteralType, 120 StringTypeAlias, 121 ObjectBindingParams, 122 ReflectQuery, 123 VarDeclarationAssignment, 124 LiteralType, 125 LimitImport, 126 NoInitializer, 127 DuplicatedEnum, 128 NoPrivateMember, 129 NoETSKeyword, 130 CallorOptionFuncs, 131 NoETSKeywordInExport, 132 NoETSKeywordInImport, 133 DefaultExport, 134 InstanceType, 135 NoEmptyImport, 136 NoEmptyExport, 137 TypeGeneric, 138 LimitExtends, 139 PropertyAccessExpression, 140 NoBuiltInType, 141 AddDeclareToTopLevelInterfaces, 142 RemoveLimitDecorator, 143 TupleTypeToArray, 144 StructDeclaration, 145 NoVoidUnionType, 146 ConstLiteralToType, 147 // this should always be last enum 148 LAST_ID 149} 150