@irrelon/battlescript 3.1.6 → 3.2.1

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.
Files changed (182) hide show
  1. package/bin/functionality.ts +33 -31
  2. package/bin/index.js +4249 -2529
  3. package/bin/index.js.map +1 -1
  4. package/bin/index.ts +16 -28
  5. package/dist/bin/functionality.d.ts +1 -1
  6. package/dist/bin/functionality.d.ts.map +1 -1
  7. package/dist/exports/typescript/enums/EnumNodeKind.d.ts +7 -1
  8. package/dist/exports/typescript/enums/EnumNodeKind.d.ts.map +1 -1
  9. package/dist/exports/typescript/enums/EnumNodeProp.d.ts +3 -1
  10. package/dist/exports/typescript/enums/EnumNodeProp.d.ts.map +1 -1
  11. package/dist/exports/typescript/helpers/miniAstLayout.d.ts +4 -0
  12. package/dist/exports/typescript/helpers/miniAstLayout.d.ts.map +1 -0
  13. package/dist/index.js +4182 -2584
  14. package/dist/index.js.map +1 -1
  15. package/dist/nativeLibraries/time/index.d.ts +3 -0
  16. package/dist/nativeLibraries/time/index.d.ts.map +1 -0
  17. package/dist/scripts/createAstNode.d.ts +2 -0
  18. package/dist/scripts/createAstNode.d.ts.map +1 -0
  19. package/dist/scripts/exportGen/helpers/generateHelpers.d.ts.map +1 -1
  20. package/dist/services/fullAst/BattleScriptFromAST.d.ts +9 -2
  21. package/dist/services/fullAst/BattleScriptFromAST.d.ts.map +1 -1
  22. package/dist/services/fullAst/BattleScriptToAST.d.ts +10 -2
  23. package/dist/services/fullAst/BattleScriptToAST.d.ts.map +1 -1
  24. package/dist/services/grammar/ts/language/BattleScriptLexer.d.ts +88 -78
  25. package/dist/services/grammar/ts/language/BattleScriptLexer.d.ts.map +1 -1
  26. package/dist/services/grammar/ts/language/BattleScriptListener.d.ts +121 -0
  27. package/dist/services/grammar/ts/language/BattleScriptListener.d.ts.map +1 -1
  28. package/dist/services/grammar/ts/language/BattleScriptParser.d.ts +258 -95
  29. package/dist/services/grammar/ts/language/BattleScriptParser.d.ts.map +1 -1
  30. package/dist/services/grammar/ts/language/BattleScriptVisitor.d.ts +77 -0
  31. package/dist/services/grammar/ts/language/BattleScriptVisitor.d.ts.map +1 -1
  32. package/dist/services/index.d.ts +0 -1
  33. package/dist/services/index.d.ts.map +1 -1
  34. package/dist/services/miniAst/BattleScriptToMiniAST.d.ts.map +1 -1
  35. package/dist/services/miniAst/MiniAstToFullAst.d.ts +28 -0
  36. package/dist/services/miniAst/MiniAstToFullAst.d.ts.map +1 -0
  37. package/dist/services/miniAst/binaryTypeToByteSize.d.ts +1 -1
  38. package/dist/services/miniAst/index.d.ts +1 -0
  39. package/dist/services/miniAst/index.d.ts.map +1 -1
  40. package/dist/services/miniAst/miniAstLayout.d.ts.map +1 -1
  41. package/dist/services/parser.d.ts +1 -3
  42. package/dist/services/parser.d.ts.map +1 -1
  43. package/dist/tsconfig.types.tsbuildinfo +1 -1
  44. package/dist/types/ast/nodes/AfterDeclarationNode.d.ts +3 -0
  45. package/dist/types/ast/nodes/AfterDeclarationNode.d.ts.map +1 -1
  46. package/dist/types/ast/nodes/AfterExpressionNode.d.ts +3 -0
  47. package/dist/types/ast/nodes/AfterExpressionNode.d.ts.map +1 -1
  48. package/dist/types/ast/nodes/ArrayExpressionNode.d.ts +3 -0
  49. package/dist/types/ast/nodes/ArrayExpressionNode.d.ts.map +1 -1
  50. package/dist/types/ast/nodes/AssignmentExpressionNode.d.ts +3 -0
  51. package/dist/types/ast/nodes/AssignmentExpressionNode.d.ts.map +1 -1
  52. package/dist/types/ast/nodes/AssignmentPatternNode.d.ts +3 -0
  53. package/dist/types/ast/nodes/AssignmentPatternNode.d.ts.map +1 -1
  54. package/dist/types/ast/nodes/AstNode.d.ts +2 -2
  55. package/dist/types/ast/nodes/AstNode.d.ts.map +1 -1
  56. package/dist/types/ast/nodes/BinaryExpressionNode.d.ts +3 -0
  57. package/dist/types/ast/nodes/BinaryExpressionNode.d.ts.map +1 -1
  58. package/dist/types/ast/nodes/BlockStatementNode.d.ts +3 -0
  59. package/dist/types/ast/nodes/BlockStatementNode.d.ts.map +1 -1
  60. package/dist/types/ast/nodes/BreakStatementNode.d.ts +3 -0
  61. package/dist/types/ast/nodes/BreakStatementNode.d.ts.map +1 -1
  62. package/dist/types/ast/nodes/CallExpressionNode.d.ts +3 -0
  63. package/dist/types/ast/nodes/CallExpressionNode.d.ts.map +1 -1
  64. package/dist/types/ast/nodes/CancelStatementNode.d.ts +3 -0
  65. package/dist/types/ast/nodes/CancelStatementNode.d.ts.map +1 -1
  66. package/dist/types/ast/nodes/CatchStatementNode.d.ts +3 -0
  67. package/dist/types/ast/nodes/CatchStatementNode.d.ts.map +1 -1
  68. package/dist/types/ast/nodes/CommentNode.d.ts +3 -0
  69. package/dist/types/ast/nodes/CommentNode.d.ts.map +1 -1
  70. package/dist/types/ast/nodes/ConstantDeclarationNode.d.ts +3 -0
  71. package/dist/types/ast/nodes/ConstantDeclarationNode.d.ts.map +1 -1
  72. package/dist/types/ast/nodes/ConstantDeclaratorNode.d.ts +3 -0
  73. package/dist/types/ast/nodes/ConstantDeclaratorNode.d.ts.map +1 -1
  74. package/dist/types/ast/nodes/ContinueStatementNode.d.ts +3 -0
  75. package/dist/types/ast/nodes/ContinueStatementNode.d.ts.map +1 -1
  76. package/dist/types/ast/nodes/CustomTypeNode.d.ts +3 -0
  77. package/dist/types/ast/nodes/CustomTypeNode.d.ts.map +1 -1
  78. package/dist/types/ast/nodes/DataTypeNode.d.ts +3 -0
  79. package/dist/types/ast/nodes/DataTypeNode.d.ts.map +1 -1
  80. package/dist/types/ast/nodes/DefineStatementNode.d.ts +14 -0
  81. package/dist/types/ast/nodes/DefineStatementNode.d.ts.map +1 -0
  82. package/dist/types/ast/nodes/EnumDeclarationNode.d.ts +14 -0
  83. package/dist/types/ast/nodes/EnumDeclarationNode.d.ts.map +1 -0
  84. package/dist/types/ast/nodes/EvaluateCaseNode.d.ts +3 -0
  85. package/dist/types/ast/nodes/EvaluateCaseNode.d.ts.map +1 -1
  86. package/dist/types/ast/nodes/EvaluateFallbackNode.d.ts +3 -0
  87. package/dist/types/ast/nodes/EvaluateFallbackNode.d.ts.map +1 -1
  88. package/dist/types/ast/nodes/EvaluateStatementNode.d.ts +3 -0
  89. package/dist/types/ast/nodes/EvaluateStatementNode.d.ts.map +1 -1
  90. package/dist/types/ast/nodes/EventDeclarationNode.d.ts +3 -0
  91. package/dist/types/ast/nodes/EventDeclarationNode.d.ts.map +1 -1
  92. package/dist/types/ast/nodes/EveryDeclarationNode.d.ts +3 -0
  93. package/dist/types/ast/nodes/EveryDeclarationNode.d.ts.map +1 -1
  94. package/dist/types/ast/nodes/EveryExpressionNode.d.ts +3 -0
  95. package/dist/types/ast/nodes/EveryExpressionNode.d.ts.map +1 -1
  96. package/dist/types/ast/nodes/ExpressionStatementNode.d.ts +3 -0
  97. package/dist/types/ast/nodes/ExpressionStatementNode.d.ts.map +1 -1
  98. package/dist/types/ast/nodes/ForStatementNode.d.ts +3 -0
  99. package/dist/types/ast/nodes/ForStatementNode.d.ts.map +1 -1
  100. package/dist/types/ast/nodes/FunctionDeclarationNode.d.ts +3 -0
  101. package/dist/types/ast/nodes/FunctionDeclarationNode.d.ts.map +1 -1
  102. package/dist/types/ast/nodes/FunctionDefinitionNode.d.ts +3 -0
  103. package/dist/types/ast/nodes/FunctionDefinitionNode.d.ts.map +1 -1
  104. package/dist/types/ast/nodes/IdentifierNode.d.ts +3 -0
  105. package/dist/types/ast/nodes/IdentifierNode.d.ts.map +1 -1
  106. package/dist/types/ast/nodes/IfStatementNode.d.ts +3 -0
  107. package/dist/types/ast/nodes/IfStatementNode.d.ts.map +1 -1
  108. package/dist/types/ast/nodes/ImportDeclarationNode.d.ts +3 -0
  109. package/dist/types/ast/nodes/ImportDeclarationNode.d.ts.map +1 -1
  110. package/dist/types/ast/nodes/InterfaceNode.d.ts +3 -0
  111. package/dist/types/ast/nodes/InterfaceNode.d.ts.map +1 -1
  112. package/dist/types/ast/nodes/InterfacePropertyDeclarationNode.d.ts +3 -0
  113. package/dist/types/ast/nodes/InterfacePropertyDeclarationNode.d.ts.map +1 -1
  114. package/dist/types/ast/nodes/LiteralBooleanNode.d.ts +2 -1
  115. package/dist/types/ast/nodes/LiteralBooleanNode.d.ts.map +1 -1
  116. package/dist/types/ast/nodes/LiteralDoubleNode.d.ts +2 -0
  117. package/dist/types/ast/nodes/LiteralDoubleNode.d.ts.map +1 -1
  118. package/dist/types/ast/nodes/LiteralFloatNode.d.ts +2 -0
  119. package/dist/types/ast/nodes/LiteralFloatNode.d.ts.map +1 -1
  120. package/dist/types/ast/nodes/LiteralIntNode.d.ts +2 -1
  121. package/dist/types/ast/nodes/LiteralIntNode.d.ts.map +1 -1
  122. package/dist/types/ast/nodes/LiteralNullNode.d.ts +2 -1
  123. package/dist/types/ast/nodes/LiteralNullNode.d.ts.map +1 -1
  124. package/dist/types/ast/nodes/LiteralStringNode.d.ts +2 -1
  125. package/dist/types/ast/nodes/LiteralStringNode.d.ts.map +1 -1
  126. package/dist/types/ast/nodes/LiteralUndefinedNode.d.ts +2 -1
  127. package/dist/types/ast/nodes/LiteralUndefinedNode.d.ts.map +1 -1
  128. package/dist/types/ast/nodes/MemberExpressionNode.d.ts +3 -0
  129. package/dist/types/ast/nodes/MemberExpressionNode.d.ts.map +1 -1
  130. package/dist/types/ast/nodes/ObjectExpressionNode.d.ts +3 -0
  131. package/dist/types/ast/nodes/ObjectExpressionNode.d.ts.map +1 -1
  132. package/dist/types/ast/nodes/ObjectPropertyNode.d.ts +3 -0
  133. package/dist/types/ast/nodes/ObjectPropertyNode.d.ts.map +1 -1
  134. package/dist/types/ast/nodes/OptimisedAssignmentExpressionNode.d.ts +3 -0
  135. package/dist/types/ast/nodes/OptimisedAssignmentExpressionNode.d.ts.map +1 -1
  136. package/dist/types/ast/nodes/OptimisedBinaryExpressionNode.d.ts +3 -0
  137. package/dist/types/ast/nodes/OptimisedBinaryExpressionNode.d.ts.map +1 -1
  138. package/dist/types/ast/nodes/OptimisedMemberExpressionNode.d.ts +3 -0
  139. package/dist/types/ast/nodes/OptimisedMemberExpressionNode.d.ts.map +1 -1
  140. package/dist/types/ast/nodes/OptimisedUpdateExpressionNode.d.ts +3 -0
  141. package/dist/types/ast/nodes/OptimisedUpdateExpressionNode.d.ts.map +1 -1
  142. package/dist/types/ast/nodes/ProgramDeclarationNode.d.ts +3 -0
  143. package/dist/types/ast/nodes/ProgramDeclarationNode.d.ts.map +1 -1
  144. package/dist/types/ast/nodes/ProgramPropertyDeclarationNode.d.ts +3 -0
  145. package/dist/types/ast/nodes/ProgramPropertyDeclarationNode.d.ts.map +1 -1
  146. package/dist/types/ast/nodes/ProtocolDeclarationNode.d.ts +16 -0
  147. package/dist/types/ast/nodes/ProtocolDeclarationNode.d.ts.map +1 -0
  148. package/dist/types/ast/nodes/ProtocolTypeNode.d.ts +13 -0
  149. package/dist/types/ast/nodes/ProtocolTypeNode.d.ts.map +1 -0
  150. package/dist/types/ast/nodes/RequireStatementNode.d.ts +15 -0
  151. package/dist/types/ast/nodes/RequireStatementNode.d.ts.map +1 -0
  152. package/dist/types/ast/nodes/RestElementNode.d.ts +3 -0
  153. package/dist/types/ast/nodes/RestElementNode.d.ts.map +1 -1
  154. package/dist/types/ast/nodes/ReturnStatementNode.d.ts +3 -0
  155. package/dist/types/ast/nodes/ReturnStatementNode.d.ts.map +1 -1
  156. package/dist/types/ast/nodes/RootNode.d.ts +3 -0
  157. package/dist/types/ast/nodes/RootNode.d.ts.map +1 -1
  158. package/dist/types/ast/nodes/StateDeclarationNode.d.ts +3 -0
  159. package/dist/types/ast/nodes/StateDeclarationNode.d.ts.map +1 -1
  160. package/dist/types/ast/nodes/StepDeclarationNode.d.ts +14 -0
  161. package/dist/types/ast/nodes/StepDeclarationNode.d.ts.map +1 -0
  162. package/dist/types/ast/nodes/TransportStatementNode.d.ts +13 -0
  163. package/dist/types/ast/nodes/TransportStatementNode.d.ts.map +1 -0
  164. package/dist/types/ast/nodes/UnaryExpressionNode.d.ts +3 -0
  165. package/dist/types/ast/nodes/UnaryExpressionNode.d.ts.map +1 -1
  166. package/dist/types/ast/nodes/UpdateExpressionNode.d.ts +3 -0
  167. package/dist/types/ast/nodes/UpdateExpressionNode.d.ts.map +1 -1
  168. package/dist/types/ast/nodes/VariableDeclarationNode.d.ts +3 -0
  169. package/dist/types/ast/nodes/VariableDeclarationNode.d.ts.map +1 -1
  170. package/dist/types/ast/nodes/VariableDeclaratorNode.d.ts +3 -0
  171. package/dist/types/ast/nodes/VariableDeclaratorNode.d.ts.map +1 -1
  172. package/dist/types/ast/nodes/WildcardNode.d.ts +3 -0
  173. package/dist/types/ast/nodes/WildcardNode.d.ts.map +1 -1
  174. package/dist/types/ast/nodes/index.d.ts +6 -0
  175. package/dist/types/ast/nodes/index.d.ts.map +1 -1
  176. package/dist/types/ast/unions/ProtocolBodyUnion.d.ts +3 -0
  177. package/dist/types/ast/unions/ProtocolBodyUnion.d.ts.map +1 -0
  178. package/dist/types/ast/unions/StepBodyUnion.d.ts +3 -0
  179. package/dist/types/ast/unions/StepBodyUnion.d.ts.map +1 -0
  180. package/dist/types/ast/unions/TypeUnion.d.ts +2 -2
  181. package/dist/types/ast/unions/TypeUnion.d.ts.map +1 -1
  182. package/package.json +7 -11
@@ -1,6 +1,8 @@
1
1
  import type { AstNodeBase, AstNodeLayout, BlockStatementNode, ExpressionUnion } from "@/types";
2
2
  import type { AfterDeclarationContext } from "@/services/grammar/ts/language/BattleScriptParser";
3
3
  import type { BattleScriptToAST } from "@/services";
4
+ import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
5
+ import type { VisitOptions } from "@/types/VisitOptions";
4
6
  export interface AfterDeclarationNode extends AstNodeBase {
5
7
  kind: "AFTER_DECLARATION";
6
8
  delay: ExpressionUnion;
@@ -8,4 +10,5 @@ export interface AfterDeclarationNode extends AstNodeBase {
8
10
  }
9
11
  export declare const AfterDeclarationNodeLayout: AstNodeLayout<AfterDeclarationNode>[];
10
12
  export declare const afterDeclarationToAstNode: (instance: BattleScriptToAST, ctx: AfterDeclarationContext) => AfterDeclarationNode;
13
+ export declare const afterDeclarationFromAstNode: (instance: BattleScriptFromAST, node: AfterDeclarationNode, options?: VisitOptions) => string;
11
14
  //# sourceMappingURL=AfterDeclarationNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AfterDeclarationNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/AfterDeclarationNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAE7F,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,mDAAmD,CAAC;AAC/F,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAElD,MAAM,WAAW,oBAAqB,SAAQ,WAAW;IACxD,IAAI,EAAE,mBAAmB,CAAC;IAC1B,KAAK,EAAE,eAAe,CAAC;IACvB,IAAI,EAAE,kBAAkB,CAAC;CACzB;AAED,eAAO,MAAM,0BAA0B,EAAE,aAAa,CAAC,oBAAoB,CAAC,EAS1E,CAAA;AAEF,eAAO,MAAM,yBAAyB,GAAI,UAAU,iBAAiB,EAAE,KAAK,uBAAuB,KAAG,oBAOrG,CAAA"}
1
+ {"version":3,"file":"AfterDeclarationNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/AfterDeclarationNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAE7F,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,mDAAmD,CAAC;AAC/F,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAGvD,MAAM,WAAW,oBAAqB,SAAQ,WAAW;IACxD,IAAI,EAAE,mBAAmB,CAAC;IAC1B,KAAK,EAAE,eAAe,CAAC;IACvB,IAAI,EAAE,kBAAkB,CAAC;CACzB;AAED,eAAO,MAAM,0BAA0B,EAAE,aAAa,CAAC,oBAAoB,CAAC,EAS1E,CAAA;AAEF,eAAO,MAAM,yBAAyB,GAAI,UAAU,iBAAiB,EAAE,KAAK,uBAAuB,KAAG,oBAOrG,CAAA;AAED,eAAO,MAAM,2BAA2B,GAAI,UAAU,mBAAmB,EAAE,MAAM,oBAAoB,EAAE,UAAS,YAAiB,WAU/H,CAAA"}
@@ -1,6 +1,8 @@
1
1
  import type { AstNodeBase, AstNodeLayout, BlockStatementNode, ExpressionUnion } from "@/types";
2
2
  import type { AfterExpressionContext } from "@/services/grammar/ts/language/BattleScriptParser";
3
3
  import type { BattleScriptToAST } from "@/services";
4
+ import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
5
+ import type { VisitOptions } from "@/types/VisitOptions";
4
6
  export interface AfterExpressionNode extends AstNodeBase {
5
7
  kind: "AFTER_EXPRESSION";
6
8
  delay: ExpressionUnion;
@@ -8,4 +10,5 @@ export interface AfterExpressionNode extends AstNodeBase {
8
10
  }
9
11
  export declare const AfterExpressionNodeLayout: AstNodeLayout<AfterExpressionNode>[];
10
12
  export declare const afterExpressionToAstNode: (instance: BattleScriptToAST, ctx: AfterExpressionContext) => AfterExpressionNode;
13
+ export declare const afterExpressionFromAstNode: (instance: BattleScriptFromAST, node: AfterExpressionNode, options?: VisitOptions) => string;
11
14
  //# sourceMappingURL=AfterExpressionNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AfterExpressionNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/AfterExpressionNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAE7F,OAAO,KAAK,EAAC,sBAAsB,EAAE,MAAM,mDAAmD,CAAC;AAC/F,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAElD,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACvD,IAAI,EAAE,kBAAkB,CAAC;IACzB,KAAK,EAAE,eAAe,CAAC;IACvB,IAAI,EAAE,kBAAkB,CAAC;CACzB;AAED,eAAO,MAAM,yBAAyB,EAAE,aAAa,CAAC,mBAAmB,CAAC,EASxE,CAAC;AAEH,eAAO,MAAM,wBAAwB,GAAI,UAAU,iBAAiB,EAAE,KAAK,sBAAsB,KAAG,mBAOnG,CAAA"}
1
+ {"version":3,"file":"AfterExpressionNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/AfterExpressionNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAE7F,OAAO,KAAK,EAAC,sBAAsB,EAAE,MAAM,mDAAmD,CAAC;AAC/F,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAGvD,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACvD,IAAI,EAAE,kBAAkB,CAAC;IACzB,KAAK,EAAE,eAAe,CAAC;IACvB,IAAI,EAAE,kBAAkB,CAAC;CACzB;AAED,eAAO,MAAM,yBAAyB,EAAE,aAAa,CAAC,mBAAmB,CAAC,EASxE,CAAC;AAEH,eAAO,MAAM,wBAAwB,GAAI,UAAU,iBAAiB,EAAE,KAAK,sBAAsB,KAAG,mBAOnG,CAAA;AAED,eAAO,MAAM,0BAA0B,GAAI,UAAU,mBAAmB,EAAE,MAAM,mBAAmB,EAAE,UAAS,YAAiB,WAS9H,CAAA"}
@@ -1,10 +1,13 @@
1
1
  import type { AstNodeBase, AstNodeLayout, ExpressionUnion } from "@/types";
2
2
  import type { ArrayExpressionInternalContext } from "@/services/grammar/ts/language/BattleScriptParser";
3
3
  import type { BattleScriptToAST } from "@/services";
4
+ import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
5
+ import type { VisitOptions } from "@/types/VisitOptions";
4
6
  export interface ArrayExpressionNode extends AstNodeBase {
5
7
  kind: "ARRAY_EXPRESSION";
6
8
  elements: ExpressionUnion[];
7
9
  }
8
10
  export declare const ArrayExpressionNodeLayout: AstNodeLayout<ArrayExpressionNode>[];
9
11
  export declare const arrayExpressionInternalToAstNode: (instance: BattleScriptToAST, ctx: ArrayExpressionInternalContext) => ArrayExpressionNode;
12
+ export declare const arrayExpressionFromAstNode: (instance: BattleScriptFromAST, node: ArrayExpressionNode, options?: VisitOptions) => string;
10
13
  //# sourceMappingURL=ArrayExpressionNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ArrayExpressionNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/ArrayExpressionNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAEzE,OAAO,KAAK,EAAC,8BAA8B,EAAC,MAAM,mDAAmD,CAAC;AACtG,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAElD,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACvD,IAAI,EAAE,kBAAkB,CAAC;IACzB,QAAQ,EAAE,eAAe,EAAE,CAAC;CAC5B;AAED,eAAO,MAAM,yBAAyB,EAAE,aAAa,CAAC,mBAAmB,CAAC,EAMxE,CAAC;AAEH,eAAO,MAAM,gCAAgC,GAAI,UAAU,iBAAiB,EAAE,KAAK,8BAA8B,KAAG,mBAMnH,CAAA"}
1
+ {"version":3,"file":"ArrayExpressionNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/ArrayExpressionNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAEzE,OAAO,KAAK,EAAC,8BAA8B,EAAC,MAAM,mDAAmD,CAAC;AACtG,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAEvD,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACvD,IAAI,EAAE,kBAAkB,CAAC;IACzB,QAAQ,EAAE,eAAe,EAAE,CAAC;CAC5B;AAED,eAAO,MAAM,yBAAyB,EAAE,aAAa,CAAC,mBAAmB,CAAC,EAMxE,CAAC;AAEH,eAAO,MAAM,gCAAgC,GAAI,UAAU,iBAAiB,EAAE,KAAK,8BAA8B,KAAG,mBAMnH,CAAA;AAED,eAAO,MAAM,0BAA0B,GAAI,UAAU,mBAAmB,EAAE,MAAM,mBAAmB,EAAE,UAAS,YAAiB,WAE7H,CAAA"}
@@ -1,6 +1,8 @@
1
1
  import type { AstNodeBase, AstNodeLayout, ExpressionUnion, OptimisedAssignmentExpressionNode, TokenUnion } from "@/types";
2
2
  import type { BattleScriptToAST } from "@/services";
3
3
  import type { AssignmentExpressionContext } from "@/services/grammar/ts/language/BattleScriptParser";
4
+ import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
5
+ import type { VisitOptions } from "@/types/VisitOptions";
4
6
  export interface AssignmentExpressionNode extends AstNodeBase {
5
7
  kind: "ASSIGNMENT_EXPRESSION";
6
8
  left: TokenUnion;
@@ -9,4 +11,5 @@ export interface AssignmentExpressionNode extends AstNodeBase {
9
11
  }
10
12
  export declare const AssignmentExpressionNodeLayout: AstNodeLayout<AssignmentExpressionNode>[];
11
13
  export declare const assignmentExpressionToAstNode: (instance: BattleScriptToAST, ctx: AssignmentExpressionContext) => AssignmentExpressionNode | OptimisedAssignmentExpressionNode;
14
+ export declare const assignmentExpressionFromAstNode: (instance: BattleScriptFromAST, node: AssignmentExpressionNode, options?: VisitOptions) => string;
12
15
  //# sourceMappingURL=AssignmentExpressionNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AssignmentExpressionNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/AssignmentExpressionNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,iCAAiC,EAAE,UAAU,EAAC,MAAM,SAAS,CAAC;AAExH,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,2BAA2B,EAAC,MAAM,mDAAmD,CAAC;AAGnG,MAAM,WAAW,wBAAyB,SAAQ,WAAW;IAC5D,IAAI,EAAE,uBAAuB,CAAC;IAC9B,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,GAAG,GAAG,IAAI,GAAG,IAAI,CAAC;IAC5B,KAAK,EAAE,eAAe,CAAC;CACvB;AAED,eAAO,MAAM,8BAA8B,EAAE,aAAa,CAAC,wBAAwB,CAAC,EAYlF,CAAC;AAEH,eAAO,MAAM,6BAA6B,GAAI,UAAU,iBAAiB,EAAE,KAAK,2BAA2B,KAAG,wBAAwB,GAAG,iCAqBxI,CAAA"}
1
+ {"version":3,"file":"AssignmentExpressionNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/AssignmentExpressionNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,iCAAiC,EAAE,UAAU,EAAC,MAAM,SAAS,CAAC;AAExH,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,2BAA2B,EAAC,MAAM,mDAAmD,CAAC;AAEnG,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAEvD,MAAM,WAAW,wBAAyB,SAAQ,WAAW;IAC5D,IAAI,EAAE,uBAAuB,CAAC;IAC9B,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,GAAG,GAAG,IAAI,GAAG,IAAI,CAAC;IAC5B,KAAK,EAAE,eAAe,CAAC;CACvB;AAED,eAAO,MAAM,8BAA8B,EAAE,aAAa,CAAC,wBAAwB,CAAC,EAYlF,CAAC;AAEH,eAAO,MAAM,6BAA6B,GAAI,UAAU,iBAAiB,EAAE,KAAK,2BAA2B,KAAG,wBAAwB,GAAG,iCAqBxI,CAAA;AAED,eAAO,MAAM,+BAA+B,GAAI,UAAU,mBAAmB,EAAE,MAAM,wBAAwB,EAAE,UAAS,YAAiB,WAQvI,CAAA"}
@@ -1,6 +1,8 @@
1
1
  import type { AstNodeBase, AstNodeLayout, ExpressionUnion, IdentifierNode, RestElementNode } from "@/types";
2
2
  import type { BattleScriptToAST } from "@/services";
3
3
  import type { AssignmentPatternContext } from "@/services/grammar/ts/language/BattleScriptParser";
4
+ import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
5
+ import type { VisitOptions } from "@/types/VisitOptions";
4
6
  export interface AssignmentPatternNode extends AstNodeBase {
5
7
  kind: "ASSIGNMENT_PATTERN";
6
8
  left: IdentifierNode | RestElementNode;
@@ -9,4 +11,5 @@ export interface AssignmentPatternNode extends AstNodeBase {
9
11
  }
10
12
  export declare const AssignmentPatternNodeLayout: AstNodeLayout<AssignmentPatternNode>[];
11
13
  export declare const assignmentPatternToAstNode: (instance: BattleScriptToAST, ctx: AssignmentPatternContext) => AssignmentPatternNode;
14
+ export declare const functionParameterFromAstNode: (instance: BattleScriptFromAST, node: AssignmentPatternNode, options?: VisitOptions) => string;
12
15
  //# sourceMappingURL=AssignmentPatternNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AssignmentPatternNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/AssignmentPatternNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAgB,eAAe,EAAE,cAAc,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAExH,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,mDAAmD,CAAC;AAGhG,MAAM,WAAW,qBAAsB,SAAQ,WAAW;IACzD,IAAI,EAAE,oBAAoB,CAAC;IAC3B,IAAI,EAAE,cAAc,GAAG,eAAe,CAAC;IACvC,QAAQ,EAAE,GAAG,CAAC;IACd,KAAK,EAAE,eAAe,CAAC;CACvB;AAED,eAAO,MAAM,2BAA2B,EAAE,aAAa,CAAC,qBAAqB,CAAC,EAgB5E,CAAC;AAEH,eAAO,MAAM,0BAA0B,GAAI,UAAU,iBAAiB,EAAE,KAAK,wBAAwB,KAAG,qBAuBvG,CAAA"}
1
+ {"version":3,"file":"AssignmentPatternNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/AssignmentPatternNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAgB,eAAe,EAAE,cAAc,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAExH,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,mDAAmD,CAAC;AAEhG,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAEvD,MAAM,WAAW,qBAAsB,SAAQ,WAAW;IACzD,IAAI,EAAE,oBAAoB,CAAC;IAC3B,IAAI,EAAE,cAAc,GAAG,eAAe,CAAC;IACvC,QAAQ,EAAE,GAAG,CAAC;IACd,KAAK,EAAE,eAAe,CAAC;CACvB;AAED,eAAO,MAAM,2BAA2B,EAAE,aAAa,CAAC,qBAAqB,CAAC,EAgB5E,CAAC;AAEH,eAAO,MAAM,0BAA0B,GAAI,UAAU,iBAAiB,EAAE,KAAK,wBAAwB,KAAG,qBAuBvG,CAAA;AAED,eAAO,MAAM,4BAA4B,GAAI,UAAU,mBAAmB,EAAE,MAAM,qBAAqB,EAAE,UAAS,YAAiB,WASjI,CAAA"}
@@ -1,3 +1,3 @@
1
- import type { AfterDeclarationNode, AfterExpressionNode, ArrayExpressionNode, AssignmentExpressionNode, AssignmentPatternNode, BinaryExpressionNode, BlockStatementNode, BlockStatementUnion, BreakStatementNode, CallExpressionNode, CancelStatementNode, CatchStatementNode, CommentNode, ConstantDeclarationNode, ConstantDeclaratorNode, ContinueStatementNode, CustomTypeNode, DataTypeNode, EvaluateCaseNode, EvaluateFallbackNode, EvaluateStatementNode, EventDeclarationNode, EveryDeclarationNode, EveryExpressionNode, ExpressionStatementNode, ForStatementNode, FunctionDeclarationNode, FunctionDefinitionNode, IdentifierNode, IfStatementNode, ImportDeclarationNode, InterfaceNode, InterfacePropertyDeclarationNode, LiteralBooleanNode, LiteralDoubleNode, LiteralFloatNode, LiteralIntNode, LiteralNullNode, LiteralStringNode, LiteralUndefinedNode, MemberExpressionNode, ObjectExpressionNode, ObjectPropertyNode, OptimisedAssignmentExpressionNode, OptimisedBinaryExpressionNode, OptimisedMemberExpressionNode, OptimisedUpdateExpressionNode, ProgramDeclarationNode, ProgramPropertyDeclarationNode, RestElementNode, ReturnStatementNode, RootNode, StateDeclarationNode, UnaryExpressionNode, UpdateExpressionNode, VariableDeclarationNode, VariableDeclaratorNode, WildcardNode } from "@/types";
2
- export type AstNode = AfterDeclarationNode | AfterExpressionNode | ArrayExpressionNode | AssignmentExpressionNode | BinaryExpressionNode | BlockStatementNode | BlockStatementUnion | BreakStatementNode | CallExpressionNode | CancelStatementNode | CatchStatementNode | CommentNode | ConstantDeclarationNode | ConstantDeclaratorNode | ContinueStatementNode | DataTypeNode | EvaluateCaseNode | EvaluateFallbackNode | EvaluateStatementNode | EventDeclarationNode | EveryDeclarationNode | EveryExpressionNode | ExpressionStatementNode | ForStatementNode | FunctionDeclarationNode | AssignmentPatternNode | IdentifierNode | IfStatementNode | InterfaceNode | InterfacePropertyDeclarationNode | LiteralDoubleNode | LiteralIntNode | LiteralFloatNode | LiteralBooleanNode | LiteralStringNode | LiteralNullNode | LiteralUndefinedNode | MemberExpressionNode | ObjectExpressionNode | ObjectPropertyNode | ProgramDeclarationNode | ProgramPropertyDeclarationNode | ReturnStatementNode | RootNode | StateDeclarationNode | UnaryExpressionNode | UpdateExpressionNode | VariableDeclarationNode | VariableDeclaratorNode | ImportDeclarationNode | FunctionDefinitionNode | RestElementNode | WildcardNode | OptimisedAssignmentExpressionNode | OptimisedUpdateExpressionNode | OptimisedBinaryExpressionNode | OptimisedMemberExpressionNode | CustomTypeNode;
1
+ import type { AfterDeclarationNode, AfterExpressionNode, ArrayExpressionNode, AssignmentExpressionNode, AssignmentPatternNode, BinaryExpressionNode, BlockStatementNode, BlockStatementUnion, BreakStatementNode, CallExpressionNode, CancelStatementNode, CatchStatementNode, CommentNode, ConstantDeclarationNode, ConstantDeclaratorNode, ContinueStatementNode, CustomTypeNode, DataTypeNode, DefineStatementNode, EnumDeclarationNode, EvaluateCaseNode, EvaluateFallbackNode, EvaluateStatementNode, EventDeclarationNode, EveryDeclarationNode, EveryExpressionNode, ExpressionStatementNode, ForStatementNode, FunctionDeclarationNode, FunctionDefinitionNode, IdentifierNode, IfStatementNode, ImportDeclarationNode, InterfaceNode, InterfacePropertyDeclarationNode, LiteralBooleanNode, LiteralDoubleNode, LiteralFloatNode, LiteralIntNode, LiteralNullNode, LiteralStringNode, LiteralUndefinedNode, MemberExpressionNode, ObjectExpressionNode, ObjectPropertyNode, OptimisedAssignmentExpressionNode, OptimisedBinaryExpressionNode, OptimisedMemberExpressionNode, OptimisedUpdateExpressionNode, ProgramDeclarationNode, ProgramPropertyDeclarationNode, ProtocolDeclarationNode, ProtocolTypeNode, RequireStatementNode, RestElementNode, ReturnStatementNode, RootNode, StateDeclarationNode, StepDeclarationNode, UnaryExpressionNode, UpdateExpressionNode, VariableDeclarationNode, VariableDeclaratorNode, WildcardNode } from "@/types";
2
+ export type AstNode = AfterDeclarationNode | AfterExpressionNode | ArrayExpressionNode | AssignmentExpressionNode | BinaryExpressionNode | BlockStatementNode | BlockStatementUnion | BreakStatementNode | CallExpressionNode | CancelStatementNode | CatchStatementNode | CommentNode | ConstantDeclarationNode | ConstantDeclaratorNode | ContinueStatementNode | DataTypeNode | EvaluateCaseNode | EvaluateFallbackNode | EvaluateStatementNode | EventDeclarationNode | EveryDeclarationNode | EveryExpressionNode | ExpressionStatementNode | ForStatementNode | FunctionDeclarationNode | AssignmentPatternNode | IdentifierNode | IfStatementNode | InterfaceNode | InterfacePropertyDeclarationNode | LiteralDoubleNode | LiteralIntNode | LiteralFloatNode | LiteralBooleanNode | LiteralStringNode | LiteralNullNode | LiteralUndefinedNode | MemberExpressionNode | ObjectExpressionNode | ObjectPropertyNode | ProgramDeclarationNode | ProgramPropertyDeclarationNode | ReturnStatementNode | RootNode | StateDeclarationNode | UnaryExpressionNode | UpdateExpressionNode | VariableDeclarationNode | VariableDeclaratorNode | ImportDeclarationNode | FunctionDefinitionNode | RestElementNode | WildcardNode | OptimisedAssignmentExpressionNode | OptimisedUpdateExpressionNode | OptimisedBinaryExpressionNode | OptimisedMemberExpressionNode | CustomTypeNode | ProtocolDeclarationNode | ProtocolTypeNode | DefineStatementNode | RequireStatementNode | StepDeclarationNode | EnumDeclarationNode;
3
3
  //# sourceMappingURL=AstNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AstNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/AstNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACX,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,uBAAuB,EACvB,gBAAgB,EAChB,uBAAuB,EACvB,sBAAsB,EACtB,cAAc,EACd,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,gCAAgC,EAChC,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,iCAAiC,EACjC,6BAA6B,EAC7B,6BAA6B,EAC7B,6BAA6B,EAC7B,sBAAsB,EACtB,8BAA8B,EAC9B,eAAe,EACf,mBAAmB,EACnB,QAAQ,EACR,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,YAAY,EACZ,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,OAAO,GAChB,oBAAoB,GACpB,mBAAmB,GACnB,mBAAmB,GACnB,wBAAwB,GACxB,oBAAoB,GACpB,kBAAkB,GAClB,mBAAmB,GACnB,kBAAkB,GAClB,kBAAkB,GAClB,mBAAmB,GACnB,kBAAkB,GAClB,WAAW,GACX,uBAAuB,GACvB,sBAAsB,GACtB,qBAAqB,GACrB,YAAY,GACZ,gBAAgB,GAChB,oBAAoB,GACpB,qBAAqB,GACrB,oBAAoB,GACpB,oBAAoB,GACpB,mBAAmB,GACnB,uBAAuB,GACvB,gBAAgB,GAChB,uBAAuB,GACvB,qBAAqB,GACrB,cAAc,GACd,eAAe,GACf,aAAa,GACb,gCAAgC,GAChC,iBAAiB,GACjB,cAAc,GACd,gBAAgB,GAChB,kBAAkB,GAClB,iBAAiB,GACjB,eAAe,GACf,oBAAoB,GACpB,oBAAoB,GACpB,oBAAoB,GACpB,kBAAkB,GAClB,sBAAsB,GACtB,8BAA8B,GAC9B,mBAAmB,GACnB,QAAQ,GACR,oBAAoB,GACpB,mBAAmB,GACnB,oBAAoB,GACpB,uBAAuB,GACvB,sBAAsB,GACtB,qBAAqB,GACrB,sBAAsB,GACtB,eAAe,GACf,YAAY,GACZ,iCAAiC,GACjC,6BAA6B,GAC7B,6BAA6B,GAC7B,6BAA6B,GAC7B,cAAc,CACf"}
1
+ {"version":3,"file":"AstNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/AstNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACX,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,uBAAuB,EACvB,gBAAgB,EAChB,uBAAuB,EACvB,sBAAsB,EACtB,cAAc,EACd,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,gCAAgC,EAChC,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,iCAAiC,EACjC,6BAA6B,EAC7B,6BAA6B,EAC7B,6BAA6B,EAC7B,sBAAsB,EACtB,8BAA8B,EAC9B,uBAAuB,EACvB,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,EACf,mBAAmB,EACnB,QAAQ,EACR,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,YAAY,EACZ,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,OAAO,GAChB,oBAAoB,GACpB,mBAAmB,GACnB,mBAAmB,GACnB,wBAAwB,GACxB,oBAAoB,GACpB,kBAAkB,GAClB,mBAAmB,GACnB,kBAAkB,GAClB,kBAAkB,GAClB,mBAAmB,GACnB,kBAAkB,GAClB,WAAW,GACX,uBAAuB,GACvB,sBAAsB,GACtB,qBAAqB,GACrB,YAAY,GACZ,gBAAgB,GAChB,oBAAoB,GACpB,qBAAqB,GACrB,oBAAoB,GACpB,oBAAoB,GACpB,mBAAmB,GACnB,uBAAuB,GACvB,gBAAgB,GAChB,uBAAuB,GACvB,qBAAqB,GACrB,cAAc,GACd,eAAe,GACf,aAAa,GACb,gCAAgC,GAChC,iBAAiB,GACjB,cAAc,GACd,gBAAgB,GAChB,kBAAkB,GAClB,iBAAiB,GACjB,eAAe,GACf,oBAAoB,GACpB,oBAAoB,GACpB,oBAAoB,GACpB,kBAAkB,GAClB,sBAAsB,GACtB,8BAA8B,GAC9B,mBAAmB,GACnB,QAAQ,GACR,oBAAoB,GACpB,mBAAmB,GACnB,oBAAoB,GACpB,uBAAuB,GACvB,sBAAsB,GACtB,qBAAqB,GACrB,sBAAsB,GACtB,eAAe,GACf,YAAY,GACZ,iCAAiC,GACjC,6BAA6B,GAC7B,6BAA6B,GAC7B,6BAA6B,GAC7B,cAAc,GACd,uBAAuB,GACvB,gBAAgB,GAChB,mBAAmB,GACnB,oBAAoB,GACpB,mBAAmB,GACnB,mBAAmB,CACpB"}
@@ -1,6 +1,8 @@
1
1
  import type { AstNodeBase, AstNodeLayout, BinaryOperator, ExpressionUnion, OptimisedBinaryExpressionNode, ValueUnion } from "@/types";
2
2
  import type { BattleScriptToAST } from "@/services";
3
3
  import type { BinaryExpressionContext } from "@/services/grammar/ts/language/BattleScriptParser";
4
+ import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
5
+ import type { VisitOptions } from "@/types/VisitOptions";
4
6
  export interface BinaryExpressionNode extends AstNodeBase {
5
7
  kind: "BINARY_EXPRESSION";
6
8
  left: ValueUnion;
@@ -9,4 +11,5 @@ export interface BinaryExpressionNode extends AstNodeBase {
9
11
  }
10
12
  export declare const BinaryExpressionNodeLayout: AstNodeLayout<BinaryExpressionNode>[];
11
13
  export declare const binaryExpressionToAstNode: (instance: BattleScriptToAST, ctx: BinaryExpressionContext) => BinaryExpressionNode | OptimisedBinaryExpressionNode;
14
+ export declare const binaryExpressionFromAstNode: (instance: BattleScriptFromAST, node: BinaryExpressionNode, options?: VisitOptions) => string;
12
15
  //# sourceMappingURL=BinaryExpressionNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BinaryExpressionNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/BinaryExpressionNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,WAAW,EACX,aAAa,EACb,cAAc,EACd,eAAe,EACf,6BAA6B,EAC7B,UAAU,EACV,MAAM,SAAS,CAAC;AAEjB,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,mDAAmD,CAAC;AAG/F,MAAM,WAAW,oBAAqB,SAAQ,WAAW;IACxD,IAAI,EAAE,mBAAmB,CAAC;IAC1B,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,cAAc,CAAC;IACzB,KAAK,EAAE,eAAe,CAAC;CACvB;AAED,eAAO,MAAM,0BAA0B,EAAE,aAAa,CAAC,oBAAoB,CAAC,EAY1E,CAAC;AAEH,eAAO,MAAM,yBAAyB,GAAI,UAAU,iBAAiB,EAAE,KAAK,uBAAuB,KAAG,oBAAoB,GAAG,6BAqB5H,CAAA"}
1
+ {"version":3,"file":"BinaryExpressionNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/BinaryExpressionNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,WAAW,EACX,aAAa,EACb,cAAc,EACd,eAAe,EACf,6BAA6B,EAC7B,UAAU,EACV,MAAM,SAAS,CAAC;AAEjB,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,mDAAmD,CAAC;AAE/F,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAEvD,MAAM,WAAW,oBAAqB,SAAQ,WAAW;IACxD,IAAI,EAAE,mBAAmB,CAAC;IAC1B,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,cAAc,CAAC;IACzB,KAAK,EAAE,eAAe,CAAC;CACvB;AAED,eAAO,MAAM,0BAA0B,EAAE,aAAa,CAAC,oBAAoB,CAAC,EAY1E,CAAC;AAEH,eAAO,MAAM,yBAAyB,GAAI,UAAU,iBAAiB,EAAE,KAAK,uBAAuB,KAAG,oBAAoB,GAAG,6BAqB5H,CAAA;AAED,eAAO,MAAM,2BAA2B,GAAI,UAAU,mBAAmB,EAAE,MAAM,oBAAoB,EAAE,UAAS,YAAiB,WAQhI,CAAA"}
@@ -1,10 +1,13 @@
1
1
  import type { AstNodeBase, AstNodeLayout, BlockStatementUnion } from "@/types";
2
2
  import type { BlockStatementContext } from "@/services/grammar/ts/language/BattleScriptParser";
3
3
  import type { BattleScriptToAST } from "@/services";
4
+ import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
5
+ import type { VisitOptions } from "@/types/VisitOptions";
4
6
  export interface BlockStatementNode extends AstNodeBase {
5
7
  kind: "BLOCK_STATEMENT";
6
8
  body: BlockStatementUnion[];
7
9
  }
8
10
  export declare const BlockStatementNodeLayout: AstNodeLayout<BlockStatementNode>[];
9
11
  export declare const blockStatementToAstNode: (instance: BattleScriptToAST, ctx: BlockStatementContext) => BlockStatementNode;
12
+ export declare const blockStatementFromAstNode: (instance: BattleScriptFromAST, node: BlockStatementNode, options?: VisitOptions) => string;
10
13
  //# sourceMappingURL=BlockStatementNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BlockStatementNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/BlockStatementNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,mBAAmB,EAAC,MAAM,SAAS,CAAC;AAE7E,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,mDAAmD,CAAC;AAC7F,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAElD,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACtD,IAAI,EAAE,iBAAiB,CAAC;IACxB,IAAI,EAAE,mBAAmB,EAAE,CAAC;CAC5B;AAED,eAAO,MAAM,wBAAwB,EAAE,aAAa,CAAC,kBAAkB,CAAC,EAMtE,CAAC;AAEH,eAAO,MAAM,uBAAuB,GAAI,UAAU,iBAAiB,EAAE,KAAK,qBAAqB,KAAG,kBAMjG,CAAA"}
1
+ {"version":3,"file":"BlockStatementNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/BlockStatementNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,mBAAmB,EAAC,MAAM,SAAS,CAAC;AAE7E,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,mDAAmD,CAAC;AAC7F,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAEvD,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACtD,IAAI,EAAE,iBAAiB,CAAC;IACxB,IAAI,EAAE,mBAAmB,EAAE,CAAC;CAC5B;AAED,eAAO,MAAM,wBAAwB,EAAE,aAAa,CAAC,kBAAkB,CAAC,EAMtE,CAAC;AAEH,eAAO,MAAM,uBAAuB,GAAI,UAAU,iBAAiB,EAAE,KAAK,qBAAqB,KAAG,kBAMjG,CAAA;AAED,eAAO,MAAM,yBAAyB,GAAI,UAAU,mBAAmB,EAAE,MAAM,kBAAkB,EAAE,UAAS,YAAiB,WAS3H,CAAA"}
@@ -1,9 +1,12 @@
1
1
  import type { AstNodeBase, AstNodeLayout } from "@/types";
2
2
  import type { BattleScriptToAST } from "@/services";
3
3
  import type { BreakStatementContext } from "@/services/grammar/ts/language/BattleScriptParser";
4
+ import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
5
+ import type { VisitOptions } from "@/types/VisitOptions";
4
6
  export interface BreakStatementNode extends AstNodeBase {
5
7
  kind: "BREAK_STATEMENT";
6
8
  }
7
9
  export declare const BreakStatementNodeLayout: AstNodeLayout<BreakStatementNode>[];
8
10
  export declare const breakStatementToAstNode: (instance: BattleScriptToAST, ctx: BreakStatementContext) => BreakStatementNode;
11
+ export declare const breakStatementFromAstNode: (instance: BattleScriptFromAST, node: BreakStatementNode, options?: VisitOptions) => string;
9
12
  //# sourceMappingURL=BreakStatementNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BreakStatementNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/BreakStatementNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAExD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,mDAAmD,CAAC;AAE7F,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACtD,IAAI,EAAE,iBAAiB,CAAC;CACxB;AAED,eAAO,MAAM,wBAAwB,EAAE,aAAa,CAAC,kBAAkB,CAAC,EAGtE,CAAC;AAEH,eAAO,MAAM,uBAAuB,GAAI,UAAU,iBAAiB,EAAE,KAAK,qBAAqB,KAAG,kBAKjG,CAAA"}
1
+ {"version":3,"file":"BreakStatementNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/BreakStatementNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAExD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,mDAAmD,CAAC;AAC7F,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAGvD,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACtD,IAAI,EAAE,iBAAiB,CAAC;CACxB;AAED,eAAO,MAAM,wBAAwB,EAAE,aAAa,CAAC,kBAAkB,CAAC,EAGtE,CAAC;AAEH,eAAO,MAAM,uBAAuB,GAAI,UAAU,iBAAiB,EAAE,KAAK,qBAAqB,KAAG,kBAKjG,CAAA;AAED,eAAO,MAAM,yBAAyB,GAAI,UAAU,mBAAmB,EAAE,MAAM,kBAAkB,EAAE,UAAS,YAAiB,WAK3H,CAAA"}
@@ -1,6 +1,8 @@
1
1
  import type { ArgumentUnion, AstNodeBase, AstNodeLayout, IdentifierNode, MemberExpressionNode } from "@/types";
2
2
  import type { BattleScriptToAST } from "@/services";
3
3
  import type { CallExpressionContext } from "@/services/grammar/ts/language/BattleScriptParser";
4
+ import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
5
+ import type { VisitOptions } from "@/types/VisitOptions";
4
6
  export interface CallExpressionNode extends AstNodeBase {
5
7
  kind: "CALL_EXPRESSION";
6
8
  name: MemberExpressionNode | IdentifierNode;
@@ -8,4 +10,5 @@ export interface CallExpressionNode extends AstNodeBase {
8
10
  }
9
11
  export declare const CallExpressionNodeLayout: AstNodeLayout<CallExpressionNode>[];
10
12
  export declare const callExpressionToAstNode: (instance: BattleScriptToAST, ctx: CallExpressionContext) => CallExpressionNode;
13
+ export declare const callExpressionFromAstNode: (instance: BattleScriptFromAST, node: CallExpressionNode, options?: VisitOptions) => string;
11
14
  //# sourceMappingURL=CallExpressionNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CallExpressionNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/CallExpressionNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,oBAAoB,EAAC,MAAM,SAAS,CAAC;AAE7G,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,mDAAmD,CAAC;AAE7F,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACtD,IAAI,EAAE,iBAAiB,CAAC;IACxB,IAAI,EAAE,oBAAoB,GAAG,cAAc,CAAC;IAC5C,SAAS,EAAE,aAAa,EAAE,CAAC;CAC3B;AAED,eAAO,MAAM,wBAAwB,EAAE,aAAa,CAAC,kBAAkB,CAAC,EAStE,CAAC;AAEH,eAAO,MAAM,uBAAuB,GAAI,UAAU,iBAAiB,EAAE,KAAK,qBAAqB,KAAG,kBAUjG,CAAA"}
1
+ {"version":3,"file":"CallExpressionNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/CallExpressionNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,oBAAoB,EAAC,MAAM,SAAS,CAAC;AAE7G,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,mDAAmD,CAAC;AAC7F,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAEvD,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACtD,IAAI,EAAE,iBAAiB,CAAC;IACxB,IAAI,EAAE,oBAAoB,GAAG,cAAc,CAAC;IAC5C,SAAS,EAAE,aAAa,EAAE,CAAC;CAC3B;AAED,eAAO,MAAM,wBAAwB,EAAE,aAAa,CAAC,kBAAkB,CAAC,EAStE,CAAC;AAEH,eAAO,MAAM,uBAAuB,GAAI,UAAU,iBAAiB,EAAE,KAAK,qBAAqB,KAAG,kBAUjG,CAAA;AAED,eAAO,MAAM,yBAAyB,GAAI,UAAU,mBAAmB,EAAE,MAAM,kBAAkB,EAAE,UAAS,YAAiB,WAK3H,CAAA"}
@@ -1,10 +1,13 @@
1
1
  import type { AstNodeBase, AstNodeLayout, TokenUnion } from "@/types";
2
2
  import type { CancelStatementContext } from "@/services/grammar/ts/language/BattleScriptParser";
3
3
  import type { BattleScriptToAST } from "@/services";
4
+ import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
5
+ import type { VisitOptions } from "@/types/VisitOptions";
4
6
  export interface CancelStatementNode extends AstNodeBase {
5
7
  kind: "CANCEL_STATEMENT";
6
8
  id?: TokenUnion;
7
9
  }
8
10
  export declare const CancelStatementNodeLayout: AstNodeLayout<CancelStatementNode>[];
9
11
  export declare const cancelStatementToAstNode: (instance: BattleScriptToAST, ctx: CancelStatementContext) => CancelStatementNode;
12
+ export declare const cancelStatementFromAstNode: (instance: BattleScriptFromAST, node: CancelStatementNode, options?: VisitOptions) => string;
10
13
  //# sourceMappingURL=CancelStatementNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CancelStatementNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/CancelStatementNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,UAAU,EAAC,MAAM,SAAS,CAAC;AAEpE,OAAO,KAAK,EAAC,sBAAsB,EAAC,MAAM,mDAAmD,CAAC;AAC9F,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAElD,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACvD,IAAI,EAAE,kBAAkB,CAAC;IACzB,EAAE,CAAC,EAAE,UAAU,CAAC;CAChB;AAED,eAAO,MAAM,yBAAyB,EAAE,aAAa,CAAC,mBAAmB,CAAC,EAOxE,CAAC;AAEH,eAAO,MAAM,wBAAwB,GAAI,UAAU,iBAAiB,EAAE,KAAK,sBAAsB,KAAG,mBAcnG,CAAA"}
1
+ {"version":3,"file":"CancelStatementNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/CancelStatementNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,UAAU,EAAC,MAAM,SAAS,CAAC;AAEpE,OAAO,KAAK,EAAC,sBAAsB,EAAC,MAAM,mDAAmD,CAAC;AAC9F,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAGvD,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACvD,IAAI,EAAE,kBAAkB,CAAC;IACzB,EAAE,CAAC,EAAE,UAAU,CAAC;CAChB;AAED,eAAO,MAAM,yBAAyB,EAAE,aAAa,CAAC,mBAAmB,CAAC,EAOxE,CAAC;AAEH,eAAO,MAAM,wBAAwB,GAAI,UAAU,iBAAiB,EAAE,KAAK,sBAAsB,KAAG,mBAcnG,CAAA;AAED,eAAO,MAAM,0BAA0B,GAAI,UAAU,mBAAmB,EAAE,MAAM,mBAAmB,EAAE,UAAS,YAAiB,WAY7H,CAAA"}
@@ -1,6 +1,8 @@
1
1
  import type { AstNodeBase, AstNodeLayout, BlockStatementNode, IdentifierNode } from "@/types";
2
2
  import type { CatchAsStatementContext, CatchStatementContext } from "@/services/grammar/ts/language/BattleScriptParser";
3
3
  import type { BattleScriptToAST } from "@/services";
4
+ import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
5
+ import type { VisitOptions } from "@/types/VisitOptions";
4
6
  export interface CatchStatementNode extends AstNodeBase {
5
7
  kind: "CATCH_STATEMENT";
6
8
  subjects: IdentifierNode[];
@@ -10,4 +12,5 @@ export interface CatchStatementNode extends AstNodeBase {
10
12
  export declare const CatchStatementNodeLayout: AstNodeLayout<CatchStatementNode>[];
11
13
  export declare const catchStatementToAstNode: (instance: BattleScriptToAST, ctx: CatchStatementContext) => CatchStatementNode;
12
14
  export declare const catchAsStatementToAstNode: (instance: BattleScriptToAST, ctx: CatchAsStatementContext) => CatchStatementNode;
15
+ export declare const catchStatementFromAstNode: (instance: BattleScriptFromAST, node: CatchStatementNode, options?: VisitOptions) => string;
13
16
  //# sourceMappingURL=CatchStatementNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CatchStatementNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/CatchStatementNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAE,cAAc,EAAC,MAAM,SAAS,CAAC;AAE5F,OAAO,KAAK,EAAC,uBAAuB,EAAE,qBAAqB,EAAC,MAAM,mDAAmD,CAAC;AACtH,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAElD,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACtD,IAAI,EAAE,iBAAiB,CAAC;IACxB,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,EAAE,CAAC,EAAE,cAAc,CAAC;IACpB,IAAI,EAAE,kBAAkB,CAAC;CACzB;AAED,eAAO,MAAM,wBAAwB,EAAE,aAAa,CAAC,kBAAkB,CAAC,EAatE,CAAC;AAEH,eAAO,MAAM,uBAAuB,GAAI,UAAU,iBAAiB,EAAE,KAAK,qBAAqB,KAAG,kBAQjG,CAAA;AAED,eAAO,MAAM,yBAAyB,GAAI,UAAU,iBAAiB,EAAE,KAAK,uBAAuB,KAAG,kBAgBrG,CAAA"}
1
+ {"version":3,"file":"CatchStatementNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/CatchStatementNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAE,cAAc,EAAC,MAAM,SAAS,CAAC;AAE5F,OAAO,KAAK,EAAC,uBAAuB,EAAE,qBAAqB,EAAC,MAAM,mDAAmD,CAAC;AACtH,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAGvD,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACtD,IAAI,EAAE,iBAAiB,CAAC;IACxB,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,EAAE,CAAC,EAAE,cAAc,CAAC;IACpB,IAAI,EAAE,kBAAkB,CAAC;CACzB;AAED,eAAO,MAAM,wBAAwB,EAAE,aAAa,CAAC,kBAAkB,CAAC,EAatE,CAAC;AAEH,eAAO,MAAM,uBAAuB,GAAI,UAAU,iBAAiB,EAAE,KAAK,qBAAqB,KAAG,kBAQjG,CAAA;AAED,eAAO,MAAM,yBAAyB,GAAI,UAAU,iBAAiB,EAAE,KAAK,uBAAuB,KAAG,kBAgBrG,CAAA;AAED,eAAO,MAAM,yBAAyB,GAAI,UAAU,mBAAmB,EAAE,MAAM,kBAAkB,EAAE,UAAS,YAAiB,WAU3H,CAAA"}
@@ -1,10 +1,13 @@
1
1
  import type { AstNodeBase, AstNodeLayout } from "@/types";
2
2
  import type { BattleScriptToAST } from "@/services";
3
3
  import type { CommentContext } from "@/services/grammar/ts/language/BattleScriptParser";
4
+ import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
5
+ import type { VisitOptions } from "@/types/VisitOptions";
4
6
  export interface CommentNode extends AstNodeBase {
5
7
  kind: "COMMENT";
6
8
  text: string;
7
9
  }
8
10
  export declare const CommentNodeLayout: AstNodeLayout<CommentNode>[];
9
11
  export declare const commentToAstNode: (instance: BattleScriptToAST, ctx: CommentContext) => CommentNode;
12
+ export declare const commentFromAstNode: (instance: BattleScriptFromAST, node: CommentNode, options?: VisitOptions) => string;
10
13
  //# sourceMappingURL=CommentNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CommentNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/CommentNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAExD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,mDAAmD,CAAC;AAEtF,MAAM,WAAW,WAAY,SAAQ,WAAW;IAC/C,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,iBAAiB,EAAE,aAAa,CAAC,WAAW,CAAC,EAMxD,CAAC;AAEH,eAAO,MAAM,gBAAgB,GAAI,UAAU,iBAAiB,EAAE,KAAK,cAAc,KAAG,WAMnF,CAAA"}
1
+ {"version":3,"file":"CommentNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/CommentNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAExD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,mDAAmD,CAAC;AACtF,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAEvD,MAAM,WAAW,WAAY,SAAQ,WAAW;IAC/C,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,iBAAiB,EAAE,aAAa,CAAC,WAAW,CAAC,EAMxD,CAAC;AAEH,eAAO,MAAM,gBAAgB,GAAI,UAAU,iBAAiB,EAAE,KAAK,cAAc,KAAG,WAMnF,CAAA;AAED,eAAO,MAAM,kBAAkB,GAAI,UAAU,mBAAmB,EAAE,MAAM,WAAW,EAAE,UAAS,YAAiB,WAK7G,CAAA"}
@@ -1,7 +1,10 @@
1
1
  import type { AstNodeBase, AstNodeLayout, ConstantDeclaratorNode } from "@/types";
2
+ import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
3
+ import type { VisitOptions } from "@/types/VisitOptions";
2
4
  export interface ConstantDeclarationNode extends AstNodeBase {
3
5
  kind: "CONSTANT_DECLARATION";
4
6
  declarations: ConstantDeclaratorNode[];
5
7
  }
6
8
  export declare const ConstantDeclarationNodeLayout: AstNodeLayout<ConstantDeclarationNode>[];
9
+ export declare const constantDeclarationFromAstNode: (instance: BattleScriptFromAST, node: ConstantDeclarationNode, options?: VisitOptions) => string;
7
10
  //# sourceMappingURL=ConstantDeclarationNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConstantDeclarationNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/ConstantDeclarationNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAGhF,MAAM,WAAW,uBAAwB,SAAQ,WAAW;IAC3D,IAAI,EAAE,sBAAsB,CAAC;IAC7B,YAAY,EAAE,sBAAsB,EAAE,CAAC;CACvC;AAED,eAAO,MAAM,6BAA6B,EAAE,aAAa,CAAC,uBAAuB,CAAC,EAMhF,CAAC"}
1
+ {"version":3,"file":"ConstantDeclarationNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/ConstantDeclarationNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAEhF,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAGvD,MAAM,WAAW,uBAAwB,SAAQ,WAAW;IAC3D,IAAI,EAAE,sBAAsB,CAAC;IAC7B,YAAY,EAAE,sBAAsB,EAAE,CAAC;CACvC;AAED,eAAO,MAAM,6BAA6B,EAAE,aAAa,CAAC,uBAAuB,CAAC,EAMhF,CAAC;AAEH,eAAO,MAAM,8BAA8B,GAAI,UAAU,mBAAmB,EAAE,MAAM,uBAAuB,EAAE,UAAS,YAAiB,WASrI,CAAA"}
@@ -1,6 +1,8 @@
1
1
  import type { AfterExpressionNode, AstNodeBase, AstNodeLayout, EveryExpressionNode, ExpressionUnion, IdentifierNode, TypeUnion } from "@/types";
2
2
  import type { VariableDeclaratorContext } from "@/services/grammar/ts/language/BattleScriptParser";
3
3
  import type { BattleScriptToAST } from "@/services";
4
+ import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
5
+ import type { VisitOptions } from "@/types/VisitOptions";
4
6
  export interface ConstantDeclaratorNode extends AstNodeBase {
5
7
  kind: "CONSTANT_DECLARATOR";
6
8
  id: IdentifierNode;
@@ -9,4 +11,5 @@ export interface ConstantDeclaratorNode extends AstNodeBase {
9
11
  }
10
12
  export declare const ConstantDeclaratorNodeLayout: AstNodeLayout<ConstantDeclaratorNode>[];
11
13
  export declare const constantDeclaratorToAstNode: (instance: BattleScriptToAST, ctx: VariableDeclaratorContext) => ConstantDeclaratorNode;
14
+ export declare const constantDeclaratorFromAstNode: (instance: BattleScriptFromAST, node: ConstantDeclaratorNode, options?: VisitOptions) => string;
12
15
  //# sourceMappingURL=ConstantDeclaratorNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConstantDeclaratorNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/ConstantDeclaratorNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,mBAAmB,EACnB,WAAW,EACX,aAAa,EACb,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,SAAS,EACT,MAAM,SAAS,CAAC;AAEjB,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,mDAAmD,CAAC;AACjG,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAGlD,MAAM,WAAW,sBAAuB,SAAQ,WAAW;IAC1D,IAAI,EAAE,qBAAqB,CAAC;IAC5B,EAAE,EAAE,cAAc,CAAC;IACnB,IAAI,EAAE,eAAe,GAAG,mBAAmB,GAAG,mBAAmB,CAAC;IAClE,IAAI,EAAE,SAAS,CAAC;CAChB;AAED,eAAO,MAAM,4BAA4B,EAAE,aAAa,CAAC,sBAAsB,CAAC,EAY9E,CAAC;AAEH,eAAO,MAAM,2BAA2B,GAAI,UAAU,iBAAiB,EAAE,KAAK,yBAAyB,KAAG,sBAczG,CAAA"}
1
+ {"version":3,"file":"ConstantDeclaratorNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/ConstantDeclaratorNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,mBAAmB,EACnB,WAAW,EACX,aAAa,EACb,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,SAAS,EACT,MAAM,SAAS,CAAC;AAEjB,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,mDAAmD,CAAC;AACjG,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAElD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAEvD,MAAM,WAAW,sBAAuB,SAAQ,WAAW;IAC1D,IAAI,EAAE,qBAAqB,CAAC;IAC5B,EAAE,EAAE,cAAc,CAAC;IACnB,IAAI,EAAE,eAAe,GAAG,mBAAmB,GAAG,mBAAmB,CAAC;IAClE,IAAI,EAAE,SAAS,CAAC;CAChB;AAED,eAAO,MAAM,4BAA4B,EAAE,aAAa,CAAC,sBAAsB,CAAC,EAY9E,CAAC;AAEH,eAAO,MAAM,2BAA2B,GAAI,UAAU,iBAAiB,EAAE,KAAK,yBAAyB,KAAG,sBAczG,CAAA;AAED,eAAO,MAAM,6BAA6B,GAAI,UAAU,mBAAmB,EAAE,MAAM,sBAAsB,EAAE,UAAS,YAAiB,WAOpI,CAAA"}
@@ -1,9 +1,12 @@
1
1
  import type { AstNodeBase, AstNodeLayout } from "@/types";
2
2
  import type { ContinueStatementContext } from "@/services/grammar/ts/language/BattleScriptParser";
3
3
  import type { BattleScriptToAST } from "@/services";
4
+ import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
5
+ import type { VisitOptions } from "@/types/VisitOptions";
4
6
  export interface ContinueStatementNode extends AstNodeBase {
5
7
  kind: "CONTINUE_STATEMENT";
6
8
  }
7
9
  export declare const ContinueStatementNodeLayout: AstNodeLayout<ContinueStatementNode>[];
8
10
  export declare const continueStatementToAstNode: (instance: BattleScriptToAST, ctx: ContinueStatementContext) => ContinueStatementNode;
11
+ export declare const continueStatementFromAstNode: (instance: BattleScriptFromAST, node: ContinueStatementNode, options?: VisitOptions) => string;
9
12
  //# sourceMappingURL=ContinueStatementNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContinueStatementNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/ContinueStatementNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAExD,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,mDAAmD,CAAC;AAChG,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAElD,MAAM,WAAW,qBAAsB,SAAQ,WAAW;IACzD,IAAI,EAAE,oBAAoB,CAAC;CAC3B;AAED,eAAO,MAAM,2BAA2B,EAAE,aAAa,CAAC,qBAAqB,CAAC,EAG5E,CAAC;AAEH,eAAO,MAAM,0BAA0B,GAAI,UAAU,iBAAiB,EAAE,KAAK,wBAAwB,KAAG,qBAKvG,CAAA"}
1
+ {"version":3,"file":"ContinueStatementNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/ContinueStatementNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAExD,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,mDAAmD,CAAC;AAChG,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAGvD,MAAM,WAAW,qBAAsB,SAAQ,WAAW;IACzD,IAAI,EAAE,oBAAoB,CAAC;CAC3B;AAED,eAAO,MAAM,2BAA2B,EAAE,aAAa,CAAC,qBAAqB,CAAC,EAG5E,CAAC;AAEH,eAAO,MAAM,0BAA0B,GAAI,UAAU,iBAAiB,EAAE,KAAK,wBAAwB,KAAG,qBAKvG,CAAA;AAED,eAAO,MAAM,4BAA4B,GAAI,UAAU,mBAAmB,EAAE,MAAM,qBAAqB,EAAE,UAAS,YAAiB,WAKjI,CAAA"}
@@ -1,10 +1,13 @@
1
1
  import type { AstNodeBase, AstNodeLayout } from "@/types";
2
2
  import type { CustomTypeContext } from "@/services/grammar/ts/language/BattleScriptParser";
3
3
  import type { BattleScriptToAST } from "@/services";
4
+ import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
5
+ import type { VisitOptions } from "@/types/VisitOptions";
4
6
  export interface CustomTypeNode extends AstNodeBase {
5
7
  kind: "CUSTOM_TYPE";
6
8
  value: string;
7
9
  }
8
10
  export declare const CustomTypeNodeLayout: AstNodeLayout<CustomTypeNode>[];
9
11
  export declare const customTypeToAstNode: (instance: BattleScriptToAST, ctx: CustomTypeContext) => CustomTypeNode;
12
+ export declare const customTypeFromAstNode: (instance: BattleScriptFromAST, node: CustomTypeNode, options?: VisitOptions) => string;
10
13
  //# sourceMappingURL=CustomTypeNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CustomTypeNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/CustomTypeNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAExD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,mDAAmD,CAAC;AACzF,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAElD,MAAM,WAAW,cAAe,SAAQ,WAAW;IAClD,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,oBAAoB,EAAE,aAAa,CAAC,cAAc,CAAC,EAM9D,CAAC;AAEH,eAAO,MAAM,mBAAmB,GAAI,UAAU,iBAAiB,EAAE,KAAK,iBAAiB,KAAG,cAMzF,CAAA"}
1
+ {"version":3,"file":"CustomTypeNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/CustomTypeNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAExD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,mDAAmD,CAAC;AACzF,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAEvD,MAAM,WAAW,cAAe,SAAQ,WAAW;IAClD,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,oBAAoB,EAAE,aAAa,CAAC,cAAc,CAAC,EAM9D,CAAC;AAEH,eAAO,MAAM,mBAAmB,GAAI,UAAU,iBAAiB,EAAE,KAAK,iBAAiB,KAAG,cAMzF,CAAA;AAED,eAAO,MAAM,qBAAqB,GAAI,UAAU,mBAAmB,EAAE,MAAM,cAAc,EAAE,UAAS,YAAiB,WAEpH,CAAA"}
@@ -1,10 +1,13 @@
1
1
  import type { AstNodeBase, AstNodeLayout } from "@/types";
2
2
  import type { BattleScriptToAST } from "@/services";
3
3
  import type { DataTypeContext } from "@/services/grammar/ts/language/BattleScriptParser";
4
+ import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
5
+ import type { VisitOptions } from "@/types/VisitOptions";
4
6
  export interface DataTypeNode extends AstNodeBase {
5
7
  kind: "DATA_TYPE";
6
8
  value: string;
7
9
  }
8
10
  export declare const DataTypeNodeLayout: AstNodeLayout<DataTypeNode>[];
9
11
  export declare const dataTypeToAstNode: (instance: BattleScriptToAST, ctx: DataTypeContext) => DataTypeNode;
12
+ export declare const dataTypeFromAstNode: (instance: BattleScriptFromAST, node: DataTypeNode, options?: VisitOptions) => string;
10
13
  //# sourceMappingURL=DataTypeNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataTypeNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/DataTypeNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAExD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,mDAAmD,CAAC;AAEvF,MAAM,WAAW,YAAa,SAAQ,WAAW;IAChD,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,kBAAkB,EAAE,aAAa,CAAC,YAAY,CAAC,EAM1D,CAAC;AAEH,eAAO,MAAM,iBAAiB,GAAI,UAAU,iBAAiB,EAAE,KAAK,eAAe,KAAG,YAMrF,CAAA"}
1
+ {"version":3,"file":"DataTypeNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/DataTypeNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAExD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,mDAAmD,CAAC;AACvF,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAEvD,MAAM,WAAW,YAAa,SAAQ,WAAW;IAChD,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,kBAAkB,EAAE,aAAa,CAAC,YAAY,CAAC,EAM1D,CAAC;AAEH,eAAO,MAAM,iBAAiB,GAAI,UAAU,iBAAiB,EAAE,KAAK,eAAe,KAAG,YAMrF,CAAA;AAED,eAAO,MAAM,mBAAmB,GAAI,UAAU,mBAAmB,EAAE,MAAM,YAAY,EAAE,UAAS,YAAiB,WAE/G,CAAA"}
@@ -0,0 +1,14 @@
1
+ import type { AstNodeBase, AstNodeLayout, LiteralStringNode, ProtocolTypeNode } from "@/types";
2
+ import type { BattleScriptToAST } from "@/services";
3
+ import type { DefineStatementContext } from "@/services/grammar/ts/language/BattleScriptParser";
4
+ import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
5
+ import type { VisitOptions } from "@/types/VisitOptions";
6
+ export interface DefineStatementNode extends AstNodeBase {
7
+ kind: "DEFINE_STATEMENT";
8
+ type: ProtocolTypeNode;
9
+ id: LiteralStringNode;
10
+ }
11
+ export declare const DefineStatementNodeLayout: AstNodeLayout<DefineStatementNode>[];
12
+ export declare const defineStatementToAstNode: (instance: BattleScriptToAST, ctx: DefineStatementContext) => DefineStatementNode;
13
+ export declare const defineStatementFromAstNode: (instance: BattleScriptFromAST, node: DefineStatementNode, options?: VisitOptions) => string;
14
+ //# sourceMappingURL=DefineStatementNode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DefineStatementNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/DefineStatementNode.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAC,MAAM,SAAS,CAAC;AAC7F,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,sBAAsB,EAAC,MAAM,mDAAmD,CAAC;AAC9F,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAEvD,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACvD,IAAI,EAAE,kBAAkB,CAAC;IACzB,IAAI,EAAE,gBAAgB,CAAC;IACvB,EAAE,EAAE,iBAAiB,CAAC;CACtB;AAED,eAAO,MAAM,yBAAyB,EAAE,aAAa,CAAC,mBAAmB,CAAC,EASxE,CAAC;AAEH,eAAO,MAAM,wBAAwB,GAAI,UAAU,iBAAiB,EAAE,KAAK,sBAAsB,KAAG,mBAOnG,CAAA;AAGD,eAAO,MAAM,0BAA0B,GAAI,UAAU,mBAAmB,EAAE,MAAM,mBAAmB,EAAE,UAAS,YAAiB,WAU9H,CAAA"}
@@ -0,0 +1,14 @@
1
+ import type { AstNode, AstNodeBase, AstNodeLayout, IdentifierNode } from "@/types";
2
+ import type { BattleScriptToAST } from "@/services";
3
+ import type { EnumDeclarationContext } from "@/services/grammar/ts/language/BattleScriptParser";
4
+ import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
5
+ import type { VisitOptions } from "@/types/VisitOptions";
6
+ export interface EnumDeclarationNode extends AstNodeBase {
7
+ kind: "ENUM_DECLARATION";
8
+ id: IdentifierNode;
9
+ body: AstNode[];
10
+ }
11
+ export declare const EnumDeclarationNodeLayout: AstNodeLayout<EnumDeclarationNode>[];
12
+ export declare const enumDeclarationToAstNode: (instance: BattleScriptToAST, ctx: EnumDeclarationContext) => EnumDeclarationNode;
13
+ export declare const enumDeclarationFromAstNode: (instance: BattleScriptFromAST, node: EnumDeclarationNode, options?: VisitOptions) => string;
14
+ //# sourceMappingURL=EnumDeclarationNode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnumDeclarationNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/EnumDeclarationNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,EAAC,MAAM,SAAS,CAAC;AAEjF,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,sBAAsB,EAAC,MAAM,mDAAmD,CAAC;AAC9F,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAGvD,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACvD,IAAI,EAAE,kBAAkB,CAAC;IACzB,EAAE,EAAE,cAAc,CAAC;IACnB,IAAI,EAAE,OAAO,EAAE,CAAC;CAChB;AAED,eAAO,MAAM,yBAAyB,EAAE,aAAa,CAAC,mBAAmB,CAAC,EASxE,CAAC;AAEH,eAAO,MAAM,wBAAwB,GAAI,UAAU,iBAAiB,EAAE,KAAK,sBAAsB,KAAG,mBAOnG,CAAA;AAGD,eAAO,MAAM,0BAA0B,GAAI,UAAU,mBAAmB,EAAE,MAAM,mBAAmB,EAAE,UAAS,YAAiB,WAc7H,CAAA"}
@@ -1,6 +1,8 @@
1
1
  import type { AstNodeBase, AstNodeLayout, BlockStatementNode, ExpressionUnion } from "@/types";
2
2
  import type { BattleScriptToAST } from "@/services";
3
3
  import type { EvaluateCaseContext } from "@/services/grammar/ts/language/BattleScriptParser";
4
+ import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
5
+ import type { VisitOptions } from "@/types/VisitOptions";
4
6
  export interface EvaluateCaseNode extends AstNodeBase {
5
7
  kind: "EVALUATE_CASE";
6
8
  tests: ExpressionUnion[];
@@ -8,4 +10,5 @@ export interface EvaluateCaseNode extends AstNodeBase {
8
10
  }
9
11
  export declare const EvaluateCaseNodeLayout: AstNodeLayout<EvaluateCaseNode>[];
10
12
  export declare const evaluateCaseToAstNode: (instance: BattleScriptToAST, ctx: EvaluateCaseContext) => EvaluateCaseNode;
13
+ export declare const evaluateCaseFromAstNode: (instance: BattleScriptFromAST, node: EvaluateCaseNode, options?: VisitOptions) => string;
11
14
  //# sourceMappingURL=EvaluateCaseNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EvaluateCaseNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/EvaluateCaseNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAE7F,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,mDAAmD,CAAC;AAE3F,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACpD,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,IAAI,EAAE,kBAAkB,CAAC;CACzB;AAED,eAAO,MAAM,sBAAsB,EAAE,aAAa,CAAC,gBAAgB,CAAC,EASlE,CAAC;AAEH,eAAO,MAAM,qBAAqB,GAAI,UAAU,iBAAiB,EAAE,KAAK,mBAAmB,KAAG,gBAU7F,CAAA"}
1
+ {"version":3,"file":"EvaluateCaseNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/EvaluateCaseNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAE7F,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,mDAAmD,CAAC;AAC3F,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAGvD,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACpD,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,IAAI,EAAE,kBAAkB,CAAC;CACzB;AAED,eAAO,MAAM,sBAAsB,EAAE,aAAa,CAAC,gBAAgB,CAAC,EASlE,CAAC;AAEH,eAAO,MAAM,qBAAqB,GAAI,UAAU,iBAAiB,EAAE,KAAK,mBAAmB,KAAG,gBAU7F,CAAA;AAED,eAAO,MAAM,uBAAuB,GAAI,UAAU,mBAAmB,EAAE,MAAM,gBAAgB,EAAE,UAAS,YAAiB,WAUvH,CAAA"}
@@ -1,10 +1,13 @@
1
1
  import type { AstNodeBase, AstNodeLayout, BlockStatementNode } from "@/types";
2
2
  import type { EvaluateFallbackContext } from "@/services/grammar/ts/language/BattleScriptParser";
3
3
  import type { BattleScriptToAST } from "@/services";
4
+ import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
5
+ import type { VisitOptions } from "@/types/VisitOptions";
4
6
  export interface EvaluateFallbackNode extends AstNodeBase {
5
7
  kind: "EVALUATE_FALLBACK";
6
8
  body: BlockStatementNode;
7
9
  }
8
10
  export declare const EvaluateFallbackNodeLayout: AstNodeLayout<EvaluateFallbackNode>[];
9
11
  export declare const evaluateFallbackToAstNode: (instance: BattleScriptToAST, ctx: EvaluateFallbackContext) => EvaluateFallbackNode;
12
+ export declare const evaluateFallbackFromAstNode: (instance: BattleScriptFromAST, node: EvaluateFallbackNode, options?: VisitOptions) => string;
10
13
  //# sourceMappingURL=EvaluateFallbackNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EvaluateFallbackNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/EvaluateFallbackNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAE5E,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,mDAAmD,CAAC;AAC/F,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAElD,MAAM,WAAW,oBAAqB,SAAQ,WAAW;IACxD,IAAI,EAAE,mBAAmB,CAAC;IAC1B,IAAI,EAAE,kBAAkB,CAAC;CACzB;AAED,eAAO,MAAM,0BAA0B,EAAE,aAAa,CAAC,oBAAoB,CAAC,EAM1E,CAAC;AAEH,eAAO,MAAM,yBAAyB,GAAI,UAAU,iBAAiB,EAAE,KAAK,uBAAuB,KAAG,oBAMrG,CAAA"}
1
+ {"version":3,"file":"EvaluateFallbackNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/EvaluateFallbackNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAE5E,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,mDAAmD,CAAC;AAC/F,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAGvD,MAAM,WAAW,oBAAqB,SAAQ,WAAW;IACxD,IAAI,EAAE,mBAAmB,CAAC;IAC1B,IAAI,EAAE,kBAAkB,CAAC;CACzB;AAED,eAAO,MAAM,0BAA0B,EAAE,aAAa,CAAC,oBAAoB,CAAC,EAM1E,CAAC;AAEH,eAAO,MAAM,yBAAyB,GAAI,UAAU,iBAAiB,EAAE,KAAK,uBAAuB,KAAG,oBAMrG,CAAA;AAED,eAAO,MAAM,2BAA2B,GAAI,UAAU,mBAAmB,EAAE,MAAM,oBAAoB,EAAE,UAAS,YAAiB,WAS/H,CAAA"}
@@ -1,6 +1,8 @@
1
1
  import type { AstNodeBase, AstNodeLayout, EvaluateBranchUnion, ExpressionUnion } from "@/types";
2
2
  import type { EvaluateStatementContext } from "@/services/grammar/ts/language/BattleScriptParser";
3
3
  import type { BattleScriptToAST } from "@/services";
4
+ import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
5
+ import type { VisitOptions } from "@/types/VisitOptions";
4
6
  export interface EvaluateStatementNode extends AstNodeBase {
5
7
  kind: "EVALUATE_STATEMENT";
6
8
  discriminants: ExpressionUnion[] | null;
@@ -8,4 +10,5 @@ export interface EvaluateStatementNode extends AstNodeBase {
8
10
  }
9
11
  export declare const EvaluateStatementNodeLayout: AstNodeLayout<EvaluateStatementNode>[];
10
12
  export declare const evaluateStatementToAstNode: (instance: BattleScriptToAST, ctx: EvaluateStatementContext) => EvaluateStatementNode;
13
+ export declare const evaluateStatementFromAstNode: (instance: BattleScriptFromAST, node: EvaluateStatementNode, options?: VisitOptions) => string;
11
14
  //# sourceMappingURL=EvaluateStatementNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EvaluateStatementNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/EvaluateStatementNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,mBAAmB,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAE9F,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,mDAAmD,CAAC;AAChG,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAElD,MAAM,WAAW,qBAAsB,SAAQ,WAAW;IACzD,IAAI,EAAE,oBAAoB,CAAC;IAC3B,aAAa,EAAE,eAAe,EAAE,GAAG,IAAI,CAAC;IACxC,KAAK,EAAE,mBAAmB,EAAE,CAAC;CAC7B;AAED,eAAO,MAAM,2BAA2B,EAAE,aAAa,CAAC,qBAAqB,CAAC,EAS5E,CAAC;AAEH,eAAO,MAAM,0BAA0B,GAAI,UAAU,iBAAiB,EAAE,KAAK,wBAAwB,KAAG,qBASvG,CAAA"}
1
+ {"version":3,"file":"EvaluateStatementNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/EvaluateStatementNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,mBAAmB,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAE9F,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,mDAAmD,CAAC;AAChG,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAGvD,MAAM,WAAW,qBAAsB,SAAQ,WAAW;IACzD,IAAI,EAAE,oBAAoB,CAAC;IAC3B,aAAa,EAAE,eAAe,EAAE,GAAG,IAAI,CAAC;IACxC,KAAK,EAAE,mBAAmB,EAAE,CAAC;CAC7B;AAED,eAAO,MAAM,2BAA2B,EAAE,aAAa,CAAC,qBAAqB,CAAC,EAS5E,CAAC;AAEH,eAAO,MAAM,0BAA0B,GAAI,UAAU,iBAAiB,EAAE,KAAK,wBAAwB,KAAG,qBASvG,CAAA;AAED,eAAO,MAAM,4BAA4B,GAAI,UAAU,mBAAmB,EAAE,MAAM,qBAAqB,EAAE,UAAS,YAAiB,WAejI,CAAA"}
@@ -1,6 +1,8 @@
1
1
  import type { AstNodeBase, AstNodeLayout, BlockStatementNode, IdentifierNode, LiteralStringNode, LiteralUnion, MemberExpressionNode } from "@/types";
2
2
  import type { BattleScriptToAST } from "@/services";
3
3
  import type { EventDeclarationContext } from "@/services/grammar/ts/language/BattleScriptParser";
4
+ import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
5
+ import type { VisitOptions } from "@/types/VisitOptions";
4
6
  export interface EventDeclarationNode extends AstNodeBase {
5
7
  kind: "EVENT_DECLARATION";
6
8
  event: IdentifierNode | MemberExpressionNode | LiteralStringNode;
@@ -9,4 +11,5 @@ export interface EventDeclarationNode extends AstNodeBase {
9
11
  }
10
12
  export declare const EventDeclarationNodeLayout: AstNodeLayout<EventDeclarationNode>[];
11
13
  export declare const eventDeclarationToAstNode: (instance: BattleScriptToAST, ctx: EventDeclarationContext) => EventDeclarationNode;
14
+ export declare const eventDeclarationFromAstNode: (instance: BattleScriptFromAST, node: EventDeclarationNode, options?: VisitOptions) => string;
12
15
  //# sourceMappingURL=EventDeclarationNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EventDeclarationNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/EventDeclarationNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,oBAAoB,EACpB,MAAM,SAAS,CAAC;AAEjB,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,mDAAmD,CAAC;AAE/F,MAAM,WAAW,oBAAqB,SAAQ,WAAW;IACxD,IAAI,EAAE,mBAAmB,CAAC;IAC1B,KAAK,EAAE,cAAc,GAAG,oBAAoB,GAAG,iBAAiB,CAAC;IACjE,SAAS,EAAE,CAAC,cAAc,GAAG,oBAAoB,GAAG,YAAY,CAAC,EAAE,CAAC;IACpE,IAAI,EAAE,kBAAkB,CAAC;CACzB;AAED,eAAO,MAAM,0BAA0B,EAAE,aAAa,CAAC,oBAAoB,CAAC,EAY1E,CAAC;AAEH,eAAO,MAAM,yBAAyB,GAAI,UAAU,iBAAiB,EAAE,KAAK,uBAAuB,KAAG,oBAUrG,CAAA"}
1
+ {"version":3,"file":"EventDeclarationNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/EventDeclarationNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,oBAAoB,EACpB,MAAM,SAAS,CAAC;AAEjB,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,mDAAmD,CAAC;AAC/F,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAGvD,MAAM,WAAW,oBAAqB,SAAQ,WAAW;IACxD,IAAI,EAAE,mBAAmB,CAAC;IAC1B,KAAK,EAAE,cAAc,GAAG,oBAAoB,GAAG,iBAAiB,CAAC;IACjE,SAAS,EAAE,CAAC,cAAc,GAAG,oBAAoB,GAAG,YAAY,CAAC,EAAE,CAAC;IACpE,IAAI,EAAE,kBAAkB,CAAC;CACzB;AAED,eAAO,MAAM,0BAA0B,EAAE,aAAa,CAAC,oBAAoB,CAAC,EAY1E,CAAC;AAEH,eAAO,MAAM,yBAAyB,GAAI,UAAU,iBAAiB,EAAE,KAAK,uBAAuB,KAAG,oBAUrG,CAAA;AAED,eAAO,MAAM,2BAA2B,GAAI,UAAU,mBAAmB,EAAE,MAAM,oBAAoB,EAAE,UAAS,YAAiB,WAahI,CAAA"}
@@ -1,6 +1,8 @@
1
1
  import type { AstNodeBase, AstNodeLayout, BlockStatementNode, ExpressionUnion } from "@/types";
2
2
  import type { BattleScriptToAST } from "@/services";
3
3
  import type { EveryDeclarationContext } from "@/services/grammar/ts/language/BattleScriptParser";
4
+ import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
5
+ import type { VisitOptions } from "@/types/VisitOptions";
4
6
  export interface EveryDeclarationNode extends AstNodeBase {
5
7
  kind: "EVERY_DECLARATION";
6
8
  interval: ExpressionUnion;
@@ -9,4 +11,5 @@ export interface EveryDeclarationNode extends AstNodeBase {
9
11
  }
10
12
  export declare const EveryDeclarationNodeLayout: AstNodeLayout<EveryDeclarationNode>[];
11
13
  export declare const everyDeclarationToAstNode: (instance: BattleScriptToAST, ctx: EveryDeclarationContext) => EveryDeclarationNode;
14
+ export declare const everyDeclarationFromAstNode: (instance: BattleScriptFromAST, node: EveryDeclarationNode, options?: VisitOptions) => string;
12
15
  //# sourceMappingURL=EveryDeclarationNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EveryDeclarationNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/EveryDeclarationNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAE7F,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,mDAAmD,CAAC;AAE/F,MAAM,WAAW,oBAAqB,SAAQ,WAAW;IACxD,IAAI,EAAE,mBAAmB,CAAC;IAC1B,QAAQ,EAAE,eAAe,CAAC;IAC1B,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,IAAI,EAAE,kBAAkB,CAAC;CACzB;AAED,eAAO,MAAM,0BAA0B,EAAE,aAAa,CAAC,oBAAoB,CAAC,EAa1E,CAAC;AAEH,eAAO,MAAM,yBAAyB,GAAI,UAAU,iBAAiB,EAAE,KAAK,uBAAuB,KAAG,oBAkBrG,CAAA"}
1
+ {"version":3,"file":"EveryDeclarationNode.d.ts","sourceRoot":"","sources":["../../../../types/ast/nodes/EveryDeclarationNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAE7F,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,mDAAmD,CAAC;AAC/F,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,wCAAwC,CAAC;AAChF,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAGvD,MAAM,WAAW,oBAAqB,SAAQ,WAAW;IACxD,IAAI,EAAE,mBAAmB,CAAC;IAC1B,QAAQ,EAAE,eAAe,CAAC;IAC1B,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,IAAI,EAAE,kBAAkB,CAAC;CACzB;AAED,eAAO,MAAM,0BAA0B,EAAE,aAAa,CAAC,oBAAoB,CAAC,EAa1E,CAAC;AAEH,eAAO,MAAM,yBAAyB,GAAI,UAAU,iBAAiB,EAAE,KAAK,uBAAuB,KAAG,oBAkBrG,CAAA;AAED,eAAO,MAAM,2BAA2B,GAAI,UAAU,mBAAmB,EAAE,MAAM,oBAAoB,EAAE,UAAS,YAAiB,WAW/H,CAAA"}
@@ -1,6 +1,8 @@
1
1
  import type { AstNodeBase, AstNodeLayout, BlockStatementNode, ExpressionUnion } from "@/types";
2
2
  import type { BattleScriptToAST } from "@/services";
3
3
  import type { EveryExpressionContext } from "@/services/grammar/ts/language/BattleScriptParser";
4
+ import type { BattleScriptFromAST } from "@/services/fullAst/BattleScriptFromAST";
5
+ import type { VisitOptions } from "@/types/VisitOptions";
4
6
  export interface EveryExpressionNode extends AstNodeBase {
5
7
  kind: "EVERY_EXPRESSION";
6
8
  interval: ExpressionUnion;
@@ -9,4 +11,5 @@ export interface EveryExpressionNode extends AstNodeBase {
9
11
  }
10
12
  export declare const EveryExpressionNodeLayout: AstNodeLayout<EveryExpressionNode>[];
11
13
  export declare const everyExpressionToAstNode: (instance: BattleScriptToAST, ctx: EveryExpressionContext) => EveryExpressionNode;
14
+ export declare const everyExpressionFromAstNode: (instance: BattleScriptFromAST, node: EveryExpressionNode, options?: VisitOptions) => string;
12
15
  //# sourceMappingURL=EveryExpressionNode.d.ts.map