@tslite/printer 1.16.1 → 1.18.0

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.
@@ -1,3 +1,4 @@
1
+ export { packageVersion } from "../packageVersion.js";
1
2
  export * from "@tslite/parser";
2
3
  export * from "../types.js";
3
4
  export * from "../utilities.js";
@@ -1,5 +1,8 @@
1
1
  // Modificado de microsoft/TypeScript v3.9.10 (Apache-2.0): o printer de src/compiler da tag, convertido e cortado até a Linguagem do TSLite. Ver o NOTICE.
2
2
 
3
+ // src/packageVersion.ts
4
+ var packageVersion = "1.18.0";
5
+
3
6
  // src/_namespaces/ts.ts
4
7
  export * from "@tslite/parser";
5
8
 
@@ -1003,8 +1006,6 @@ function createPrinter(printerOptions = {}, handlers = {}) {
1003
1006
  return emitSpreadExpression(node);
1004
1007
  case SyntaxKind.OmittedExpression:
1005
1008
  return;
1006
- case SyntaxKind.AsExpression:
1007
- return emitAsExpression(node);
1008
1009
  case SyntaxKind.MetaProperty:
1009
1010
  return emitMetaProperty(node);
1010
1011
  // JSX
@@ -1519,15 +1520,6 @@ function createPrinter(printerOptions = {}, handlers = {}) {
1519
1520
  emitTokenWithComment(SyntaxKind.DotDotDotToken, node.pos, writePunctuation, node);
1520
1521
  emitExpression(node.expression);
1521
1522
  }
1522
- function emitAsExpression(node) {
1523
- emitExpression(node.expression);
1524
- if (node.type) {
1525
- writeSpace();
1526
- writeKeyword("as");
1527
- writeSpace();
1528
- emit(node.type);
1529
- }
1530
- }
1531
1523
  function emitMetaProperty(node) {
1532
1524
  writeToken(node.keywordToken, node.pos, writePunctuation);
1533
1525
  writePunctuation(".");
@@ -3159,6 +3151,7 @@ export {
3159
3151
  getTrailingSemicolonDeferringWriter,
3160
3152
  isFileLevelUniqueName,
3161
3153
  noEmitNotification,
3154
+ packageVersion,
3162
3155
  usingSingleLineStringWriter,
3163
3156
  writeCommentRange
3164
3157
  };
@@ -0,0 +1,2 @@
1
+ /** A versão deste package, a do módulo de fato carregado. */
2
+ export declare const packageVersion = "1.18.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tslite/printer",
3
- "version": "1.16.1",
3
+ "version": "1.18.0",
4
4
  "description": "The tsc 3.9.10 printer, copied from the tag and cut down to the TSLite Language: prints a parse tree node, a list or a file as text, with the writers it prints through",
5
5
  "author": "Anderson D. Rosa <andersondrosa@outlook.com>",
6
6
  "license": "Apache-2.0",
@@ -18,10 +18,10 @@
18
18
  "NOTICE"
19
19
  ],
20
20
  "dependencies": {
21
- "@tslite/parser": "1.16.1"
21
+ "@tslite/parser": "1.18.0"
22
22
  },
23
23
  "devDependencies": {
24
- "@tslite/oracle": "0.1.2"
24
+ "@tslite/oracle": "0.1.4"
25
25
  },
26
26
  "repository": {
27
27
  "type": "git",