function exitFunction(node) {
			const methodUsesThis = popContext();

			if (isIncludedInstanceMethod(node.parent) && !methodUsesThis) {
				context.report({
					node,
					loc: astUtils.getFunctionHeadLoc(node, context.sourceCode),
					messageId: "missingThis",
					data: {
						name: astUtils.getFunctionNameWithKind(node),
					},
				});
			}
		}
Checks if we are leaving a function that is a method, and reports if 'this' has not been used.
Static methods and the constructor are exempt.
Then pops the context off the stack.
@param {ASTNode} node A function node that was entered.
@returns {void}
@private