6076a436b2258a4361643a9c899b393dd08ae1fd
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / @typescript-eslint / visitor-keys / dist / visitor-keys.js
1 "use strict";
2 var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3     if (k2 === undefined) k2 = k;
4     Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5 }) : (function(o, m, k, k2) {
6     if (k2 === undefined) k2 = k;
7     o[k2] = m[k];
8 }));
9 var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10     Object.defineProperty(o, "default", { enumerable: true, value: v });
11 }) : function(o, v) {
12     o["default"] = v;
13 });
14 var __importStar = (this && this.__importStar) || function (mod) {
15     if (mod && mod.__esModule) return mod;
16     var result = {};
17     if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18     __setModuleDefault(result, mod);
19     return result;
20 };
21 Object.defineProperty(exports, "__esModule", { value: true });
22 exports.visitorKeys = void 0;
23 const eslintVisitorKeys = __importStar(require("eslint-visitor-keys"));
24 const visitorKeys = eslintVisitorKeys.unionWith({
25     // Additional estree nodes.
26     Import: [],
27     // ES2020
28     ImportExpression: ['source'],
29     // Additional Properties.
30     ArrayPattern: ['decorators', 'elements', 'typeAnnotation'],
31     ArrowFunctionExpression: ['typeParameters', 'params', 'returnType', 'body'],
32     ClassDeclaration: [
33         'decorators',
34         'id',
35         'typeParameters',
36         'superClass',
37         'superTypeParameters',
38         'implements',
39         'body',
40     ],
41     ClassExpression: [
42         'decorators',
43         'id',
44         'typeParameters',
45         'superClass',
46         'superTypeParameters',
47         'implements',
48         'body',
49     ],
50     TaggedTemplateExpression: ['tag', 'typeParameters', 'quasi'],
51     FunctionDeclaration: ['id', 'typeParameters', 'params', 'returnType', 'body'],
52     FunctionExpression: ['id', 'typeParameters', 'params', 'returnType', 'body'],
53     Identifier: ['decorators', 'typeAnnotation'],
54     MethodDefinition: ['decorators', 'key', 'value'],
55     ObjectPattern: ['decorators', 'properties', 'typeAnnotation'],
56     RestElement: ['decorators', 'argument', 'typeAnnotation'],
57     NewExpression: ['callee', 'typeParameters', 'arguments'],
58     CallExpression: ['callee', 'typeParameters', 'arguments'],
59     // JSX
60     JSXOpeningElement: ['name', 'typeParameters', 'attributes'],
61     JSXClosingFragment: [],
62     JSXOpeningFragment: [],
63     JSXSpreadChild: ['expression'],
64     // Additional Nodes.
65     ClassProperty: ['decorators', 'key', 'typeAnnotation', 'value'],
66     Decorator: ['expression'],
67     OptionalCallExpression: ['callee', 'typeParameters', 'arguments'],
68     OptionalMemberExpression: eslintVisitorKeys.KEYS.MemberExpression,
69     TSAbstractClassProperty: ['decorators', 'key', 'typeAnnotation', 'value'],
70     TSAbstractKeyword: [],
71     TSAbstractMethodDefinition: ['key', 'value'],
72     TSAnyKeyword: [],
73     TSArrayType: ['elementType'],
74     TSAsExpression: ['expression', 'typeAnnotation'],
75     TSAsyncKeyword: [],
76     TSBigIntKeyword: [],
77     TSBooleanKeyword: [],
78     TSCallSignatureDeclaration: ['typeParameters', 'params', 'returnType'],
79     TSClassImplements: ['expression', 'typeParameters'],
80     TSConditionalType: ['checkType', 'extendsType', 'trueType', 'falseType'],
81     TSConstructSignatureDeclaration: ['typeParameters', 'params', 'returnType'],
82     TSConstructorType: ['typeParameters', 'params', 'returnType'],
83     TSDeclareFunction: ['id', 'typeParameters', 'params', 'returnType', 'body'],
84     TSDeclareKeyword: [],
85     TSEmptyBodyFunctionExpression: [
86         'id',
87         'typeParameters',
88         'params',
89         'returnType',
90     ],
91     TSEnumDeclaration: ['id', 'members'],
92     TSEnumMember: ['id', 'initializer'],
93     TSExportAssignment: ['expression'],
94     TSExportKeyword: [],
95     TSExternalModuleReference: ['expression'],
96     TSImportType: ['parameter', 'qualifier', 'typeParameters'],
97     TSInferType: ['typeParameter'],
98     TSLiteralType: ['literal'],
99     TSIntersectionType: ['types'],
100     TSIndexedAccessType: ['indexType', 'objectType'],
101     TSIndexSignature: ['parameters', 'typeAnnotation'],
102     TSInterfaceBody: ['body'],
103     TSInterfaceDeclaration: ['id', 'typeParameters', 'extends', 'body'],
104     TSInterfaceHeritage: ['expression', 'typeParameters'],
105     TSImportEqualsDeclaration: ['id', 'moduleReference'],
106     TSFunctionType: ['typeParameters', 'params', 'returnType'],
107     TSMappedType: ['typeParameter', 'typeAnnotation'],
108     TSMethodSignature: ['typeParameters', 'key', 'params', 'returnType'],
109     TSModuleBlock: ['body'],
110     TSModuleDeclaration: ['id', 'body'],
111     TSNamespaceExportDeclaration: ['id'],
112     TSNonNullExpression: ['expression'],
113     TSNeverKeyword: [],
114     TSNullKeyword: [],
115     TSNumberKeyword: [],
116     TSObjectKeyword: [],
117     TSOptionalType: ['typeAnnotation'],
118     TSParameterProperty: ['decorators', 'parameter'],
119     TSParenthesizedType: ['typeAnnotation'],
120     TSPrivateKeyword: [],
121     TSPropertySignature: ['typeAnnotation', 'key', 'initializer'],
122     TSProtectedKeyword: [],
123     TSPublicKeyword: [],
124     TSQualifiedName: ['left', 'right'],
125     TSReadonlyKeyword: [],
126     TSRestType: ['typeAnnotation'],
127     TSStaticKeyword: [],
128     TSStringKeyword: [],
129     TSSymbolKeyword: [],
130     TSThisType: [],
131     TSTupleType: ['elementTypes'],
132     TSTypeAliasDeclaration: ['id', 'typeParameters', 'typeAnnotation'],
133     TSTypeAnnotation: ['typeAnnotation'],
134     TSTypeAssertion: ['typeAnnotation', 'expression'],
135     TSTypeLiteral: ['members'],
136     TSTypeOperator: ['typeAnnotation'],
137     TSTypeParameter: ['name', 'constraint', 'default'],
138     TSTypeParameterDeclaration: ['params'],
139     TSTypeParameterInstantiation: ['params'],
140     TSTypePredicate: ['typeAnnotation', 'parameterName'],
141     TSTypeReference: ['typeName', 'typeParameters'],
142     TSTypeQuery: ['exprName'],
143     TSUnionType: ['types'],
144     TSUndefinedKeyword: [],
145     TSUnknownKeyword: [],
146     TSVoidKeyword: [],
147 });
148 exports.visitorKeys = visitorKeys;
149 //# sourceMappingURL=visitor-keys.js.map