/* * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ export enum FaultID { AnyType, SymbolType, ObjectLiteralNoContextType, ArrayLiteralNoContextType, ComputedPropertyName, LiteralAsPropertyName, TypeQuery, IsOperator, DestructuringParameter, YieldExpression, InterfaceMerging, EnumMerging, InterfaceExtendsClass, IndexMember, WithStatement, ThrowStatement, IndexedAccessType, UnknownType, ForInStatement, InOperator, FunctionExpression, IntersectionType, ObjectTypeLiteral, CommaOperator, LimitedReturnTypeInference, ClassExpression, DestructuringAssignment, DestructuringDeclaration, VarDeclaration, CatchWithUnsupportedType, DeleteOperator, DeclWithDuplicateName, UnaryArithmNotNumber, ConstructorType, ConstructorIface, ConstructorFuncs, CallSignature, TypeAssertion, PrivateIdentifier, LocalFunction, ConditionalType, MappedType, NamespaceAsObject, ClassAsObject, ClassAsObjectError, NonDeclarationInNamespace, GeneratorFunction, FunctionContainsThis, PropertyAccessByIndex, JsxElement, EnumMemberNonConstInit, ImplementsClass, NoStaticOnClass, NoConstructorOnClass, RuntimeArrayCheck, MethodReassignment, MultipleStaticBlocks, ThisType, IntefaceExtendDifProps, StructuralIdentity, ExportAssignment, ImportAssignment, GenericCallNoTypeArgs, ParameterProperties, InstanceofUnsupported, ShorthandAmbientModuleDecl, WildcardsInModuleName, UMDModuleDefinition, NewTarget, DefiniteAssignment, DefiniteAssignmentError, Prototype, GlobalThis, GlobalThisError, UtilityType, PropertyDeclOnFunction, FunctionApplyCall, FunctionBind, FunctionBindError, ConstAssertion, ImportAssertion, SpreadOperator, LimitedStdLibApi, LimitedStdLibNoASON, NoNeedStdLibSendableContainer, ErrorSuppression, StrictDiagnostic, ImportAfterStatement, EsValueType, EsValueTypeError, SendableClassInheritance, SendablePropType, SendableDefiniteAssignment, SendableGenericTypes, SendableCapturedVars, SendableClassDecorator, SendableObjectInitialization, SendableComputedPropName, SendableAsExpr, SharedNoSideEffectImport, SharedModuleExports, SharedModuleNoWildcardExport, NoTsImportEts, SendableTypeInheritance, SendableTypeExported, NoTsReExportEts, NoNameSpaceImportEtsToTs, NoSideEffectImportEtsToTs, SendableExplicitFieldType, SendableFunctionImportedVariables, SendableFunctionDecorator, SendableTypeAliasDecorator, SendableTypeAliasDeclaration, SendableFunctionAssignment, SendableFunctionOverloadDecorator, SendableFunctionProperty, SendableFunctionAsExpr, SendableDecoratorLimited, SharedModuleExportsWarning, SendableBetaCompatible, ObjectLiteralProperty, OptionalMethod, ImportType, DynamicCtorCall, MathPow, VoidOperator, ExponentOp, RegularExpressionLiteral, ArgumentsObject, LimitedVoidType, DecoratorsNotSupported, DebuggerStatement, TsOverload, NoSideEffectImport, DynamicImport, ImportLazyIdentifier, CaseExpression, SwitchExpression, LimitedLiteralType, IndexNegative, ArrayIndexExprType, AvoidUnionTypes, NoTuplesArrays, DoubleExclaBindingNotSupported, DoubleDollarBindingNotSupported, DollarBindingNotSupported, ExtendDecoratorNotSupported, MethodOverridingField, InteropJsObjectConditionJudgment, InteropJsObjectExpandStaticInstance, ExplicitFunctionType, ClassstaticInitialization, TaggedTemplates, IncompationbleFunctionType, InvalidIdentifier, ExtendsExpression, NumericSemantics, AnimatableExtendDecoratorTransform, NoDuplicateFunctionName, OhmUrlFullPath, UIInterfaceImport, StylesDecoratorNotSupported, DataObservation, InteropCallReflect, InteropCallObjectParam, InteropDirectAccessToTSTypes, InteropTSFunctionInvoke, InteropJSFunctionInvoke, LimitedVoidTypeFromSdk, EntryAnnotation, ProvideAnnotation, UseSharedDeprecated, UseConcurrentDeprecated, MethodInheritRule, OptionalMethodFromSdk, SendablePropTypeFromSdk, ConstructorIfaceFromSdk, PropertyAccessByIndexFromSdk, ConstructorTypesDeprecated, QuotedHyphenPropsDeprecated, DuplicateDeclNameFromSdk, SdkTypeQuery, IsConcurrentDeprecated, InteropStaticObjectLiterals, InteropJsObjectInheritance, InteropJsObjectTraverseJsInstance, InteropJsObjectCallStaticFunc, InteropJsObjectExport, DefaultArgsBehindRequiredArgs, LimitedStdLibNoImportConcurrency, MissingSuperCall, InteropObjectLiteralAmbiguity, InteropObjectLiteralClass, UnsupportPropNameFromValue, InterOpImportJs, CallJSFunction, InteropObjectProperty, InterOpConvertImport, InterOpImportJsForTypeOf, InteropNoHaveNum, BinaryOperations, InterOpImportJsDataCompare, InteropEqualityJudgment, InterOpImportJsIndex, InstantiatedJsOjbect, InteropCallObjectMethods, InteropJsInstanceof, InteropIncrementDecrement, BuiltinThisArgs, BuiltinSymbolIterator, NoPropertyDescriptor, BuiltinNoCtorFunc, SharedArrayBufferDeprecated, SetCloneListDeprecated, SetTransferListDeprecated, SdkAbilityAsynchronousLifecycle, LimitedStdLibNoSendableDecorator, LimitedStdLibNoDoncurrentDecorator, NoNeedStdlibWorker, BuiltinGetOwnPropertyNames, LocalBuilderDecoratorNotSupported, MakeObservedIsNotSupported, NoEnumPropAsType, NoAwaitJsPromise, NosparseArray, NoTsLikeSmartType, ArrayTypeImmutable, CreatingPrimitiveTypes, TsLikeCatchType, NumericBigintCompare, NondecimalBigint, UnsupportOperator, CustomLayoutNeedAddDecorator, PropDecoratorNotSupported, StoragePropDecoratorNotSupported, LocalStoragePropDecoratorNotSupported, PropFunctionNotSupported, SetAndPropFunctionNotSupported, PropNeedCallMethodForDeepCopy, StateStylesBlockNeedArrowFunc, PromiseVoidNeedResolveArg, // this should always be last enum LAST_ID }