• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2022-2023 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  RegexLiteral,
25  IsOperator,
26  DestructuringParameter,
27  YieldExpression,
28  InterfaceMerging,
29  EnumMerging,
30  InterfaceExtendsClass,
31  IndexMember,
32  WithStatement,
33  ThrowStatement,
34  IndexedAccessType,
35  UnknownType,
36  ForInStatement,
37  InOperator,
38  ImportFromPath,
39  FunctionExpression,
40  IntersectionType,
41  ObjectTypeLiteral,
42  CommaOperator,
43  LimitedReturnTypeInference,
44  LambdaWithTypeParameters,
45  ClassExpression,
46  DestructuringAssignment,
47  DestructuringDeclaration,
48  VarDeclaration,
49  CatchWithUnsupportedType,
50  DeleteOperator,
51  DeclWithDuplicateName,
52  UnaryArithmNotNumber,
53  ConstructorType,
54  ConstructorIface,
55  ConstructorFuncs,
56  CallSignature,
57  TypeAssertion,
58  PrivateIdentifier,
59  LocalFunction,
60  ConditionalType,
61  MappedType,
62  NamespaceAsObject,
63  ClassAsObject,
64  NonDeclarationInNamespace,
65  GeneratorFunction,
66  FunctionContainsThis,
67  PropertyAccessByIndex,
68  JsxElement,
69  EnumMemberNonConstInit,
70  ImplementsClass,
71  MethodReassignment,
72  MultipleStaticBlocks,
73  ThisType,
74  IntefaceExtendDifProps,
75  StructuralIdentity,
76  TypeOnlyImport,
77  TypeOnlyExport,
78  DefaultImport,
79  ExportAssignment,
80  ImportAssignment,
81  GenericCallNoTypeArgs,
82  ParameterProperties,
83  InstanceofUnsupported,
84  ShorthandAmbientModuleDecl,
85  WildcardsInModuleName,
86  UMDModuleDefinition,
87  NewTarget,
88  DefiniteAssignment,
89  Prototype,
90  GlobalThis,
91  UtilityType,
92  PropertyDeclOnFunction,
93  FunctionApplyBindCall,
94  ConstAssertion,
95  ImportAssertion,
96  SpreadOperator,
97  LimitedStdLibApi,
98  ErrorSuppression,
99  StrictDiagnostic,
100  UnsupportedDecorators,
101  ImportAfterStatement,
102  EsObjectType,
103  LAST_ID, // this should always be last enum`
104}
105