@ttsc/factory 0.15.7 → 0.15.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/TsPrinter.js +6 -5
- package/lib/TsPrinter.js.map +1 -1
- package/lib/TsPrinter.mjs +6 -5
- package/lib/TsPrinter.mjs.map +1 -1
- package/lib/factory/declarations/createModuleDeclaration.js +2 -1
- package/lib/factory/declarations/createModuleDeclaration.js.map +1 -1
- package/lib/factory/declarations/createModuleDeclaration.mjs +2 -1
- package/lib/factory/declarations/createModuleDeclaration.mjs.map +1 -1
- package/lib/factory/expressions/createAdd.js +2 -1
- package/lib/factory/expressions/createAdd.js.map +1 -1
- package/lib/factory/expressions/createAdd.mjs +2 -1
- package/lib/factory/expressions/createAdd.mjs.map +1 -1
- package/lib/factory/expressions/createAssignment.js +2 -1
- package/lib/factory/expressions/createAssignment.js.map +1 -1
- package/lib/factory/expressions/createAssignment.mjs +2 -1
- package/lib/factory/expressions/createAssignment.mjs.map +1 -1
- package/lib/factory/expressions/createBitwiseAnd.js +2 -1
- package/lib/factory/expressions/createBitwiseAnd.js.map +1 -1
- package/lib/factory/expressions/createBitwiseAnd.mjs +2 -1
- package/lib/factory/expressions/createBitwiseAnd.mjs.map +1 -1
- package/lib/factory/expressions/createBitwiseNot.js +2 -1
- package/lib/factory/expressions/createBitwiseNot.js.map +1 -1
- package/lib/factory/expressions/createBitwiseNot.mjs +2 -1
- package/lib/factory/expressions/createBitwiseNot.mjs.map +1 -1
- package/lib/factory/expressions/createBitwiseOr.js +2 -1
- package/lib/factory/expressions/createBitwiseOr.js.map +1 -1
- package/lib/factory/expressions/createBitwiseOr.mjs +2 -1
- package/lib/factory/expressions/createBitwiseOr.mjs.map +1 -1
- package/lib/factory/expressions/createBitwiseXor.js +2 -1
- package/lib/factory/expressions/createBitwiseXor.js.map +1 -1
- package/lib/factory/expressions/createBitwiseXor.mjs +2 -1
- package/lib/factory/expressions/createBitwiseXor.mjs.map +1 -1
- package/lib/factory/expressions/createComma.js +2 -1
- package/lib/factory/expressions/createComma.js.map +1 -1
- package/lib/factory/expressions/createComma.mjs +2 -1
- package/lib/factory/expressions/createComma.mjs.map +1 -1
- package/lib/factory/expressions/createDivide.js +2 -1
- package/lib/factory/expressions/createDivide.js.map +1 -1
- package/lib/factory/expressions/createDivide.mjs +2 -1
- package/lib/factory/expressions/createDivide.mjs.map +1 -1
- package/lib/factory/expressions/createEquality.js +2 -1
- package/lib/factory/expressions/createEquality.js.map +1 -1
- package/lib/factory/expressions/createEquality.mjs +2 -1
- package/lib/factory/expressions/createEquality.mjs.map +1 -1
- package/lib/factory/expressions/createExponent.js +2 -1
- package/lib/factory/expressions/createExponent.js.map +1 -1
- package/lib/factory/expressions/createExponent.mjs +2 -1
- package/lib/factory/expressions/createExponent.mjs.map +1 -1
- package/lib/factory/expressions/createGreaterThan.js +2 -1
- package/lib/factory/expressions/createGreaterThan.js.map +1 -1
- package/lib/factory/expressions/createGreaterThan.mjs +2 -1
- package/lib/factory/expressions/createGreaterThan.mjs.map +1 -1
- package/lib/factory/expressions/createGreaterThanEquals.js +2 -1
- package/lib/factory/expressions/createGreaterThanEquals.js.map +1 -1
- package/lib/factory/expressions/createGreaterThanEquals.mjs +2 -1
- package/lib/factory/expressions/createGreaterThanEquals.mjs.map +1 -1
- package/lib/factory/expressions/createInequality.js +2 -1
- package/lib/factory/expressions/createInequality.js.map +1 -1
- package/lib/factory/expressions/createInequality.mjs +2 -1
- package/lib/factory/expressions/createInequality.mjs.map +1 -1
- package/lib/factory/expressions/createLeftShift.js +2 -1
- package/lib/factory/expressions/createLeftShift.js.map +1 -1
- package/lib/factory/expressions/createLeftShift.mjs +2 -1
- package/lib/factory/expressions/createLeftShift.mjs.map +1 -1
- package/lib/factory/expressions/createLessThan.js +2 -1
- package/lib/factory/expressions/createLessThan.js.map +1 -1
- package/lib/factory/expressions/createLessThan.mjs +2 -1
- package/lib/factory/expressions/createLessThan.mjs.map +1 -1
- package/lib/factory/expressions/createLessThanEquals.js +2 -1
- package/lib/factory/expressions/createLessThanEquals.js.map +1 -1
- package/lib/factory/expressions/createLessThanEquals.mjs +2 -1
- package/lib/factory/expressions/createLessThanEquals.mjs.map +1 -1
- package/lib/factory/expressions/createLogicalAnd.js +2 -1
- package/lib/factory/expressions/createLogicalAnd.js.map +1 -1
- package/lib/factory/expressions/createLogicalAnd.mjs +2 -1
- package/lib/factory/expressions/createLogicalAnd.mjs.map +1 -1
- package/lib/factory/expressions/createLogicalNot.js +2 -1
- package/lib/factory/expressions/createLogicalNot.js.map +1 -1
- package/lib/factory/expressions/createLogicalNot.mjs +2 -1
- package/lib/factory/expressions/createLogicalNot.mjs.map +1 -1
- package/lib/factory/expressions/createLogicalOr.js +2 -1
- package/lib/factory/expressions/createLogicalOr.js.map +1 -1
- package/lib/factory/expressions/createLogicalOr.mjs +2 -1
- package/lib/factory/expressions/createLogicalOr.mjs.map +1 -1
- package/lib/factory/expressions/createModulo.js +2 -1
- package/lib/factory/expressions/createModulo.js.map +1 -1
- package/lib/factory/expressions/createModulo.mjs +2 -1
- package/lib/factory/expressions/createModulo.mjs.map +1 -1
- package/lib/factory/expressions/createMultiply.js +2 -1
- package/lib/factory/expressions/createMultiply.js.map +1 -1
- package/lib/factory/expressions/createMultiply.mjs +2 -1
- package/lib/factory/expressions/createMultiply.mjs.map +1 -1
- package/lib/factory/expressions/createPostfixDecrement.js +2 -1
- package/lib/factory/expressions/createPostfixDecrement.js.map +1 -1
- package/lib/factory/expressions/createPostfixDecrement.mjs +2 -1
- package/lib/factory/expressions/createPostfixDecrement.mjs.map +1 -1
- package/lib/factory/expressions/createPostfixIncrement.js +2 -1
- package/lib/factory/expressions/createPostfixIncrement.js.map +1 -1
- package/lib/factory/expressions/createPostfixIncrement.mjs +2 -1
- package/lib/factory/expressions/createPostfixIncrement.mjs.map +1 -1
- package/lib/factory/expressions/createPrefixDecrement.js +2 -1
- package/lib/factory/expressions/createPrefixDecrement.js.map +1 -1
- package/lib/factory/expressions/createPrefixDecrement.mjs +2 -1
- package/lib/factory/expressions/createPrefixDecrement.mjs.map +1 -1
- package/lib/factory/expressions/createPrefixIncrement.js +2 -1
- package/lib/factory/expressions/createPrefixIncrement.js.map +1 -1
- package/lib/factory/expressions/createPrefixIncrement.mjs +2 -1
- package/lib/factory/expressions/createPrefixIncrement.mjs.map +1 -1
- package/lib/factory/expressions/createPrefixMinus.js +2 -1
- package/lib/factory/expressions/createPrefixMinus.js.map +1 -1
- package/lib/factory/expressions/createPrefixMinus.mjs +2 -1
- package/lib/factory/expressions/createPrefixMinus.mjs.map +1 -1
- package/lib/factory/expressions/createPrefixPlus.js +2 -1
- package/lib/factory/expressions/createPrefixPlus.js.map +1 -1
- package/lib/factory/expressions/createPrefixPlus.mjs +2 -1
- package/lib/factory/expressions/createPrefixPlus.mjs.map +1 -1
- package/lib/factory/expressions/createRightShift.js +2 -1
- package/lib/factory/expressions/createRightShift.js.map +1 -1
- package/lib/factory/expressions/createRightShift.mjs +2 -1
- package/lib/factory/expressions/createRightShift.mjs.map +1 -1
- package/lib/factory/expressions/createStrictEquality.js +2 -1
- package/lib/factory/expressions/createStrictEquality.js.map +1 -1
- package/lib/factory/expressions/createStrictEquality.mjs +2 -1
- package/lib/factory/expressions/createStrictEquality.mjs.map +1 -1
- package/lib/factory/expressions/createStrictInequality.js +2 -1
- package/lib/factory/expressions/createStrictInequality.js.map +1 -1
- package/lib/factory/expressions/createStrictInequality.mjs +2 -1
- package/lib/factory/expressions/createStrictInequality.mjs.map +1 -1
- package/lib/factory/expressions/createSubtract.js +2 -1
- package/lib/factory/expressions/createSubtract.js.map +1 -1
- package/lib/factory/expressions/createSubtract.mjs +2 -1
- package/lib/factory/expressions/createSubtract.mjs.map +1 -1
- package/lib/factory/expressions/createUnsignedRightShift.js +2 -1
- package/lib/factory/expressions/createUnsignedRightShift.js.map +1 -1
- package/lib/factory/expressions/createUnsignedRightShift.mjs +2 -1
- package/lib/factory/expressions/createUnsignedRightShift.mjs.map +1 -1
- package/lib/factory/names/createFalse.js +2 -1
- package/lib/factory/names/createFalse.js.map +1 -1
- package/lib/factory/names/createFalse.mjs +2 -1
- package/lib/factory/names/createFalse.mjs.map +1 -1
- package/lib/factory/names/createModifiersFromModifierFlags.js +15 -14
- package/lib/factory/names/createModifiersFromModifierFlags.js.map +1 -1
- package/lib/factory/names/createModifiersFromModifierFlags.mjs +15 -14
- package/lib/factory/names/createModifiersFromModifierFlags.mjs.map +1 -1
- package/lib/factory/names/createNull.js +2 -1
- package/lib/factory/names/createNull.js.map +1 -1
- package/lib/factory/names/createNull.mjs +2 -1
- package/lib/factory/names/createNull.mjs.map +1 -1
- package/lib/factory/names/createSuper.js +2 -1
- package/lib/factory/names/createSuper.js.map +1 -1
- package/lib/factory/names/createSuper.mjs +2 -1
- package/lib/factory/names/createSuper.mjs.map +1 -1
- package/lib/factory/names/createThis.js +2 -1
- package/lib/factory/names/createThis.js.map +1 -1
- package/lib/factory/names/createThis.mjs +2 -1
- package/lib/factory/names/createThis.mjs.map +1 -1
- package/lib/factory/names/createTrue.js +2 -1
- package/lib/factory/names/createTrue.js.map +1 -1
- package/lib/factory/names/createTrue.mjs +2 -1
- package/lib/factory/names/createTrue.mjs.map +1 -1
- package/lib/factory/statements/createVariableDeclarationList.js +2 -1
- package/lib/factory/statements/createVariableDeclarationList.js.map +1 -1
- package/lib/factory/statements/createVariableDeclarationList.mjs +2 -1
- package/lib/factory/statements/createVariableDeclarationList.mjs.map +1 -1
- package/lib/index.js +4 -1
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +4 -1
- package/lib/index.mjs.map +1 -1
- package/lib/syntax/NodeFlags.d.ts +3 -3
- package/lib/syntax/NodeFlags.js +21 -0
- package/lib/syntax/NodeFlags.js.map +1 -1
- package/lib/syntax/NodeFlags.mjs +21 -0
- package/lib/syntax/NodeFlags.mjs.map +1 -1
- package/lib/syntax/SyntaxKind.d.ts +3 -3
- package/lib/syntax/SyntaxKind.js +108 -0
- package/lib/syntax/SyntaxKind.js.map +1 -1
- package/lib/syntax/SyntaxKind.mjs +108 -0
- package/lib/syntax/SyntaxKind.mjs.map +1 -1
- package/package.json +1 -1
- package/src/syntax/NodeFlags.ts +3 -3
- package/src/syntax/SyntaxKind.ts +3 -3
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.createModifiersFromModifierFlags = void 0;
|
|
3
|
+
const syntax_1 = require("../../syntax");
|
|
3
4
|
const createModifier_1 = require("./createModifier");
|
|
4
5
|
/**
|
|
5
6
|
* Legacy `ts.ModifierFlags` bit values, kept as module-local constants (not an
|
|
@@ -47,33 +48,33 @@ const FLAG = {
|
|
|
47
48
|
const createModifiersFromModifierFlags = (flags) => {
|
|
48
49
|
const result = [];
|
|
49
50
|
if (flags & FLAG.Export)
|
|
50
|
-
result.push((0, createModifier_1.createModifier)(
|
|
51
|
+
result.push((0, createModifier_1.createModifier)(syntax_1.SyntaxKind.ExportKeyword));
|
|
51
52
|
if (flags & FLAG.Ambient)
|
|
52
|
-
result.push((0, createModifier_1.createModifier)(
|
|
53
|
+
result.push((0, createModifier_1.createModifier)(syntax_1.SyntaxKind.DeclareKeyword));
|
|
53
54
|
if (flags & FLAG.Default)
|
|
54
|
-
result.push((0, createModifier_1.createModifier)(
|
|
55
|
+
result.push((0, createModifier_1.createModifier)(syntax_1.SyntaxKind.DefaultKeyword));
|
|
55
56
|
if (flags & FLAG.Const)
|
|
56
|
-
result.push((0, createModifier_1.createModifier)(
|
|
57
|
+
result.push((0, createModifier_1.createModifier)(syntax_1.SyntaxKind.ConstKeyword));
|
|
57
58
|
if (flags & FLAG.Public)
|
|
58
|
-
result.push((0, createModifier_1.createModifier)(
|
|
59
|
+
result.push((0, createModifier_1.createModifier)(syntax_1.SyntaxKind.PublicKeyword));
|
|
59
60
|
if (flags & FLAG.Private)
|
|
60
|
-
result.push((0, createModifier_1.createModifier)(
|
|
61
|
+
result.push((0, createModifier_1.createModifier)(syntax_1.SyntaxKind.PrivateKeyword));
|
|
61
62
|
if (flags & FLAG.Protected)
|
|
62
|
-
result.push((0, createModifier_1.createModifier)(
|
|
63
|
+
result.push((0, createModifier_1.createModifier)(syntax_1.SyntaxKind.ProtectedKeyword));
|
|
63
64
|
if (flags & FLAG.Abstract)
|
|
64
|
-
result.push((0, createModifier_1.createModifier)(
|
|
65
|
+
result.push((0, createModifier_1.createModifier)(syntax_1.SyntaxKind.AbstractKeyword));
|
|
65
66
|
if (flags & FLAG.Static)
|
|
66
|
-
result.push((0, createModifier_1.createModifier)(
|
|
67
|
+
result.push((0, createModifier_1.createModifier)(syntax_1.SyntaxKind.StaticKeyword));
|
|
67
68
|
if (flags & FLAG.Override)
|
|
68
|
-
result.push((0, createModifier_1.createModifier)(
|
|
69
|
+
result.push((0, createModifier_1.createModifier)(syntax_1.SyntaxKind.OverrideKeyword));
|
|
69
70
|
if (flags & FLAG.Readonly)
|
|
70
|
-
result.push((0, createModifier_1.createModifier)(
|
|
71
|
+
result.push((0, createModifier_1.createModifier)(syntax_1.SyntaxKind.ReadonlyKeyword));
|
|
71
72
|
if (flags & FLAG.Accessor)
|
|
72
|
-
result.push((0, createModifier_1.createModifier)(
|
|
73
|
+
result.push((0, createModifier_1.createModifier)(syntax_1.SyntaxKind.AccessorKeyword));
|
|
73
74
|
if (flags & FLAG.Async)
|
|
74
|
-
result.push((0, createModifier_1.createModifier)(
|
|
75
|
+
result.push((0, createModifier_1.createModifier)(syntax_1.SyntaxKind.AsyncKeyword));
|
|
75
76
|
if (flags & FLAG.In)
|
|
76
|
-
result.push((0, createModifier_1.createModifier)(
|
|
77
|
+
result.push((0, createModifier_1.createModifier)(syntax_1.SyntaxKind.InKeyword));
|
|
77
78
|
return result.length ? result : undefined;
|
|
78
79
|
};
|
|
79
80
|
exports.createModifiersFromModifierFlags = createModifiersFromModifierFlags;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createModifiersFromModifierFlags.mjs","sources":["createModifiersFromModifierFlags.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createModifiersFromModifierFlags = void 0;\nconst createModifier_1 = require(\"./createModifier\");\n/**\n * Legacy `ts.ModifierFlags` bit values, kept as module-local constants (not an\n * exported enum) so callers can pass the same numeric bitmask.\n */\nconst FLAG = {\n Public: 1,\n Private: 2,\n Protected: 4,\n Readonly: 8,\n Override: 16,\n Export: 32,\n Abstract: 64,\n Ambient: 128,\n Static: 256,\n Accessor: 512,\n Async: 1024,\n Default: 2048,\n Const: 4096,\n In: 8192,\n};\n/**\n * Create an ordered list of modifier tokens from a legacy `ts.ModifierFlags`\n * bitmask.\n *\n * The `flags` is read bit by bit, and one modifier token is appended for each\n * bit that is set. The tokens come out in canonical declaration order\n * regardless of bit order in the input, so `export` precedes `readonly` no\n * matter how the mask was assembled. When no recognized bit is set, the result\n * is `undefined` rather than an empty array.\n *\n * The legacy `out` modifier is omitted because this package's `SyntaxKind` has\n * no `OutKeyword` member.\n *\n * With `flags` of `Export | Readonly`, the tokens print in order as:\n *\n * ```ts\n * export readonly\n * ```\n *\n * @author Jeongho Nam - https://github.com/samchon\n * @param flags The modifier flags bitmask (legacy `ts.ModifierFlags`).\n * @returns The created modifier tokens, or `undefined` when none apply.\n */\nconst createModifiersFromModifierFlags = (flags) => {\n const result = [];\n if (flags & FLAG.Export)\n result.push((0, createModifier_1.createModifier)(
|
|
1
|
+
{"version":3,"file":"createModifiersFromModifierFlags.mjs","sources":["createModifiersFromModifierFlags.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createModifiersFromModifierFlags = void 0;\nconst syntax_1 = require(\"../../syntax\");\nconst createModifier_1 = require(\"./createModifier\");\n/**\n * Legacy `ts.ModifierFlags` bit values, kept as module-local constants (not an\n * exported enum) so callers can pass the same numeric bitmask.\n */\nconst FLAG = {\n Public: 1,\n Private: 2,\n Protected: 4,\n Readonly: 8,\n Override: 16,\n Export: 32,\n Abstract: 64,\n Ambient: 128,\n Static: 256,\n Accessor: 512,\n Async: 1024,\n Default: 2048,\n Const: 4096,\n In: 8192,\n};\n/**\n * Create an ordered list of modifier tokens from a legacy `ts.ModifierFlags`\n * bitmask.\n *\n * The `flags` is read bit by bit, and one modifier token is appended for each\n * bit that is set. The tokens come out in canonical declaration order\n * regardless of bit order in the input, so `export` precedes `readonly` no\n * matter how the mask was assembled. When no recognized bit is set, the result\n * is `undefined` rather than an empty array.\n *\n * The legacy `out` modifier is omitted because this package's `SyntaxKind` has\n * no `OutKeyword` member.\n *\n * With `flags` of `Export | Readonly`, the tokens print in order as:\n *\n * ```ts\n * export readonly\n * ```\n *\n * @author Jeongho Nam - https://github.com/samchon\n * @param flags The modifier flags bitmask (legacy `ts.ModifierFlags`).\n * @returns The created modifier tokens, or `undefined` when none apply.\n */\nconst createModifiersFromModifierFlags = (flags) => {\n const result = [];\n if (flags & FLAG.Export)\n result.push((0, createModifier_1.createModifier)(syntax_1.SyntaxKind.ExportKeyword));\n if (flags & FLAG.Ambient)\n result.push((0, createModifier_1.createModifier)(syntax_1.SyntaxKind.DeclareKeyword));\n if (flags & FLAG.Default)\n result.push((0, createModifier_1.createModifier)(syntax_1.SyntaxKind.DefaultKeyword));\n if (flags & FLAG.Const)\n result.push((0, createModifier_1.createModifier)(syntax_1.SyntaxKind.ConstKeyword));\n if (flags & FLAG.Public)\n result.push((0, createModifier_1.createModifier)(syntax_1.SyntaxKind.PublicKeyword));\n if (flags & FLAG.Private)\n result.push((0, createModifier_1.createModifier)(syntax_1.SyntaxKind.PrivateKeyword));\n if (flags & FLAG.Protected)\n result.push((0, createModifier_1.createModifier)(syntax_1.SyntaxKind.ProtectedKeyword));\n if (flags & FLAG.Abstract)\n result.push((0, createModifier_1.createModifier)(syntax_1.SyntaxKind.AbstractKeyword));\n if (flags & FLAG.Static)\n result.push((0, createModifier_1.createModifier)(syntax_1.SyntaxKind.StaticKeyword));\n if (flags & FLAG.Override)\n result.push((0, createModifier_1.createModifier)(syntax_1.SyntaxKind.OverrideKeyword));\n if (flags & FLAG.Readonly)\n result.push((0, createModifier_1.createModifier)(syntax_1.SyntaxKind.ReadonlyKeyword));\n if (flags & FLAG.Accessor)\n result.push((0, createModifier_1.createModifier)(syntax_1.SyntaxKind.AccessorKeyword));\n if (flags & FLAG.Async)\n result.push((0, createModifier_1.createModifier)(syntax_1.SyntaxKind.AsyncKeyword));\n if (flags & FLAG.In)\n result.push((0, createModifier_1.createModifier)(syntax_1.SyntaxKind.InKeyword));\n return result.length ? result : undefined;\n};\nexports.createModifiersFromModifierFlags = createModifiersFromModifierFlags;\n//# sourceMappingURL=createModifiersFromModifierFlags.js.map"],"names":[],"mappings":"AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,gCAAgC,GAAG,MAAM;AACjD,MAAM,QAAQ,GAAG,OAAO,CAAC,cAAc,CAAC;AACxC,MAAM,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,CAAC;AACpD;AACA;AACA;AACA;AACA,MAAM,IAAI,GAAG;AACb,IAAI,MAAM,EAAE,CAAC;AACb,IAAI,OAAO,EAAE,CAAC;AACd,IAAI,SAAS,EAAE,CAAC;AAChB,IAAI,QAAQ,EAAE,CAAC;AACf,IAAI,QAAQ,EAAE,EAAE;AAChB,IAAI,MAAM,EAAE,EAAE;AACd,IAAI,QAAQ,EAAE,EAAE;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,IAAI,MAAM,EAAE,GAAG;AACf,IAAI,QAAQ,EAAE,GAAG;AACjB,IAAI,KAAK,EAAE,IAAI;AACf,IAAI,OAAO,EAAE,IAAI;AACjB,IAAI,KAAK,EAAE,IAAI;AACf,IAAI,EAAE,EAAE,IAAI;AACZ,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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,SAAS;AAC7C,CAAC;AACD,OAAO,CAAC,gCAAgC,GAAG,gCAAgC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createNull = void 0;
|
|
4
|
+
const syntax_1 = require("../../syntax");
|
|
4
5
|
const createToken_1 = require("./createToken");
|
|
5
6
|
/**
|
|
6
7
|
* Create the `null` keyword as a {@link Token}.
|
|
@@ -17,6 +18,6 @@ const createToken_1 = require("./createToken");
|
|
|
17
18
|
* @author Jeongho Nam - https://github.com/samchon
|
|
18
19
|
* @returns The created {@link Token}.
|
|
19
20
|
*/
|
|
20
|
-
const createNull = () => (0, createToken_1.createToken)(
|
|
21
|
+
const createNull = () => (0, createToken_1.createToken)(syntax_1.SyntaxKind.NullKeyword);
|
|
21
22
|
exports.createNull = createNull;
|
|
22
23
|
//# sourceMappingURL=createNull.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createNull.js","sourceRoot":"","sources":["../../../src/factory/names/createNull.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"createNull.js","sourceRoot":"","sources":["../../../src/factory/names/createNull.ts"],"names":[],"mappings":";;;AACA,yCAA0C;AAC1C,+CAA4C;AAE5C;;;;;;;;;;;;;;GAcG;AACI,MAAM,UAAU,GAAG,GAAU,EAAE,CAAC,IAAA,yBAAW,EAAC,mBAAU,CAAC,WAAW,CAAC,CAAC;AAA9D,QAAA,UAAU,GAAV,UAAU,CAAoD"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.createNull = void 0;
|
|
3
|
+
const syntax_1 = require("../../syntax");
|
|
3
4
|
const createToken_1 = require("./createToken");
|
|
4
5
|
/**
|
|
5
6
|
* Create the `null` keyword as a {@link Token}.
|
|
@@ -16,6 +17,6 @@ const createToken_1 = require("./createToken");
|
|
|
16
17
|
* @author Jeongho Nam - https://github.com/samchon
|
|
17
18
|
* @returns The created {@link Token}.
|
|
18
19
|
*/
|
|
19
|
-
const createNull = () => (0, createToken_1.createToken)(
|
|
20
|
+
const createNull = () => (0, createToken_1.createToken)(syntax_1.SyntaxKind.NullKeyword);
|
|
20
21
|
exports.createNull = createNull;
|
|
21
22
|
//# sourceMappingURL=createNull.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createNull.mjs","sources":["createNull.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createNull = void 0;\nconst createToken_1 = require(\"./createToken\");\n/**\n * Create the `null` keyword as a {@link Token}.\n *\n * This takes no arguments and wraps the `NullKeyword` syntax kind. The printer\n * emits the keyword as the `null` literal.\n *\n * This prints:\n *\n * ```ts\n * null;\n * ```\n *\n * @author Jeongho Nam - https://github.com/samchon\n * @returns The created {@link Token}.\n */\nconst createNull = () => (0, createToken_1.createToken)(
|
|
1
|
+
{"version":3,"file":"createNull.mjs","sources":["createNull.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createNull = void 0;\nconst syntax_1 = require(\"../../syntax\");\nconst createToken_1 = require(\"./createToken\");\n/**\n * Create the `null` keyword as a {@link Token}.\n *\n * This takes no arguments and wraps the `NullKeyword` syntax kind. The printer\n * emits the keyword as the `null` literal.\n *\n * This prints:\n *\n * ```ts\n * null;\n * ```\n *\n * @author Jeongho Nam - https://github.com/samchon\n * @returns The created {@link Token}.\n */\nconst createNull = () => (0, createToken_1.createToken)(syntax_1.SyntaxKind.NullKeyword);\nexports.createNull = createNull;\n//# sourceMappingURL=createNull.js.map"],"names":[],"mappings":"AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,UAAU,GAAG,MAAM;AAC3B,MAAM,QAAQ,GAAG,OAAO,CAAC,cAAc,CAAC;AACxC,MAAM,aAAa,GAAG,OAAO,CAAC,eAAe,CAAC;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,UAAU,GAAG,MAAM,IAAI,aAAa,CAAC,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,WAAW,CAAC;AACxF,OAAO,CAAC,UAAU,GAAG,UAAU"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createSuper = void 0;
|
|
4
|
+
const syntax_1 = require("../../syntax");
|
|
4
5
|
const createToken_1 = require("./createToken");
|
|
5
6
|
/**
|
|
6
7
|
* Create the `super` keyword as a {@link Token}.
|
|
@@ -17,6 +18,6 @@ const createToken_1 = require("./createToken");
|
|
|
17
18
|
* @author Jeongho Nam - https://github.com/samchon
|
|
18
19
|
* @returns The created node.
|
|
19
20
|
*/
|
|
20
|
-
const createSuper = () => (0, createToken_1.createToken)(
|
|
21
|
+
const createSuper = () => (0, createToken_1.createToken)(syntax_1.SyntaxKind.SuperKeyword);
|
|
21
22
|
exports.createSuper = createSuper;
|
|
22
23
|
//# sourceMappingURL=createSuper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createSuper.js","sourceRoot":"","sources":["../../../src/factory/names/createSuper.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"createSuper.js","sourceRoot":"","sources":["../../../src/factory/names/createSuper.ts"],"names":[],"mappings":";;;AACA,yCAA0C;AAC1C,+CAA4C;AAE5C;;;;;;;;;;;;;;GAcG;AACI,MAAM,WAAW,GAAG,GAAU,EAAE,CAAC,IAAA,yBAAW,EAAC,mBAAU,CAAC,YAAY,CAAC,CAAC;AAAhE,QAAA,WAAW,GAAX,WAAW,CAAqD"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.createSuper = void 0;
|
|
3
|
+
const syntax_1 = require("../../syntax");
|
|
3
4
|
const createToken_1 = require("./createToken");
|
|
4
5
|
/**
|
|
5
6
|
* Create the `super` keyword as a {@link Token}.
|
|
@@ -16,6 +17,6 @@ const createToken_1 = require("./createToken");
|
|
|
16
17
|
* @author Jeongho Nam - https://github.com/samchon
|
|
17
18
|
* @returns The created node.
|
|
18
19
|
*/
|
|
19
|
-
const createSuper = () => (0, createToken_1.createToken)(
|
|
20
|
+
const createSuper = () => (0, createToken_1.createToken)(syntax_1.SyntaxKind.SuperKeyword);
|
|
20
21
|
exports.createSuper = createSuper;
|
|
21
22
|
//# sourceMappingURL=createSuper.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createSuper.mjs","sources":["createSuper.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createSuper = void 0;\nconst createToken_1 = require(\"./createToken\");\n/**\n * Create the `super` keyword as a {@link Token}.\n *\n * This takes no arguments and wraps the `SuperKeyword` syntax kind. The printer\n * emits the keyword as the `super` expression.\n *\n * This prints:\n *\n * ```ts\n * super\n * ```\n *\n * @author Jeongho Nam - https://github.com/samchon\n * @returns The created node.\n */\nconst createSuper = () => (0, createToken_1.createToken)(
|
|
1
|
+
{"version":3,"file":"createSuper.mjs","sources":["createSuper.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createSuper = void 0;\nconst syntax_1 = require(\"../../syntax\");\nconst createToken_1 = require(\"./createToken\");\n/**\n * Create the `super` keyword as a {@link Token}.\n *\n * This takes no arguments and wraps the `SuperKeyword` syntax kind. The printer\n * emits the keyword as the `super` expression.\n *\n * This prints:\n *\n * ```ts\n * super\n * ```\n *\n * @author Jeongho Nam - https://github.com/samchon\n * @returns The created node.\n */\nconst createSuper = () => (0, createToken_1.createToken)(syntax_1.SyntaxKind.SuperKeyword);\nexports.createSuper = createSuper;\n//# sourceMappingURL=createSuper.js.map"],"names":[],"mappings":"AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,WAAW,GAAG,MAAM;AAC5B,MAAM,QAAQ,GAAG,OAAO,CAAC,cAAc,CAAC;AACxC,MAAM,aAAa,GAAG,OAAO,CAAC,eAAe,CAAC;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,WAAW,GAAG,MAAM,IAAI,aAAa,CAAC,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,YAAY,CAAC;AAC1F,OAAO,CAAC,WAAW,GAAG,WAAW"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createThis = void 0;
|
|
4
|
+
const syntax_1 = require("../../syntax");
|
|
4
5
|
const createToken_1 = require("./createToken");
|
|
5
6
|
/**
|
|
6
7
|
* Create the `this` keyword as a {@link Token}.
|
|
@@ -17,6 +18,6 @@ const createToken_1 = require("./createToken");
|
|
|
17
18
|
* @author Jeongho Nam - https://github.com/samchon
|
|
18
19
|
* @returns The created {@link Token}.
|
|
19
20
|
*/
|
|
20
|
-
const createThis = () => (0, createToken_1.createToken)(
|
|
21
|
+
const createThis = () => (0, createToken_1.createToken)(syntax_1.SyntaxKind.ThisKeyword);
|
|
21
22
|
exports.createThis = createThis;
|
|
22
23
|
//# sourceMappingURL=createThis.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createThis.js","sourceRoot":"","sources":["../../../src/factory/names/createThis.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"createThis.js","sourceRoot":"","sources":["../../../src/factory/names/createThis.ts"],"names":[],"mappings":";;;AACA,yCAA0C;AAC1C,+CAA4C;AAE5C;;;;;;;;;;;;;;GAcG;AACI,MAAM,UAAU,GAAG,GAAU,EAAE,CAAC,IAAA,yBAAW,EAAC,mBAAU,CAAC,WAAW,CAAC,CAAC;AAA9D,QAAA,UAAU,GAAV,UAAU,CAAoD"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.createThis = void 0;
|
|
3
|
+
const syntax_1 = require("../../syntax");
|
|
3
4
|
const createToken_1 = require("./createToken");
|
|
4
5
|
/**
|
|
5
6
|
* Create the `this` keyword as a {@link Token}.
|
|
@@ -16,6 +17,6 @@ const createToken_1 = require("./createToken");
|
|
|
16
17
|
* @author Jeongho Nam - https://github.com/samchon
|
|
17
18
|
* @returns The created {@link Token}.
|
|
18
19
|
*/
|
|
19
|
-
const createThis = () => (0, createToken_1.createToken)(
|
|
20
|
+
const createThis = () => (0, createToken_1.createToken)(syntax_1.SyntaxKind.ThisKeyword);
|
|
20
21
|
exports.createThis = createThis;
|
|
21
22
|
//# sourceMappingURL=createThis.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createThis.mjs","sources":["createThis.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createThis = void 0;\nconst createToken_1 = require(\"./createToken\");\n/**\n * Create the `this` keyword as a {@link Token}.\n *\n * This takes no arguments and wraps the `ThisKeyword` syntax kind. The printer\n * emits the keyword as the `this` expression.\n *\n * This prints:\n *\n * ```ts\n * this;\n * ```\n *\n * @author Jeongho Nam - https://github.com/samchon\n * @returns The created {@link Token}.\n */\nconst createThis = () => (0, createToken_1.createToken)(
|
|
1
|
+
{"version":3,"file":"createThis.mjs","sources":["createThis.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createThis = void 0;\nconst syntax_1 = require(\"../../syntax\");\nconst createToken_1 = require(\"./createToken\");\n/**\n * Create the `this` keyword as a {@link Token}.\n *\n * This takes no arguments and wraps the `ThisKeyword` syntax kind. The printer\n * emits the keyword as the `this` expression.\n *\n * This prints:\n *\n * ```ts\n * this;\n * ```\n *\n * @author Jeongho Nam - https://github.com/samchon\n * @returns The created {@link Token}.\n */\nconst createThis = () => (0, createToken_1.createToken)(syntax_1.SyntaxKind.ThisKeyword);\nexports.createThis = createThis;\n//# sourceMappingURL=createThis.js.map"],"names":[],"mappings":"AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,UAAU,GAAG,MAAM;AAC3B,MAAM,QAAQ,GAAG,OAAO,CAAC,cAAc,CAAC;AACxC,MAAM,aAAa,GAAG,OAAO,CAAC,eAAe,CAAC;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,UAAU,GAAG,MAAM,IAAI,aAAa,CAAC,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,WAAW,CAAC;AACxF,OAAO,CAAC,UAAU,GAAG,UAAU"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createTrue = void 0;
|
|
4
|
+
const syntax_1 = require("../../syntax");
|
|
4
5
|
const createToken_1 = require("./createToken");
|
|
5
6
|
/**
|
|
6
7
|
* Create the `true` keyword as a {@link Token}.
|
|
@@ -17,6 +18,6 @@ const createToken_1 = require("./createToken");
|
|
|
17
18
|
* @author Jeongho Nam - https://github.com/samchon
|
|
18
19
|
* @returns The created {@link Token}.
|
|
19
20
|
*/
|
|
20
|
-
const createTrue = () => (0, createToken_1.createToken)(
|
|
21
|
+
const createTrue = () => (0, createToken_1.createToken)(syntax_1.SyntaxKind.TrueKeyword);
|
|
21
22
|
exports.createTrue = createTrue;
|
|
22
23
|
//# sourceMappingURL=createTrue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createTrue.js","sourceRoot":"","sources":["../../../src/factory/names/createTrue.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"createTrue.js","sourceRoot":"","sources":["../../../src/factory/names/createTrue.ts"],"names":[],"mappings":";;;AACA,yCAA0C;AAC1C,+CAA4C;AAE5C;;;;;;;;;;;;;;GAcG;AACI,MAAM,UAAU,GAAG,GAAU,EAAE,CAAC,IAAA,yBAAW,EAAC,mBAAU,CAAC,WAAW,CAAC,CAAC;AAA9D,QAAA,UAAU,GAAV,UAAU,CAAoD"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.createTrue = void 0;
|
|
3
|
+
const syntax_1 = require("../../syntax");
|
|
3
4
|
const createToken_1 = require("./createToken");
|
|
4
5
|
/**
|
|
5
6
|
* Create the `true` keyword as a {@link Token}.
|
|
@@ -16,6 +17,6 @@ const createToken_1 = require("./createToken");
|
|
|
16
17
|
* @author Jeongho Nam - https://github.com/samchon
|
|
17
18
|
* @returns The created {@link Token}.
|
|
18
19
|
*/
|
|
19
|
-
const createTrue = () => (0, createToken_1.createToken)(
|
|
20
|
+
const createTrue = () => (0, createToken_1.createToken)(syntax_1.SyntaxKind.TrueKeyword);
|
|
20
21
|
exports.createTrue = createTrue;
|
|
21
22
|
//# sourceMappingURL=createTrue.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createTrue.mjs","sources":["createTrue.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createTrue = void 0;\nconst createToken_1 = require(\"./createToken\");\n/**\n * Create the `true` keyword as a {@link Token}.\n *\n * This takes no arguments and wraps the `TrueKeyword` syntax kind. The printer\n * emits the keyword as the boolean literal `true`.\n *\n * This prints:\n *\n * ```ts\n * true;\n * ```\n *\n * @author Jeongho Nam - https://github.com/samchon\n * @returns The created {@link Token}.\n */\nconst createTrue = () => (0, createToken_1.createToken)(
|
|
1
|
+
{"version":3,"file":"createTrue.mjs","sources":["createTrue.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createTrue = void 0;\nconst syntax_1 = require(\"../../syntax\");\nconst createToken_1 = require(\"./createToken\");\n/**\n * Create the `true` keyword as a {@link Token}.\n *\n * This takes no arguments and wraps the `TrueKeyword` syntax kind. The printer\n * emits the keyword as the boolean literal `true`.\n *\n * This prints:\n *\n * ```ts\n * true;\n * ```\n *\n * @author Jeongho Nam - https://github.com/samchon\n * @returns The created {@link Token}.\n */\nconst createTrue = () => (0, createToken_1.createToken)(syntax_1.SyntaxKind.TrueKeyword);\nexports.createTrue = createTrue;\n//# sourceMappingURL=createTrue.js.map"],"names":[],"mappings":"AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,UAAU,GAAG,MAAM;AAC3B,MAAM,QAAQ,GAAG,OAAO,CAAC,cAAc,CAAC;AACxC,MAAM,aAAa,GAAG,OAAO,CAAC,eAAe,CAAC;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,UAAU,GAAG,MAAM,IAAI,aAAa,CAAC,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,WAAW,CAAC;AACxF,OAAO,CAAC,UAAU,GAAG,UAAU"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createVariableDeclarationList = void 0;
|
|
4
|
+
const syntax_1 = require("../../syntax");
|
|
4
5
|
const make_1 = require("../internal/make");
|
|
5
6
|
/**
|
|
6
7
|
* Create a {@link VariableDeclarationList}: the `const x = 1` group.
|
|
@@ -22,6 +23,6 @@ const make_1 = require("../internal/make");
|
|
|
22
23
|
* @param flags The declaration flags (`const` / `let` / `var`).
|
|
23
24
|
* @returns The created {@link VariableDeclarationList}.
|
|
24
25
|
*/
|
|
25
|
-
const createVariableDeclarationList = (declarations, flags =
|
|
26
|
+
const createVariableDeclarationList = (declarations, flags = syntax_1.NodeFlags.None) => (0, make_1.make)("VariableDeclarationList", { declarations, flags });
|
|
26
27
|
exports.createVariableDeclarationList = createVariableDeclarationList;
|
|
27
28
|
//# sourceMappingURL=createVariableDeclarationList.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createVariableDeclarationList.js","sourceRoot":"","sources":["../../../src/factory/statements/createVariableDeclarationList.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"createVariableDeclarationList.js","sourceRoot":"","sources":["../../../src/factory/statements/createVariableDeclarationList.ts"],"names":[],"mappings":";;;AACA,yCAAyC;AACzC,2CAAwC;AAExC;;;;;;;;;;;;;;;;;;;GAmBG;AACI,MAAM,6BAA6B,GAAG,CAC3C,YAA4C,EAC5C,KAAK,GAAc,kBAAS,CAAC,IAAI,EACR,EAAE,CAC3B,IAAA,WAAI,EAAC,yBAAyB,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC,CAAC;AAJ9C,QAAA,6BAA6B,GAA7B,6BAA6B,CAIiB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.createVariableDeclarationList = void 0;
|
|
3
|
+
const syntax_1 = require("../../syntax");
|
|
3
4
|
const make_1 = require("../internal/make");
|
|
4
5
|
/**
|
|
5
6
|
* Create a {@link VariableDeclarationList}: the `const x = 1` group.
|
|
@@ -21,6 +22,6 @@ const make_1 = require("../internal/make");
|
|
|
21
22
|
* @param flags The declaration flags (`const` / `let` / `var`).
|
|
22
23
|
* @returns The created {@link VariableDeclarationList}.
|
|
23
24
|
*/
|
|
24
|
-
const createVariableDeclarationList = (declarations, flags =
|
|
25
|
+
const createVariableDeclarationList = (declarations, flags = syntax_1.NodeFlags.None) => (0, make_1.make)("VariableDeclarationList", { declarations, flags });
|
|
25
26
|
exports.createVariableDeclarationList = createVariableDeclarationList;
|
|
26
27
|
//# sourceMappingURL=createVariableDeclarationList.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createVariableDeclarationList.mjs","sources":["createVariableDeclarationList.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createVariableDeclarationList = void 0;\nconst make_1 = require(\"../internal/make\");\n/**\n * Create a {@link VariableDeclarationList}: the `const x = 1` group.\n *\n * The `declarations` are the comma-separated declarators, and `flags` chooses\n * the keyword the printer emits: `const`, `let`, or plain `var` when no flag is\n * set. This is the keyword-bearing part shared by a {@link VariableStatement}\n * and by `for` loop headers.\n *\n * The list carries no trailing semicolon on its own. With a single declaration\n * of `x = 1` and the `const` flag, it prints as:\n *\n * ```ts\n * const x = 1;\n * ```\n *\n * @author Jeongho Nam - https://github.com/samchon\n * @param declarations The declarations.\n * @param flags The declaration flags (`const` / `let` / `var`).\n * @returns The created {@link VariableDeclarationList}.\n */\nconst createVariableDeclarationList = (declarations, flags =
|
|
1
|
+
{"version":3,"file":"createVariableDeclarationList.mjs","sources":["createVariableDeclarationList.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createVariableDeclarationList = void 0;\nconst syntax_1 = require(\"../../syntax\");\nconst make_1 = require(\"../internal/make\");\n/**\n * Create a {@link VariableDeclarationList}: the `const x = 1` group.\n *\n * The `declarations` are the comma-separated declarators, and `flags` chooses\n * the keyword the printer emits: `const`, `let`, or plain `var` when no flag is\n * set. This is the keyword-bearing part shared by a {@link VariableStatement}\n * and by `for` loop headers.\n *\n * The list carries no trailing semicolon on its own. With a single declaration\n * of `x = 1` and the `const` flag, it prints as:\n *\n * ```ts\n * const x = 1;\n * ```\n *\n * @author Jeongho Nam - https://github.com/samchon\n * @param declarations The declarations.\n * @param flags The declaration flags (`const` / `let` / `var`).\n * @returns The created {@link VariableDeclarationList}.\n */\nconst createVariableDeclarationList = (declarations, flags = syntax_1.NodeFlags.None) => (0, make_1.make)(\"VariableDeclarationList\", { declarations, flags });\nexports.createVariableDeclarationList = createVariableDeclarationList;\n//# sourceMappingURL=createVariableDeclarationList.js.map"],"names":[],"mappings":"AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,6BAA6B,GAAG,MAAM;AAC9C,MAAM,QAAQ,GAAG,OAAO,CAAC,cAAc,CAAC;AACxC,MAAM,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,6BAA6B,GAAG,CAAC,YAAY,EAAE,KAAK,GAAG,QAAQ,CAAC,SAAS,CAAC,IAAI,KAAK,IAAI,MAAM,CAAC,IAAI,EAAE,yBAAyB,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;AAC7J,OAAO,CAAC,6BAA6B,GAAG,6BAA6B"}
|
package/lib/index.js
CHANGED
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.setSyntheticTrailingComments = exports.setSyntheticLeadingComments = exports.getSyntheticTrailingComments = exports.getSyntheticLeadingComments = exports.addSyntheticTrailingComment = exports.addSyntheticLeadingComment = exports.TsPrinter = exports.factory = void 0;
|
|
36
|
+
exports.setSyntheticTrailingComments = exports.setSyntheticLeadingComments = exports.getSyntheticTrailingComments = exports.getSyntheticLeadingComments = exports.addSyntheticTrailingComment = exports.addSyntheticLeadingComment = exports.TsPrinter = exports.NodeFlags = exports.SyntaxKind = exports.factory = void 0;
|
|
37
37
|
const factory = __importStar(require("./factory/index"));
|
|
38
38
|
/**
|
|
39
39
|
* Hand-written, dependency-free re-implementation of the legacy TypeScript AST
|
|
@@ -55,6 +55,9 @@ const factory = __importStar(require("./factory/index"));
|
|
|
55
55
|
* @author Jeongho Nam - https://github.com/samchon
|
|
56
56
|
*/
|
|
57
57
|
exports.factory = __importStar(require("./factory/index"));
|
|
58
|
+
var syntax_1 = require("./syntax");
|
|
59
|
+
Object.defineProperty(exports, "SyntaxKind", { enumerable: true, get: function () { return syntax_1.SyntaxKind; } });
|
|
60
|
+
Object.defineProperty(exports, "NodeFlags", { enumerable: true, get: function () { return syntax_1.NodeFlags; } });
|
|
58
61
|
var TsPrinter_1 = require("./TsPrinter");
|
|
59
62
|
Object.defineProperty(exports, "TsPrinter", { enumerable: true, get: function () { return TsPrinter_1.TsPrinter; } });
|
|
60
63
|
var comments_1 = require("./comments");
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,OAAO,4CAAwB;AAE3C;;;;;;;;;;;;;;;;;;GAkBG;AACH,QAAY,OAAO,4CAAwB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,OAAO,4CAAwB;AAE3C;;;;;;;;;;;;;;;;;;GAkBG;AACH,QAAY,OAAO,4CAAwB;AAC3C,mCAAiD;AAAxC,oGAAA,UAAU,OAAA;AAAE,mGAAA,SAAS,OAAA;AAC9B,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAElB,uCAOoB;AANlB,sHAAA,0BAA0B,OAAA;AAC1B,uHAAA,2BAA2B,OAAA;AAC3B,uHAAA,2BAA2B,OAAA;AAC3B,wHAAA,4BAA4B,OAAA;AAC5B,uHAAA,2BAA2B,OAAA;AAC3B,wHAAA,4BAA4B,OAAA;kBAQf,OAAO"}
|
package/lib/index.mjs
CHANGED
|
@@ -32,7 +32,7 @@ var __importStar = (undefined && undefined.__importStar) || (function () {
|
|
|
32
32
|
};
|
|
33
33
|
})();
|
|
34
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
exports.setSyntheticTrailingComments = exports.setSyntheticLeadingComments = exports.getSyntheticTrailingComments = exports.getSyntheticLeadingComments = exports.addSyntheticTrailingComment = exports.addSyntheticLeadingComment = exports.TsPrinter = exports.factory = void 0;
|
|
35
|
+
exports.setSyntheticTrailingComments = exports.setSyntheticLeadingComments = exports.getSyntheticTrailingComments = exports.getSyntheticLeadingComments = exports.addSyntheticTrailingComment = exports.addSyntheticLeadingComment = exports.TsPrinter = exports.NodeFlags = exports.SyntaxKind = exports.factory = void 0;
|
|
36
36
|
const factory = __importStar(require("./factory/index"));
|
|
37
37
|
/**
|
|
38
38
|
* Hand-written, dependency-free re-implementation of the legacy TypeScript AST
|
|
@@ -54,6 +54,9 @@ const factory = __importStar(require("./factory/index"));
|
|
|
54
54
|
* @author Jeongho Nam - https://github.com/samchon
|
|
55
55
|
*/
|
|
56
56
|
exports.factory = __importStar(require("./factory/index"));
|
|
57
|
+
var syntax_1 = require("./syntax");
|
|
58
|
+
Object.defineProperty(exports, "SyntaxKind", { enumerable: true, get: function () { return syntax_1.SyntaxKind; } });
|
|
59
|
+
Object.defineProperty(exports, "NodeFlags", { enumerable: true, get: function () { return syntax_1.NodeFlags; } });
|
|
57
60
|
var TsPrinter_1 = require("./TsPrinter");
|
|
58
61
|
Object.defineProperty(exports, "TsPrinter", { enumerable: true, get: function () { return TsPrinter_1.TsPrinter; } });
|
|
59
62
|
var comments_1 = require("./comments");
|
package/lib/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["index.js"],"sourcesContent":["\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || (function () {\n var ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n };\n return function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.setSyntheticTrailingComments = exports.setSyntheticLeadingComments = exports.getSyntheticTrailingComments = exports.getSyntheticLeadingComments = exports.addSyntheticTrailingComment = exports.addSyntheticLeadingComment = exports.TsPrinter = exports.factory = void 0;\nconst factory = __importStar(require(\"./factory/index\"));\n/**\n * Hand-written, dependency-free re-implementation of the legacy TypeScript AST\n * factory (`ts.factory`) and printer (`ts.Printer`).\n *\n * ```typescript\n * import factory, { SyntaxKind, TsPrinter } from \"@ttsc/factory\";\n * ```\n *\n * - `factory` — the node factory namespace (also the default export).\n * - {@link TsPrinter} — renders factory nodes to TypeScript source text.\n * - {@link SyntaxKind} / {@link NodeFlags} — token & flag enums.\n * - {@link addSyntheticLeadingComment} — attach `//` / `/* *\\/` comments.\n * - Outline AST types (`Expression`, `Statement`, `TypeNode`, ...).\n *\n * No `typescript` module is imported anywhere; the logic is implemented\n * directly, so this keeps working in the TypeScript-Go (tsgo) era.\n *\n * @author Jeongho Nam - https://github.com/samchon\n */\nexports.factory = __importStar(require(\"./factory/index\"));\nvar TsPrinter_1 = require(\"./TsPrinter\");\nObject.defineProperty(exports, \"TsPrinter\", { enumerable: true, get: function () { return TsPrinter_1.TsPrinter; } });\nvar comments_1 = require(\"./comments\");\nObject.defineProperty(exports, \"addSyntheticLeadingComment\", { enumerable: true, get: function () { return comments_1.addSyntheticLeadingComment; } });\nObject.defineProperty(exports, \"addSyntheticTrailingComment\", { enumerable: true, get: function () { return comments_1.addSyntheticTrailingComment; } });\nObject.defineProperty(exports, \"getSyntheticLeadingComments\", { enumerable: true, get: function () { return comments_1.getSyntheticLeadingComments; } });\nObject.defineProperty(exports, \"getSyntheticTrailingComments\", { enumerable: true, get: function () { return comments_1.getSyntheticTrailingComments; } });\nObject.defineProperty(exports, \"setSyntheticLeadingComments\", { enumerable: true, get: function () { return comments_1.setSyntheticLeadingComments; } });\nObject.defineProperty(exports, \"setSyntheticTrailingComments\", { enumerable: true, get: function () { return comments_1.setSyntheticTrailingComments; } });\nexports.default = factory;\n//# sourceMappingURL=index.js.map"],"names":["this"],"mappings":"AACA,IAAI,eAAe,GAAG,CAACA,SAAI,IAAIA,SAAI,CAAC,eAAe,MAAM,MAAM,CAAC,MAAM,IAAI,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE;AAChG,IAAI,IAAI,EAAE,KAAK,SAAS,EAAE,EAAE,GAAG,CAAC;AAChC,IAAI,IAAI,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,CAAC,EAAE,CAAC,CAAC;AACpD,IAAI,IAAI,CAAC,IAAI,KAAK,KAAK,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC,UAAU,GAAG,IAAI,CAAC,QAAQ,IAAI,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AC,GAAG,CAAC;AAC9F,YAAY,OAAO,EAAE;AACrB,QAAQ,CAAC;AACT,QAAQ,OAAO,OAAO,CAAC,CAAC,CAAC;AACzB,IAAI,CAAC;AACL,IAAI,OAAO,UAAU,GAAG,EAAE;AAC1B,QAAQ,IAAI,GAAG,IAAI,GAAG,CAAC,UAAU,EAAE,OAAO,GAAG;AAC7C,QAAQ,IAAI,MAAM,GAAG,EAAE;AACvB,QAAQ,IAAI,GAAG,IAAI,IAAI,EAAE,KAAK,IAAI,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,SAAS,EAAE,eAAe,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AACxI,QAAQ,kBAAkB,CAAC,MAAM,EAAE,GAAG,CAAC;AACvC,QAAQ,OAAO,MAAM;AACrB,IAAI,CAAC;AACL,CAAC,GAAG;AACJ,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,4BAA4B,GAAG,OAAO,CAAC,2BAA2B,GAAG,OAAO,CAAC,4BAA4B,GAAG,OAAO,CAAC,2BAA2B,GAAG,OAAO,CAAC,2BAA2B,GAAG,OAAO,CAAC,0BAA0B,GAAG,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,OAAO,GAAG,MAAM;
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["index.js"],"sourcesContent":["\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || (function () {\n var ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n };\n return function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.setSyntheticTrailingComments = exports.setSyntheticLeadingComments = exports.getSyntheticTrailingComments = exports.getSyntheticLeadingComments = exports.addSyntheticTrailingComment = exports.addSyntheticLeadingComment = exports.TsPrinter = exports.NodeFlags = exports.SyntaxKind = exports.factory = void 0;\nconst factory = __importStar(require(\"./factory/index\"));\n/**\n * Hand-written, dependency-free re-implementation of the legacy TypeScript AST\n * factory (`ts.factory`) and printer (`ts.Printer`).\n *\n * ```typescript\n * import factory, { SyntaxKind, TsPrinter } from \"@ttsc/factory\";\n * ```\n *\n * - `factory` — the node factory namespace (also the default export).\n * - {@link TsPrinter} — renders factory nodes to TypeScript source text.\n * - {@link SyntaxKind} / {@link NodeFlags} — token & flag enums.\n * - {@link addSyntheticLeadingComment} — attach `//` / `/* *\\/` comments.\n * - Outline AST types (`Expression`, `Statement`, `TypeNode`, ...).\n *\n * No `typescript` module is imported anywhere; the logic is implemented\n * directly, so this keeps working in the TypeScript-Go (tsgo) era.\n *\n * @author Jeongho Nam - https://github.com/samchon\n */\nexports.factory = __importStar(require(\"./factory/index\"));\nvar syntax_1 = require(\"./syntax\");\nObject.defineProperty(exports, \"SyntaxKind\", { enumerable: true, get: function () { return syntax_1.SyntaxKind; } });\nObject.defineProperty(exports, \"NodeFlags\", { enumerable: true, get: function () { return syntax_1.NodeFlags; } });\nvar TsPrinter_1 = require(\"./TsPrinter\");\nObject.defineProperty(exports, \"TsPrinter\", { enumerable: true, get: function () { return TsPrinter_1.TsPrinter; } });\nvar comments_1 = require(\"./comments\");\nObject.defineProperty(exports, \"addSyntheticLeadingComment\", { enumerable: true, get: function () { return comments_1.addSyntheticLeadingComment; } });\nObject.defineProperty(exports, \"addSyntheticTrailingComment\", { enumerable: true, get: function () { return comments_1.addSyntheticTrailingComment; } });\nObject.defineProperty(exports, \"getSyntheticLeadingComments\", { enumerable: true, get: function () { return comments_1.getSyntheticLeadingComments; } });\nObject.defineProperty(exports, \"getSyntheticTrailingComments\", { enumerable: true, get: function () { return comments_1.getSyntheticTrailingComments; } });\nObject.defineProperty(exports, \"setSyntheticLeadingComments\", { enumerable: true, get: function () { return comments_1.setSyntheticLeadingComments; } });\nObject.defineProperty(exports, \"setSyntheticTrailingComments\", { enumerable: true, get: function () { return comments_1.setSyntheticTrailingComments; } });\nexports.default = factory;\n//# sourceMappingURL=index.js.map"],"names":["this"],"mappings":"AACA,IAAI,eAAe,GAAG,CAACA,SAAI,IAAIA,SAAI,CAAC,eAAe,MAAM,MAAM,CAAC,MAAM,IAAI,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE;AAChG,IAAI,IAAI,EAAE,KAAK,SAAS,EAAE,EAAE,GAAG,CAAC;AAChC,IAAI,IAAI,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,CAAC,EAAE,CAAC,CAAC;AACpD,IAAI,IAAI,CAAC,IAAI,KAAK,KAAK,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC,UAAU,GAAG,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,YAAY,CAAC,EAAE;AACvF,MAAM,IAAI,G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AO,UAAU,CAAC,4BAA4B,CAAC,CAAC,CAAC,EAAE,CAAC;AAC1J,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,6BAA6B,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,UAAU,CAAC,2BAA2B,CAAC,CAAC,CAAC,EAAE,CAAC;AACxJ,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,8BAA8B,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,UAAU,CAAC,4BAA4B,CAAC,CAAC,CAAC,EAAE,CAAC;AAC1J,OAAO,CAAC,OAAO,GAAG,OAAO"}
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
* value is the keyword it implies (`Let = "let"`, `Const = "const"`), so the
|
|
7
7
|
* printer reads it directly. `Namespace` is accepted for API parity — the
|
|
8
8
|
* printer renders the `module` / `namespace` keyword from the module name kind,
|
|
9
|
-
* not from this flag. A string-valued `const enum`, so
|
|
10
|
-
*
|
|
9
|
+
* not from this flag. A string-valued enum (deliberately not `const enum`, so
|
|
10
|
+
* consumers compiled with `isolatedModules` can still reference its members).
|
|
11
11
|
*
|
|
12
12
|
* @author Jeongho Nam - https://github.com/samchon
|
|
13
13
|
*/
|
|
14
|
-
export declare
|
|
14
|
+
export declare enum NodeFlags {
|
|
15
15
|
None = "",
|
|
16
16
|
Let = "let",
|
|
17
17
|
Const = "const",
|
package/lib/syntax/NodeFlags.js
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NodeFlags = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Flags for {@link factory.createVariableDeclarationList} and
|
|
6
|
+
* {@link factory.createModuleDeclaration}.
|
|
7
|
+
*
|
|
8
|
+
* An outline of the relevant subset of the legacy `ts.NodeFlags`. Each member's
|
|
9
|
+
* value is the keyword it implies (`Let = "let"`, `Const = "const"`), so the
|
|
10
|
+
* printer reads it directly. `Namespace` is accepted for API parity — the
|
|
11
|
+
* printer renders the `module` / `namespace` keyword from the module name kind,
|
|
12
|
+
* not from this flag. A string-valued enum (deliberately not `const enum`, so
|
|
13
|
+
* consumers compiled with `isolatedModules` can still reference its members).
|
|
14
|
+
*
|
|
15
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
16
|
+
*/
|
|
17
|
+
var NodeFlags;
|
|
18
|
+
(function (NodeFlags) {
|
|
19
|
+
NodeFlags["None"] = "";
|
|
20
|
+
NodeFlags["Let"] = "let";
|
|
21
|
+
NodeFlags["Const"] = "const";
|
|
22
|
+
NodeFlags["Namespace"] = "namespace";
|
|
23
|
+
})(NodeFlags || (exports.NodeFlags = NodeFlags = {}));
|
|
3
24
|
//# sourceMappingURL=NodeFlags.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NodeFlags.js","sourceRoot":"","sources":["../../src/syntax/NodeFlags.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"NodeFlags.js","sourceRoot":"","sources":["../../src/syntax/NodeFlags.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;GAYG;AACH,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,sBAAS,CAAA;IACT,wBAAW,CAAA;IACX,4BAAe,CAAA;IACf,oCAAuB,CAAA;AACzB,CAAC,EALW,SAAS,aAAT,SAAS,GAAT,SAAS,QAKpB"}
|
package/lib/syntax/NodeFlags.mjs
CHANGED
|
@@ -1,2 +1,23 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.NodeFlags = void 0;
|
|
3
|
+
/**
|
|
4
|
+
* Flags for {@link factory.createVariableDeclarationList} and
|
|
5
|
+
* {@link factory.createModuleDeclaration}.
|
|
6
|
+
*
|
|
7
|
+
* An outline of the relevant subset of the legacy `ts.NodeFlags`. Each member's
|
|
8
|
+
* value is the keyword it implies (`Let = "let"`, `Const = "const"`), so the
|
|
9
|
+
* printer reads it directly. `Namespace` is accepted for API parity — the
|
|
10
|
+
* printer renders the `module` / `namespace` keyword from the module name kind,
|
|
11
|
+
* not from this flag. A string-valued enum (deliberately not `const enum`, so
|
|
12
|
+
* consumers compiled with `isolatedModules` can still reference its members).
|
|
13
|
+
*
|
|
14
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
15
|
+
*/
|
|
16
|
+
var NodeFlags;
|
|
17
|
+
(function (NodeFlags) {
|
|
18
|
+
NodeFlags["None"] = "";
|
|
19
|
+
NodeFlags["Let"] = "let";
|
|
20
|
+
NodeFlags["Const"] = "const";
|
|
21
|
+
NodeFlags["Namespace"] = "namespace";
|
|
22
|
+
})(NodeFlags || (exports.NodeFlags = NodeFlags = {}));
|
|
2
23
|
//# sourceMappingURL=NodeFlags.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NodeFlags.mjs","sources":["NodeFlags.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=NodeFlags.js.map"],"names":[],"mappings":"AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"NodeFlags.mjs","sources":["NodeFlags.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.NodeFlags = void 0;\n/**\n * Flags for {@link factory.createVariableDeclarationList} and\n * {@link factory.createModuleDeclaration}.\n *\n * An outline of the relevant subset of the legacy `ts.NodeFlags`. Each member's\n * value is the keyword it implies (`Let = \"let\"`, `Const = \"const\"`), so the\n * printer reads it directly. `Namespace` is accepted for API parity — the\n * printer renders the `module` / `namespace` keyword from the module name kind,\n * not from this flag. A string-valued enum (deliberately not `const enum`, so\n * consumers compiled with `isolatedModules` can still reference its members).\n *\n * @author Jeongho Nam - https://github.com/samchon\n */\nvar NodeFlags;\n(function (NodeFlags) {\n NodeFlags[\"None\"] = \"\";\n NodeFlags[\"Let\"] = \"let\";\n NodeFlags[\"Const\"] = \"const\";\n NodeFlags[\"Namespace\"] = \"namespace\";\n})(NodeFlags || (exports.NodeFlags = NodeFlags = {}));\n//# sourceMappingURL=NodeFlags.js.map"],"names":[],"mappings":"AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,SAAS,GAAG,MAAM;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,SAAS;AACb,CAAC,UAAU,SAAS,EAAE;AACtB,IAAI,SAAS,CAAC,MAAM,CAAC,GAAG,EAAE;AAC1B,IAAI,SAAS,CAAC,KAAK,CAAC,GAAG,KAAK;AAC5B,IAAI,SAAS,CAAC,OAAO,CAAC,GAAG,OAAO;AAChC,IAAI,SAAS,CAAC,WAAW,CAAC,GAAG,WAAW;AACxC,CAAC,EAAE,SAAS,KAAK,OAAO,CAAC,SAAS,GAAG,SAAS,GAAG,EAAE,CAAC,CAAC"}
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* modifier / operator tokens this hand-written factory and printer understand.
|
|
6
6
|
* Each member's value is its **own source text** (e.g. `QuestionToken = "?"`),
|
|
7
7
|
* so a token renders to source by reading its value directly — no lookup table.
|
|
8
|
-
* It is a string-valued `const enum`, so
|
|
9
|
-
*
|
|
8
|
+
* It is a string-valued enum (deliberately not `const enum`, so consumers
|
|
9
|
+
* compiled with `isolatedModules` can still reference its members).
|
|
10
10
|
*
|
|
11
11
|
* @author Jeongho Nam - https://github.com/samchon
|
|
12
12
|
*/
|
|
13
|
-
export declare
|
|
13
|
+
export declare enum SyntaxKind {
|
|
14
14
|
AnyKeyword = "any",
|
|
15
15
|
UnknownKeyword = "unknown",
|
|
16
16
|
NumberKeyword = "number",
|