Comparing version 0.0.37 to 0.0.38
import { Node } from '../node'; | ||
import { AssignmentElement } from './assignment-element'; | ||
import { AssignmentRestElement } from './assignment-rest-element'; | ||
import { LeftHandSideExpression } from '.'; | ||
import { Expression } from '.'; | ||
import { Elison } from './elison'; | ||
export interface ArrayAssignmentPattern extends Node { | ||
readonly elements: (Elison | AssignmentRestElement | AssignmentElement | LeftHandSideExpression)[]; | ||
readonly elements: (Elison | AssignmentRestElement | AssignmentElement | Expression)[]; | ||
} | ||
export declare function createArrayAssignmentPattern(elements: (Elison | AssignmentRestElement | AssignmentElement | LeftHandSideExpression)[]): ArrayAssignmentPattern; | ||
export declare function createArrayAssignmentPattern(elements: (Elison | AssignmentRestElement | AssignmentElement | Expression)[]): ArrayAssignmentPattern; | ||
//# sourceMappingURL=array-assignment-pattern.d.ts.map |
import { Expression } from './'; | ||
import { ArrayLiteral } from './array-literal'; | ||
import { ObjectLiteral } from './object-literal'; | ||
import { ArrayAssignmentPattern } from './array-assignment-pattern'; | ||
import { ObjectAssignmentPattern } from './object-assignment-pattern'; | ||
import { Node } from '../node'; | ||
@@ -8,7 +8,7 @@ export declare type AssignmentOperator = '=' | '+=' | '-=' | '*=' | '/=' | '%=' | '<<=' | '>>=' | '>>>=' | '|=' | '^=' | '&=' | '**='; | ||
export interface AssignmentExpression extends Node { | ||
readonly left: ObjectLiteral | ArrayLiteral | Expression; | ||
readonly left: ObjectAssignmentPattern | ArrayAssignmentPattern | Expression; | ||
readonly operator: AssignmentOperator | LogicalAssignmentOperator; | ||
readonly right: Expression; | ||
} | ||
export declare function createAssignmentExpression(left: Expression, operator: AssignmentOperator | LogicalAssignmentOperator, right: Expression): AssignmentExpression; | ||
export declare function createAssignmentExpression(left: ObjectAssignmentPattern | ArrayAssignmentPattern | Expression, operator: AssignmentOperator | LogicalAssignmentOperator, right: Expression): AssignmentExpression; | ||
//# sourceMappingURL=assignment-expr.d.ts.map |
import { Node } from '../node'; | ||
import { Expression } from '.'; | ||
import { AssignmentElement } from './assignment-element'; | ||
import { ArrayAssignmentPattern } from './array-assignment-pattern'; | ||
import { ObjectAssignmentPattern } from './object-assignment-pattern'; | ||
export interface AssignmentRestProperty extends Node { | ||
readonly argument: Expression; | ||
readonly argument: ArrayAssignmentPattern | ObjectAssignmentPattern | AssignmentElement | Expression; | ||
} | ||
export declare function createAssignmentRestProperty(argument: Expression): AssignmentRestProperty; | ||
export declare function createAssignmentRestProperty(argument: ArrayAssignmentPattern | ObjectAssignmentPattern | AssignmentElement | Expression): AssignmentRestProperty; | ||
//# sourceMappingURL=assignment-rest-property.d.ts.map |
@@ -7,4 +7,5 @@ import { Node } from './node'; | ||
readonly leafs: ImportExport[]; | ||
readonly webCompat: boolean; | ||
} | ||
export declare function createModuleNode(directives: Directive[], leafs: ImportExport[]): Module; | ||
export declare function createModuleNode(directives: Directive[], leafs: ImportExport[], webCompat: boolean): Module; | ||
//# sourceMappingURL=module-node.d.ts.map |
@@ -18,2 +18,3 @@ import { SyntaxKind, Node } from './node'; | ||
readonly children: any[] | null; | ||
readonly webCompat: boolean; | ||
readonly start: number; | ||
@@ -24,3 +25,3 @@ readonly end: number; | ||
} | ||
export declare function createRootNode(directives: Directive[], leafs: ImportExport[], text: string, fileName: string, diagnostics: Diagnostic[]): RootNode; | ||
export declare function createRootNode(directives: Directive[], leafs: ImportExport[], webCompat: boolean, text: string, fileName: string, diagnostics: Diagnostic[]): RootNode; | ||
//# sourceMappingURL=root-node.d.ts.map |
@@ -7,4 +7,5 @@ import { Node } from './node'; | ||
readonly leafs: Statement[]; | ||
readonly webCompat: boolean; | ||
} | ||
export declare function createScriptNode(directives: Directive[], leafs: Statement[]): Script; | ||
export declare function createScriptNode(directives: Directive[], leafs: Statement[], webCompat: boolean): Script; | ||
//# sourceMappingURL=script-node.d.ts.map |
@@ -9,5 +9,6 @@ import { Node } from '../node'; | ||
readonly incrementor: Expression | null; | ||
readonly variableDeclarationList: boolean; | ||
readonly statement: Statement; | ||
} | ||
export declare function createForStatement(initializer: Expression | null, condition: Expression | null, incrementor: Expression | null, statement: Statement): ForStatement; | ||
export declare function createForStatement(initializer: Expression | null, condition: Expression | null, incrementor: Expression | null, variableDeclarationList: boolean, statement: Statement): ForStatement; | ||
//# sourceMappingURL=for-stmt.d.ts.map |
import { Node } from '../node'; | ||
import { LexicalDeclaration } from '../declarations/lexical-declaration'; | ||
import { VariableDeclaration } from '../declarations/variable-declaration'; | ||
export interface ForBinding extends Node { | ||
readonly declarations: (VariableDeclaration | LexicalDeclaration)[]; | ||
readonly declarations: VariableDeclaration[]; | ||
} | ||
export declare function createForBinding(declarations: (VariableDeclaration | LexicalDeclaration)[]): ForBinding; | ||
export declare function createForBinding(declarations: VariableDeclaration[]): ForBinding; | ||
//# sourceMappingURL=forBinding.d.ts.map |
@@ -216,2 +216,3 @@ import { ImportCall } from './ast/expressions/import-call'; | ||
export declare function parseImportMeta(state: ParserState, context: Context, start: number): ExpressionStatement; | ||
export declare function parseModuleExportName(state: ParserState, context: Context): StringLiteral; | ||
export declare function parseFromClause(state: ParserState, context: Context): StringLiteral; | ||
@@ -218,0 +219,0 @@ export declare function parseExportDeclaration(state: ParserState, context: Context, scope: ScopeState): ExportDeclaration | ExportDefault; |
{ | ||
"name": "escaya", | ||
"version": "0.0.37", | ||
"version": "0.0.38", | ||
"description": "An blazing fast 100% spec compliant, incremental javascript parser written in Typescript", | ||
@@ -5,0 +5,0 @@ "main": "dist/escaya.umd.min.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
462228
3650