"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const index = require("../../_vendor/@codemirror/autocomplete/dist-index.cjs");
const blockCommentSnippet = index.snippetCompletion("/**\n * #{}\n */", {
  label: "/**",
  detail: "Block Comment"
});
const snippets = [
  index.snippetCompletion("console.log(#{})", { label: "log", detail: "Log to console" }),
  index.snippetCompletion("for (const #{1:element} of #{2:array}) {\n	#{}\n}", {
    label: "forof",
    detail: "For-of Loop"
  }),
  index.snippetCompletion(
    "for (const #{1:key} in #{2:object}) {\n	if (Object.prototype.hasOwnProperty.call(#{2:object}, #{1:key})) {\n		const #{3:element} = #{2:object}[#{1:key}];\n		#{}\n	}\n}",
    {
      label: "forin",
      detail: "For-in Loop"
    }
  ),
  index.snippetCompletion(
    "for (let #{1:index} = 0; #{1:index} < #{2:array}.length; #{1:index}++) {\n	const #{3:element} = #{2:array}[#{1:index}];\n	#{}\n}",
    {
      label: "for",
      detail: "For Loop"
    }
  ),
  index.snippetCompletion("if (#{1:condition}) {\n	#{}\n}", {
    label: "if",
    detail: "If Statement"
  }),
  index.snippetCompletion("if (#{1:condition}) {\n	#{}\n} else {\n	\n}", {
    label: "ifelse",
    detail: "If-Else Statement"
  }),
  index.snippetCompletion("function #{1:name}(#{2:params}) {\n	#{}\n}", {
    label: "function",
    detail: "Function Statement"
  }),
  index.snippetCompletion("function #{1:name}(#{2:params}) {\n	#{}\n}", {
    label: "fn",
    detail: "Function Statement"
  }),
  index.snippetCompletion(
    "switch (#{1:key}) {\n	case #{2:value}:\n		#{}\n		break;\n	default:\n		break;\n}",
    {
      label: "switch",
      detail: "Switch Statement"
    }
  ),
  index.snippetCompletion("try {\n	#{}\n} catch (#{1:error}) {\n	\n}", {
    label: "trycatch",
    detail: "Try-Catch Statement"
  }),
  index.snippetCompletion("while (#{1:condition}) {\n	#{}\n}", {
    label: "while",
    detail: "While Statement"
  }),
  blockCommentSnippet
];
exports.blockCommentSnippet = blockCommentSnippet;
exports.snippets = snippets;
//# sourceMappingURL=snippets.cjs.map
