• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  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  NoStaticOnClass,
70  NoConstructorOnClass,
71  RuntimeArrayCheck,
72  MethodReassignment,
73  MultipleStaticBlocks,
74  ThisType,
75  IntefaceExtendDifProps,
76  StructuralIdentity,
77  ExportAssignment,
78  ImportAssignment,
79  GenericCallNoTypeArgs,
80  ParameterProperties,
81  InstanceofUnsupported,
82  ShorthandAmbientModuleDecl,
83  WildcardsInModuleName,
84  UMDModuleDefinition,
85  NewTarget,
86  DefiniteAssignment,
87  DefiniteAssignmentError,
88  Prototype,
89  GlobalThis,
90  GlobalThisError,
91  UtilityType,
92  PropertyDeclOnFunction,
93  FunctionApplyCall,
94  FunctionBind,
95  FunctionBindError,
96  ConstAssertion,
97  ImportAssertion,
98  SpreadOperator,
99  LimitedStdLibApi,
100  LimitedStdLibNoASON,
101  NoNeedStdLibSendableContainer,
102  ErrorSuppression,
103  StrictDiagnostic,
104  ImportAfterStatement,
105  EsValueType,
106  EsValueTypeError,
107  SendableClassInheritance,
108  SendablePropType,
109  SendableDefiniteAssignment,
110  SendableGenericTypes,
111  SendableCapturedVars,
112  SendableClassDecorator,
113  SendableObjectInitialization,
114  SendableComputedPropName,
115  SendableAsExpr,
116  SharedNoSideEffectImport,
117  SharedModuleExports,
118  SharedModuleNoWildcardExport,
119  NoTsImportEts,
120  SendableTypeInheritance,
121  SendableTypeExported,
122  NoTsReExportEts,
123  NoNameSpaceImportEtsToTs,
124  NoSideEffectImportEtsToTs,
125  SendableExplicitFieldType,
126  SendableFunctionImportedVariables,
127  SendableFunctionDecorator,
128  SendableTypeAliasDecorator,
129  SendableTypeAliasDeclaration,
130  SendableFunctionAssignment,
131  SendableFunctionOverloadDecorator,
132  SendableFunctionProperty,
133  SendableFunctionAsExpr,
134  SendableDecoratorLimited,
135  SharedModuleExportsWarning,
136  SendableBetaCompatible,
137  ObjectLiteralProperty,
138  OptionalMethod,
139  ImportType,
140  DynamicCtorCall,
141  MathPow,
142  VoidOperator,
143  ExponentOp,
144  RegularExpressionLiteral,
145  ArgumentsObject,
146  LimitedVoidType,
147  DecoratorsNotSupported,
148  DebuggerStatement,
149  TsOverload,
150  NoSideEffectImport,
151  DynamicImport,
152  ImportLazyIdentifier,
153  CaseExpression,
154  SwitchExpression,
155  LimitedLiteralType,
156  IndexNegative,
157  ArrayIndexExprType,
158  AvoidUnionTypes,
159  NoTuplesArrays,
160  DoubleExclaBindingNotSupported,
161  DoubleDollarBindingNotSupported,
162  DollarBindingNotSupported,
163  ExtendDecoratorNotSupported,
164  MethodOverridingField,
165  InteropJsObjectConditionJudgment,
166  InteropJsObjectExpandStaticInstance,
167  ExplicitFunctionType,
168  ClassstaticInitialization,
169  TaggedTemplates,
170  IncompationbleFunctionType,
171  InvalidIdentifier,
172  ExtendsExpression,
173  NumericSemantics,
174  AnimatableExtendDecoratorTransform,
175  NoDuplicateFunctionName,
176  OhmUrlFullPath,
177  UIInterfaceImport,
178  StylesDecoratorNotSupported,
179  DataObservation,
180  InteropCallReflect,
181  InteropCallObjectParam,
182  InteropDirectAccessToTSTypes,
183  InteropTSFunctionInvoke,
184  InteropJSFunctionInvoke,
185  LimitedVoidTypeFromSdk,
186  EntryAnnotation,
187  ProvideAnnotation,
188  UseSharedDeprecated,
189  UseConcurrentDeprecated,
190  MethodInheritRule,
191  OptionalMethodFromSdk,
192  SendablePropTypeFromSdk,
193  ConstructorIfaceFromSdk,
194  PropertyAccessByIndexFromSdk,
195  ConstructorTypesDeprecated,
196  QuotedHyphenPropsDeprecated,
197  DuplicateDeclNameFromSdk,
198  SdkTypeQuery,
199  IsConcurrentDeprecated,
200  InteropStaticObjectLiterals,
201  InteropJsObjectInheritance,
202  InteropJsObjectTraverseJsInstance,
203  InteropJsObjectCallStaticFunc,
204  InteropJsObjectExport,
205  DefaultArgsBehindRequiredArgs,
206  LimitedStdLibNoImportConcurrency,
207  MissingSuperCall,
208  InteropObjectLiteralAmbiguity,
209  InteropObjectLiteralClass,
210  UnsupportPropNameFromValue,
211  InterOpImportJs,
212  CallJSFunction,
213  InteropObjectProperty,
214  InterOpConvertImport,
215  InterOpImportJsForTypeOf,
216  InteropNoHaveNum,
217  BinaryOperations,
218  InterOpImportJsDataCompare,
219  InteropEqualityJudgment,
220  InterOpImportJsIndex,
221  InstantiatedJsOjbect,
222  InteropCallObjectMethods,
223  InteropJsInstanceof,
224  InteropIncrementDecrement,
225  BuiltinThisArgs,
226  BuiltinSymbolIterator,
227  NoPropertyDescriptor,
228  BuiltinNoCtorFunc,
229  SharedArrayBufferDeprecated,
230  SetCloneListDeprecated,
231  SetTransferListDeprecated,
232  SdkAbilityAsynchronousLifecycle,
233  LimitedStdLibNoSendableDecorator,
234  LimitedStdLibNoDoncurrentDecorator,
235  NoNeedStdlibWorker,
236  BuiltinGetOwnPropertyNames,
237  LocalBuilderDecoratorNotSupported,
238  MakeObservedIsNotSupported,
239  NoEnumPropAsType,
240  NoAwaitJsPromise,
241  NosparseArray,
242  NoTsLikeSmartType,
243  ArrayTypeImmutable,
244  CreatingPrimitiveTypes,
245  TsLikeCatchType,
246  NumericBigintCompare,
247  NondecimalBigint,
248  UnsupportOperator,
249  CustomLayoutNeedAddDecorator,
250  PropDecoratorNotSupported,
251  StoragePropDecoratorNotSupported,
252  LocalStoragePropDecoratorNotSupported,
253  PropFunctionNotSupported,
254  SetAndPropFunctionNotSupported,
255  PropNeedCallMethodForDeepCopy,
256  StateStylesBlockNeedArrowFunc,
257  PromiseVoidNeedResolveArg,
258  // this should always be last enum
259  LAST_ID
260}
261