• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  NonDeclarationInNamespace,
62  GeneratorFunction,
63  FunctionContainsThis,
64  PropertyAccessByIndex,
65  JsxElement,
66  EnumMemberNonConstInit,
67  ImplementsClass,
68  MethodReassignment,
69  MultipleStaticBlocks,
70  ThisTyping,
71  IntefaceExtendDifProps,
72  StructuralIdentity,
73  ExportAssignment,
74  ImportAssignment,
75  GenericCallNoTypeArgs,
76  ParameterProperties,
77  InstanceofUnsupported,
78  ShorthandAmbientModuleDecl,
79  WildcardsInModuleName,
80  UMDModuleDefinition,
81  NewTarget,
82  DefiniteAssignment,
83  Prototype,
84  GlobalThis,
85  UtilityType,
86  PropertyDeclOnFunction,
87  FunctionApplyCall,
88  FunctionBind,
89  ConstAssertion,
90  ImportAssertion,
91  SpreadOperator,
92  LimitedStdLibApi,
93  ErrorSuppression,
94  StrictDiagnostic,
95  ImportAfterStatement,
96  EsObjectType,
97  SendableClassInheritance,
98  SendablePropType,
99  SendableDefiniteAssignment,
100  SendableGenericTypes,
101  SendableCapturedVars,
102  SendableClassDecorator,
103  SendableObjectInitialization,
104  SendableComputedPropName,
105  SendableAsExpr,
106  SharedNoSideEffectImport,
107  SharedModuleExports,
108  SharedModuleNoWildcardExport,
109  NoTsImportEts,
110  SendableTypeInheritance,
111  SendableTypeExported,
112  NoTsReExportEts,
113  NoNameSpaceImportEtsToTs,
114  NoSIdeEffectImportEtsToTs,
115  SendableExplicitFieldType,
116  SendableFunctionImportedVariables,
117  SendableFunctionDecorator,
118  SendableTypeAliasDecorator,
119  SendableTypeAliasDeclaration,
120  SendableFunctionAssignment,
121  SendableFunctionOverloadDecorator,
122  SendableFunctionProperty,
123  SendableFunctionAsExpr,
124  SendableDecoratorLimited,
125  // this should always be last enum
126  LAST_ID
127}
128