getParent( context: RuleContext, node: Node,): | undefined | MethodDefinition | Property | CatchClause | ClassDeclaration | ClassExpression | ClassBody | FunctionExpression | ArrowFunctionExpression | Identifier | SimpleLiteral | RegExpLiteral | BigIntLiteral | ArrayExpression | AssignmentExpression | AwaitExpression | BinaryExpression | SimpleCallExpression | NewExpression | ChainExpression | ConditionalExpression | ImportExpression | LogicalExpression | MemberExpression | MetaProperty | ObjectExpression | SequenceExpression | TaggedTemplateExpression | TemplateLiteral | ThisExpression | UnaryExpression | UpdateExpression | YieldExpression | FunctionDeclaration | ImportDeclaration | ExportNamedDeclaration | ExportDefaultDeclaration | ExportAllDeclaration | ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ExportSpecifier | ObjectPattern | ArrayPattern | RestElement | AssignmentPattern | PrivateIdentifier | Program | PropertyDefinition | SpreadElement | ExpressionStatement | BlockStatement | StaticBlock | EmptyStatement | DebuggerStatement | WithStatement | ReturnStatement | LabeledStatement | BreakStatement | ContinueStatement | IfStatement | SwitchStatement | ThrowStatement | TryStatement | WhileStatement | DoWhileStatement | ForStatement | ForInStatement | ForOfStatement | VariableDeclaration | Super | SwitchCase | TemplateElement | VariableDeclarator Parameters
- context: RuleContext
- node: Node
Returns
| undefined
| MethodDefinition
| Property
| CatchClause
| ClassDeclaration
| ClassExpression
| ClassBody
| FunctionExpression
| ArrowFunctionExpression
| Identifier
| SimpleLiteral
| RegExpLiteral
| BigIntLiteral
| ArrayExpression
| AssignmentExpression
| AwaitExpression
| BinaryExpression
| SimpleCallExpression
| NewExpression
| ChainExpression
| ConditionalExpression
| ImportExpression
| LogicalExpression
| MemberExpression
| MetaProperty
| ObjectExpression
| SequenceExpression
| TaggedTemplateExpression
| TemplateLiteral
| ThisExpression
| UnaryExpression
| UpdateExpression
| YieldExpression
| FunctionDeclaration
| ImportDeclaration
| ExportNamedDeclaration
| ExportDefaultDeclaration
| ExportAllDeclaration
| ImportSpecifier
| ImportDefaultSpecifier
| ImportNamespaceSpecifier
| ExportSpecifier
| ObjectPattern
| ArrayPattern
| RestElement
| AssignmentPattern
| PrivateIdentifier
| Program
| PropertyDefinition
| SpreadElement
| ExpressionStatement
| BlockStatement
| StaticBlock
| EmptyStatement
| DebuggerStatement
| WithStatement
| ReturnStatement
| LabeledStatement
| BreakStatement
| ContinueStatement
| IfStatement
| SwitchStatement
| ThrowStatement
| TryStatement
| WhileStatement
| DoWhileStatement
| ForStatement
| ForInStatement
| ForOfStatement
| VariableDeclaration
| Super
| SwitchCase
| TemplateElement
| VariableDeclarator