function method(kind, key, params, body, computed = false, is_static = false) {
	return {
		type: 'MethodDefinition',
		key,
		kind,
		value: function_builder(null, params, block(body)),
		computed,
		static: is_static
	};
}
@param {'constructor' | 'method' | 'get' | 'set'} kind
@param {ESTree.Expression | ESTree.PrivateIdentifier} key
@param {ESTree.Pattern[]} params
@param {ESTree.Statement[]} body
@param {boolean} computed
@param {boolean} is_static
@returns {ESTree.MethodDefinition}