function getScope(code, astSelector, ecmaVersion = 5) {
			let node, scope;

			linter.defineRule("get-scope", {
				create: context => ({
					[astSelector](node0) {
						node = node0;
						scope = context.sourceCode.getScope(node);
					},
				}),
			});
			linter.verify(code, {
				parserOptions: { ecmaVersion },
				rules: { "get-scope": 2 },
			});

			return { node, scope };
		}
Get the scope on the node `astSelector` specified.
@param {string} code The source code to verify.
@param {string} astSelector The AST selector to get scope.
@param {number} [ecmaVersion=5] The ECMAScript version.
@returns {{node: ASTNode, scope: escope.Scope}} Gotten scope.