mevento 1.2.2 → 1.8.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.
package/lib/mevento.d.ts CHANGED
@@ -43,6 +43,7 @@ export declare class TokenType {
43
43
  static in: number;
44
44
  static TILL: number;
45
45
  static BREAK: number;
46
+ static CONTINUE: number;
46
47
  }
47
48
  export declare class Token {
48
49
  type: number;
@@ -190,7 +191,14 @@ export declare class TupleExpression extends AST {
190
191
  export declare class BreakAST extends AST {
191
192
  constructor(line?: number, col?: number);
192
193
  }
193
- export declare class BreakBranch {
194
+ export declare class ContinueAST extends AST {
195
+ constructor(line?: number, col?: number);
196
+ }
197
+ export declare class LoopControl {
198
+ }
199
+ export declare class BreakBranch extends LoopControl {
200
+ }
201
+ export declare class ContinueBranch extends LoopControl {
194
202
  }
195
203
  declare type Func = (node: any) => any;
196
204
  declare abstract class ANodeVisitor {
@@ -201,7 +209,29 @@ declare abstract class ANodeVisitor {
201
209
  abstract visit(node: AST): any;
202
210
  }
203
211
  export declare abstract class NodeVisitor extends ANodeVisitor {
212
+ constructor();
204
213
  visit(node: AST): any;
214
+ protected assignProperty(owner: any, property: any, value: any): any;
215
+ protected abstract visitRootAST(node: RootAST): any;
216
+ protected abstract visitBlockStatementAST(node: BlockStatementAST): any;
217
+ protected abstract visitIdentifierAST(node: IdentifierAST): any;
218
+ protected abstract visitLiteralAST(node: AST): any;
219
+ protected abstract visitAssignmentExpressionAST(node: AssignmentExpressionAST): any;
220
+ protected abstract visitExpressionStatementAST(node: ExpressionStatementAST): any;
221
+ protected abstract visitCallExpressionAST(node: CallExpressionAST): any;
222
+ protected abstract visitBinaryExpressionAST(node: BinaryExpressionAST): any;
223
+ protected abstract visitUnaryExpressionAST(node: UnaryExpressionAST): any;
224
+ protected abstract visitIfStatementAST(node: IfStatementAST): any;
225
+ protected abstract visitLogicalExpressionAST(node: LogicalExpressionAST): any;
226
+ protected abstract visitIndexAccessorAST(node: IndexAccessorAST): any;
227
+ protected abstract visitObjectProperty(node: AST): any;
228
+ protected abstract visitObjectExpression(ast: AST): any;
229
+ protected abstract visitArrayExpression(ast: AST): any;
230
+ protected abstract visitBreakAST(node: BreakAST): any;
231
+ protected abstract visitWhileLoopStatement(node: WhileLoopStatement): any;
232
+ protected abstract visitForLoopStatement(node: ForLoopStatement): any;
233
+ protected abstract visitForOfStatement(node: ForOfStatement): any;
234
+ protected abstract visitContinueAST(node: ContinueAST): any;
205
235
  }
206
236
  export declare type MEventoFBinding = (args: any[], vm: MEvento) => any;
207
237
  export declare class MEvento extends NodeVisitor {
@@ -221,7 +251,6 @@ export declare class MEvento extends NodeVisitor {
221
251
  protected visitIdentifierAST(node: IdentifierAST): any;
222
252
  protected visitLiteralAST(node: AST): any;
223
253
  protected visitAssignmentExpressionAST(node: AssignmentExpressionAST): any;
224
- assignProperty(owner: any, property: any, value: any): any;
225
254
  protected visitExpressionStatementAST(node: ExpressionStatementAST): any;
226
255
  protected visitCallExpressionAST(node: CallExpressionAST): any;
227
256
  protected visitBinaryExpressionAST(node: BinaryExpressionAST): any;
@@ -236,6 +265,7 @@ export declare class MEvento extends NodeVisitor {
236
265
  protected visitWhileLoopStatement(node: WhileLoopStatement): any;
237
266
  protected visitForLoopStatement(node: ForLoopStatement): any;
238
267
  protected visitForOfStatement(node: ForOfStatement): any;
268
+ protected visitContinueAST(node: ContinueAST): ContinueBranch;
239
269
  protected _declareForIdentifier(node: AST, value: any): any;
240
270
  resolveArguments(args: AST[]): any;
241
271
  registerFunction(id: string, fn: MEventoFBinding): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mevento",
3
- "version": "1.2.2",
3
+ "version": "1.8.0",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.3"
6
6
  },