mevento 1.4.0 → 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 {
@@ -203,7 +211,7 @@ declare abstract class ANodeVisitor {
203
211
  export declare abstract class NodeVisitor extends ANodeVisitor {
204
212
  constructor();
205
213
  visit(node: AST): any;
206
- assignProperty(owner: any, property: any, value: any): any;
214
+ protected assignProperty(owner: any, property: any, value: any): any;
207
215
  protected abstract visitRootAST(node: RootAST): any;
208
216
  protected abstract visitBlockStatementAST(node: BlockStatementAST): any;
209
217
  protected abstract visitIdentifierAST(node: IdentifierAST): any;
@@ -223,6 +231,7 @@ export declare abstract class NodeVisitor extends ANodeVisitor {
223
231
  protected abstract visitWhileLoopStatement(node: WhileLoopStatement): any;
224
232
  protected abstract visitForLoopStatement(node: ForLoopStatement): any;
225
233
  protected abstract visitForOfStatement(node: ForOfStatement): any;
234
+ protected abstract visitContinueAST(node: ContinueAST): any;
226
235
  }
227
236
  export declare type MEventoFBinding = (args: any[], vm: MEvento) => any;
228
237
  export declare class MEvento extends NodeVisitor {
@@ -256,6 +265,7 @@ export declare class MEvento extends NodeVisitor {
256
265
  protected visitWhileLoopStatement(node: WhileLoopStatement): any;
257
266
  protected visitForLoopStatement(node: ForLoopStatement): any;
258
267
  protected visitForOfStatement(node: ForOfStatement): any;
268
+ protected visitContinueAST(node: ContinueAST): ContinueBranch;
259
269
  protected _declareForIdentifier(node: AST, value: any): any;
260
270
  resolveArguments(args: AST[]): any;
261
271
  registerFunction(id: string, fn: MEventoFBinding): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mevento",
3
- "version": "1.4.0",
3
+ "version": "1.8.0",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.3"
6
6
  },