1/* 2 * Copyright (c) 2022-2024 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 FunctionExpression, 38 IntersectionType, 39 ObjectTypeLiteral, 40 CommaOperator, 41 LimitedReturnTypeInference, 42 ClassExpression, 43 DestructuringAssignment, 44 DestructuringDeclaration, 45 VarDeclaration, 46 CatchWithUnsupportedType, 47 DeleteOperator, 48 DeclWithDuplicateName, 49 UnaryArithmNotNumber, 50 ConstructorType, 51 ConstructorIface, 52 ConstructorFuncs, 53 CallSignature, 54 TypeAssertion, 55 PrivateIdentifier, 56 LocalFunction, 57 ConditionalType, 58 MappedType, 59 NamespaceAsObject, 60 ClassAsObject, 61 ClassAsObjectError, 62 NonDeclarationInNamespace, 63 GeneratorFunction, 64 FunctionContainsThis, 65 PropertyAccessByIndex, 66 JsxElement, 67 EnumMemberNonConstInit, 68 ImplementsClass, 69 MethodReassignment, 70 MultipleStaticBlocks, 71 ThisType, 72 IntefaceExtendDifProps, 73 StructuralIdentity, 74 ExportAssignment, 75 ImportAssignment, 76 GenericCallNoTypeArgs, 77 ParameterProperties, 78 InstanceofUnsupported, 79 ShorthandAmbientModuleDecl, 80 WildcardsInModuleName, 81 UMDModuleDefinition, 82 NewTarget, 83 DefiniteAssignment, 84 DefiniteAssignmentError, 85 Prototype, 86 GlobalThis, 87 GlobalThisError, 88 UtilityType, 89 PropertyDeclOnFunction, 90 FunctionApplyCall, 91 FunctionBind, 92 FunctionBindError, 93 ConstAssertion, 94 ImportAssertion, 95 SpreadOperator, 96 LimitedStdLibApi, 97 ErrorSuppression, 98 StrictDiagnostic, 99 ImportAfterStatement, 100 EsObjectType, 101 EsObjectTypeError, 102 SendableClassInheritance, 103 SendablePropType, 104 SendableDefiniteAssignment, 105 SendableGenericTypes, 106 SendableCapturedVars, 107 SendableClassDecorator, 108 SendableObjectInitialization, 109 SendableComputedPropName, 110 SendableAsExpr, 111 SharedNoSideEffectImport, 112 SharedModuleExports, 113 SharedModuleNoWildcardExport, 114 NoTsImportEts, 115 SendableTypeInheritance, 116 SendableTypeExported, 117 NoTsReExportEts, 118 NoNameSpaceImportEtsToTs, 119 NoSIdeEffectImportEtsToTs, 120 SendableExplicitFieldType, 121 SendableFunctionImportedVariables, 122 SendableFunctionDecorator, 123 SendableTypeAliasDecorator, 124 SendableTypeAliasDeclaration, 125 SendableFunctionAssignment, 126 SendableFunctionOverloadDecorator, 127 SendableFunctionProperty, 128 SendableFunctionAsExpr, 129 SendableDecoratorLimited, 130 SendableClosureExport, 131 SharedModuleExportsWarning, 132 SendableBetaCompatible, 133 ObjectLiteralProperty, 134 OptionalMethod, 135 ImportType, 136 DynamicCtorCall, 137 // this should always be last enum 138 LAST_ID 139} 140