Comparing version 0.0.40 to 0.0.41
import { Node } from '../node'; | ||
export interface NumericLiteral extends Node { | ||
readonly value: number; | ||
readonly floatingPoint: boolean; | ||
} | ||
export declare function createNumericLiteral(value: number): NumericLiteral; | ||
export declare function createNumericLiteral(value: number, floatingPoint: boolean): NumericLiteral; | ||
//# sourceMappingURL=numeric-literal.d.ts.map |
@@ -6,4 +6,5 @@ import { Expression } from '.'; | ||
readonly super: Expression | IdentifierName; | ||
readonly computed: boolean; | ||
} | ||
export declare function createSuperProperty(_super: Expression | IdentifierName): SuperProperty; | ||
export declare function createSuperProperty(_super: Expression | IdentifierName, computed: boolean): SuperProperty; | ||
//# sourceMappingURL=super-property.d.ts.map |
export interface Node { | ||
type?: string; | ||
kind?: SyntaxKind | NodeFlags; | ||
meta?: NodeMeta; | ||
flags?: NodeFlags; | ||
asi?: boolean; | ||
newline?: boolean; | ||
start?: number; | ||
end?: number; | ||
} | ||
export interface NodeMeta { | ||
asi?: boolean; | ||
newlineBeforNextToken?: boolean; | ||
} | ||
export declare const enum NodeFlags { | ||
@@ -11,0 +14,0 @@ None = 0, |
@@ -44,4 +44,14 @@ import { Token } from './ast/token'; | ||
HasStrictReserved = 32, | ||
SimpleParameterList = 64 | ||
SimpleParameterList = 64, | ||
HasFloatingNumber = 128 | ||
} | ||
export declare const enum ConcreteSyntax { | ||
Empty = 0, | ||
IsFloat = 2, | ||
IsHex = 4, | ||
IsOctal = 8, | ||
IsBinary = 16, | ||
ContainsSeparator = 32, | ||
Scientific = 64 | ||
} | ||
export declare const enum ArrowKind { | ||
@@ -95,2 +105,3 @@ NORMAL = 0, | ||
flags: Flags; | ||
cst: ConcreteSyntax; | ||
index: number; | ||
@@ -97,0 +108,0 @@ line: number; |
@@ -6,3 +6,2 @@ import { Context } from './common'; | ||
import { TextChangeRange } from './types'; | ||
import { NodeCursor } from './incremental/node-cursor'; | ||
import { Dictionary } from './dictionary/dictionary-map'; | ||
@@ -19,7 +18,7 @@ export interface Options { | ||
export declare function parseRoot(source: string, context: Context, options?: Options): Script | Module; | ||
export declare function parseSourceFile(text: string, filename: string, context: Context, nodeCursor?: NodeCursor): RootNode; | ||
export declare function parseSourceFile(text: string, filename: string, context: Context, nodeCursor?: any): RootNode; | ||
export declare function parseInNormalMode(source: string, context: Context, options?: Options): Script | Module; | ||
export declare function parseInCustomMode(source: string, context: Context, options?: Options, dictionary?: Dictionary): Script | Module; | ||
export declare function parseInRecoveryMode(text: string, filename: string, context: Context, options?: Options): RootNode; | ||
export declare function parseInIncrementalMode(text: string, filename: string, root: RootNode, textChangeRange: TextChangeRange): RootNode; | ||
export declare function parseInIncrementalMode(text: string, filename: string, _root: RootNode, _textChangeRange: TextChangeRange): RootNode; | ||
//# sourceMappingURL=core.d.ts.map |
import { Context, ParserState } from '../common'; | ||
import { RootNode } from '../ast/root-node'; | ||
import { TextChangeRange, TextSpan } from '../types'; | ||
import { IdentifierReference } from '../ast/expressions/identifierreference'; | ||
@@ -8,13 +6,2 @@ import { DiagnosticCode } from '../diagnostic/diagnostic-code'; | ||
export declare function createBindingIdentifier(state: ParserState, context: Context, code: DiagnosticCode, shouldConsume?: boolean): IdentifierReference; | ||
export declare function extendToAffectedRange(root: RootNode, changeRange: TextChangeRange): TextChangeRange; | ||
export declare function nodeIsMissing(node: any): boolean; | ||
export declare function nodeIsPresent(node: Node): boolean; | ||
export declare function createTextSpanFromBounds(start: number, end: number): TextSpan; | ||
export declare function textSpanEnd(span: TextSpan): number; | ||
export declare function createTextChangeRange(span: TextSpan, newLength: number): TextChangeRange; | ||
export declare function createTextSpan(start: number, length: number): TextSpan; | ||
export declare function textChangeRangeNewSpan(range: TextChangeRange): TextSpan; | ||
export declare function setParentReferences(root: RootNode): RootNode; | ||
export declare function updateTokenPositionsAndMarkElements(sourceFile: RootNode, changeStart: number, changeRangeOldEnd: number, changeRangeNewEnd: number, delta: number): any; | ||
export declare function moveElementEntirelyPastChangeRange(element: any, isArray: boolean, delta: number): void; | ||
//# sourceMappingURL=common.d.ts.map |
@@ -9,3 +9,3 @@ import { Constants } from '../constants'; | ||
export declare function currentNode(state: ParserState): any; | ||
export declare function consumeNode(state: ParserState, context: Context, node: any): any; | ||
export declare function consumeNode(_state: ParserState, _context: Context, node: any): any; | ||
//# sourceMappingURL=incremental.d.ts.map |
@@ -86,3 +86,2 @@ import { ImportCall } from './ast/expressions/import-call'; | ||
import { Constants } from './constants'; | ||
import { NodeCursor } from './incremental/node-cursor'; | ||
import { ScopeState } from './scope'; | ||
@@ -96,3 +95,3 @@ import { Context, BindingType, ParserState, Destructible, PropertyKind, ArrowKind, DestuctionKind } from './common'; | ||
} | ||
export declare function create(source: string, nodeCursor?: NodeCursor): ParserState; | ||
export declare function create(source: string, nodeCursor?: any): ParserState; | ||
export declare function parseModuleItemList(state: ParserState, context: Context, scope: ScopeState, statementList: Statement[]): Statement[]; | ||
@@ -99,0 +98,0 @@ export declare function parseStatementList(state: ParserState, context: Context, scope: ScopeState, statementList: Statement[]): Statement[]; |
{ | ||
"name": "escaya", | ||
"version": "0.0.40", | ||
"description": "An blazing fast 100% spec compliant, incremental javascript parser written in Typescript", | ||
"version": "0.0.41", | ||
"description": "A blazing fast 100% spec compliant, self-hosted incremental javascript parser written in Typescript", | ||
"main": "dist/escaya.umd.min.js", | ||
@@ -13,29 +13,12 @@ "module": "dist/escaya.esm.min.js", | ||
"license": "ISC", | ||
"homepage": "https://github.com/escaya/escaya", | ||
"homepage": "https://github.com/kflash/escaya", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/escaya/escaya" | ||
"url": "https://github.com/kflash/escaya" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/escaya/escaya/issues" | ||
"url": "https://github.com/kflash/escaya/issues" | ||
}, | ||
"keywords": [ | ||
"lightweight", | ||
"parer", | ||
"incremental", | ||
"error", | ||
"recovery", | ||
"esnext", | ||
"ast", | ||
"es2015", | ||
"es2016", | ||
"es2017", | ||
"es2018", | ||
"es2019", | ||
"es2020", | ||
"es2021", | ||
"ecmascript", | ||
"javascript", | ||
"performance", | ||
"acorn" | ||
"lightweight" | ||
], | ||
@@ -69,26 +52,26 @@ "files": [ | ||
"devDependencies": { | ||
"@types/mocha": "^7.0.2", | ||
"@types/node": "^14.0.14", | ||
"@typescript-eslint/eslint-plugin": "^3.9.1", | ||
"@typescript-eslint/parser": "^3.9.1", | ||
"@types/mocha": "^8.0.3", | ||
"@types/node": "^14.6.4", | ||
"@typescript-eslint/eslint-plugin": "^4.1.0", | ||
"@typescript-eslint/parser": "^4.1.0", | ||
"chalk": "^3.0.0", | ||
"coveralls": "^3.0.9", | ||
"coveralls": "^3.1.0", | ||
"cross-env": "^7.0.2", | ||
"eslint": "^7.7.0", | ||
"eslint-plugin-import": "^2.22.0", | ||
"eslint": "^7.8.1", | ||
"eslint-plugin-import": "^2.20.1", | ||
"eslint-plugin-node": "^11.1.0", | ||
"glob": "^7.1.6", | ||
"husky": "^4.2.5", | ||
"mocha": "^8.1.1", | ||
"husky": "^4.3.0", | ||
"mocha": "^8.1.3", | ||
"nyc": "^15.1.0", | ||
"path": "^0.12.7", | ||
"prettier": "^2.1.0", | ||
"prettier": "^2.1.1", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.26.5", | ||
"rollup": "^2.26.11", | ||
"rollup-plugin-replace": "^2.2.0", | ||
"rollup-plugin-terser": "^7.0.0", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"rollup-plugin-typescript2": "^0.27.2", | ||
"source-map-support": "^0.5.19", | ||
"source-map-support": "^0.5.13", | ||
"test262-parser-tests": "0.0.5", | ||
"ts-node": "^9.0.0", | ||
"ts-node": "9.0.0", | ||
"tsconfig-paths": "^3.9.0", | ||
@@ -105,6 +88,3 @@ "typescript": "^4.0.2", | ||
"node": ">=6.0.0" | ||
}, | ||
"dependencies": { | ||
"@babel/parser": "^7.11.5" | ||
} | ||
} |
@@ -0,0 +0,0 @@ <h1 align="center">Escaya</h1> |
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
0
446313
137
3584
- Removed@babel/parser@^7.11.5
- Removed@babel/helper-string-parser@7.25.9(transitive)
- Removed@babel/helper-validator-identifier@7.25.9(transitive)
- Removed@babel/parser@7.26.5(transitive)
- Removed@babel/types@7.26.5(transitive)