.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / @typescript-eslint / experimental-utils / _ts3.4 / dist / ast-utils / predicates.d.ts
1 import { TSESTree } from '../ts-estree';\r
2 declare function isOptionalChainPunctuator(token: TSESTree.Token | TSESTree.Comment): token is TSESTree.PunctuatorToken & {\r
3     value: '?.';\r
4 };\r
5 declare function isNotOptionalChainPunctuator(token: TSESTree.Token | TSESTree.Comment): boolean;\r
6 declare function isNonNullAssertionPunctuator(token: TSESTree.Token | TSESTree.Comment): token is TSESTree.PunctuatorToken & {\r
7     value: '!';\r
8 };\r
9 declare function isNotNonNullAssertionPunctuator(token: TSESTree.Token | TSESTree.Comment): boolean;\r
10 /**\r
11  * Returns true if and only if the node represents: foo?.() or foo.bar?.()\r
12  */\r
13 declare function isOptionalOptionalCallExpression(node: TSESTree.Node): node is TSESTree.OptionalCallExpression & {\r
14     optional: true;\r
15 };\r
16 /**\r
17  * Returns true if and only if the node represents logical OR\r
18  */\r
19 declare function isLogicalOrOperator(node: TSESTree.Node): node is TSESTree.LogicalExpression & {\r
20     operator: '||';\r
21 };\r
22 /**\r
23  * Checks if a node is a type assertion:\r
24  * ```\r
25  * x as foo\r
26  * <foo>x\r
27  * ```\r
28  */\r
29 declare function isTypeAssertion(node: TSESTree.Node | undefined | null): node is TSESTree.TSAsExpression | TSESTree.TSTypeAssertion;\r
30 declare function isVariableDeclarator(node: TSESTree.Node | undefined): node is TSESTree.VariableDeclarator;\r
31 declare function isFunction(node: TSESTree.Node | undefined): node is TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclaration | TSESTree.FunctionExpression;\r
32 declare function isFunctionType(node: TSESTree.Node | undefined): node is TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructorType | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSFunctionType | TSESTree.TSMethodSignature;\r
33 declare function isFunctionOrFunctionType(node: TSESTree.Node | undefined): node is TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclaration | TSESTree.FunctionExpression | TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructorType | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSFunctionType | TSESTree.TSMethodSignature;\r
34 declare function isTSFunctionType(node: TSESTree.Node | undefined): node is TSESTree.TSFunctionType;\r
35 declare function isTSConstructorType(node: TSESTree.Node | undefined): node is TSESTree.TSConstructorType;\r
36 declare function isClassOrTypeElement(node: TSESTree.Node | undefined): node is TSESTree.ClassElement | TSESTree.TypeElement;\r
37 /**\r
38  * Checks if a node is a constructor method.\r
39  */\r
40 declare function isConstructor(node: TSESTree.Node | undefined): node is TSESTree.MethodDefinition;\r
41 /**\r
42  * Checks if a node is a setter method.\r
43  */\r
44 declare function isSetter(node: TSESTree.Node | undefined): node is TSESTree.MethodDefinition | TSESTree.Property;\r
45 declare function isIdentifier(node: TSESTree.Node | undefined): node is TSESTree.Identifier;\r
46 /**\r
47  * Checks if a node represents an `await …` expression.\r
48  */\r
49 declare function isAwaitExpression(node: TSESTree.Node | undefined | null): node is TSESTree.AwaitExpression;\r
50 /**\r
51  * Checks if a possible token is the `await` keyword.\r
52  */\r
53 declare function isAwaitKeyword(node: TSESTree.Token | TSESTree.Comment | undefined | null): node is TSESTree.KeywordToken & {\r
54     value: 'await';\r
55 };\r
56 declare function isMemberOrOptionalMemberExpression(node: TSESTree.Node): node is TSESTree.MemberExpression | TSESTree.OptionalMemberExpression;\r
57 export { isAwaitExpression, isAwaitKeyword, isConstructor, isClassOrTypeElement, isFunction, isFunctionOrFunctionType, isFunctionType, isIdentifier, isLogicalOrOperator, isMemberOrOptionalMemberExpression, isNonNullAssertionPunctuator, isNotNonNullAssertionPunctuator, isNotOptionalChainPunctuator, isOptionalChainPunctuator, isOptionalOptionalCallExpression, isSetter, isTSConstructorType, isTSFunctionType, isTypeAssertion, isVariableDeclarator, };\r
58 //# sourceMappingURL=predicates.d.ts.map\r