Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.

Commit

Permalink
Use one file per ingredient handler
Browse files Browse the repository at this point in the history
  • Loading branch information
ddbeck committed Jul 10, 2020
1 parent ddc64e8 commit dad2ac8
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 42 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const { linkListHandler } = require("./link-list-checker.js");

/**
* Handler for the `data.constructor_properties` ingredient.
*/
const handleDataConstructorProperties = linkListHandler(
"Constructor_properties"
);

module.exports = handleDataConstructorProperties;
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const { linkListHandler } = require("./link-list-checker.js");

/**
* Handler for the `data.instance_methods` ingredient.
*/
const handleDataInstanceMethods = linkListHandler("Instance_methods");

module.exports = handleDataInstanceMethods;
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const { linkListHandler } = require("./link-list-checker.js");

/**
* Handler for the `data.instance_properties` ingredient.
*/
const handleDataInstanceProperties = linkListHandler("Instance_properties");

module.exports = handleDataInstanceProperties;
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const { linkListHandler } = require("./link-list-checker.js");

/**
* Handler for the `data.static_methods` ingredient.
*/
const handleDataStaticMethods = linkListHandler("Static_methods");

module.exports = handleDataStaticMethods;
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const { linkListHandler } = require("./link-list-checker.js");

/**
* Handler for the `data.static_properties` ingredient.
*/
const handleDataStaticProperties = linkListHandler("Static_properties");

module.exports = handleDataStaticProperties;
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const { select } = require("hast-util-select");

const classMembers = require("./data-class-members");
const handleDataBrowserCompatibility = require("./data-browser-compatibility");
const handleDataConstituentProperties = require("./data-constituent-properties");
const handleDataConstructor = require("./data-constructor");
Expand Down Expand Up @@ -30,17 +29,17 @@ const handleProseShortDescription = require("./prose-short-description");
const ingredientHandlers = {
"data.browser_compatibility": handleDataBrowserCompatibility,
"data.constituent_properties": handleDataConstituentProperties,
"data.constructor_properties?": classMembers.handleDataConstructorProperties,
"data.constructor_properties?": require("./data-constructor-properties"),
"data.constructor": handleDataConstructor,
"data.examples": handleDataExamples,
"data.formal_definition": handleDataFormalDefinition,
"data.formal_syntax": handleDataFormalSyntax,
"data.instance_methods?": classMembers.handleDataInstanceMethods,
"data.instance_properties?": classMembers.handleDataInstanceProperties,
"data.instance_methods?": require("./data-instance-methods"),
"data.instance_properties?": require("./data-instance-properties"),
"data.interactive_example?": handleDataInteractiveExample,
"data.specifications": handleDataSpecifications,
"data.static_methods?": classMembers.handleDataStaticMethods,
"data.static_properties?": classMembers.handleDataStaticProperties,
"data.static_methods?": require("./data-static-methods"),
"data.static_properties?": require("./data-static-properties"),
"prose.accessibility_concerns?": optionalTopLevelHeading(
"Accessibility_concerns"
),
Expand Down

0 comments on commit dad2ac8

Please sign in to comment.