function isOnInitializer(variable, scopeVar) {
			const outerScope = scopeVar.scope;
			const outerDef = scopeVar.defs[0];
			const outer = outerDef && outerDef.parent && outerDef.parent.range;
			const innerScope = variable.scope;
			const innerDef = variable.defs[0];
			const inner = innerDef && innerDef.name.range;

			return (
				outer &&
				inner &&
				outer[0] < inner[0] &&
				inner[1] < outer[1] &&
				((innerDef.type === "FunctionName" &&
					innerDef.node.type === "FunctionExpression") ||
					innerDef.node.type === "ClassExpression") &&
				outerScope === innerScope.upper
			);
		}
Checks if a variable is inside the initializer of scopeVar.

To avoid reporting at declarations such as `var a = function a() {};`.
But it should report `var a = function(a) {};` or `var a = function() { function a() {} };`.
@param {Object} variable The variable to check.
@param {Object} scopeVar The scope variable to look for.
@returns {boolean} Whether or not the variable is inside initializer of scopeVar.