From fdeb97012a5be9f50efe5ee28cf2537711547c0f Mon Sep 17 00:00:00 2001 From: filip mertens Date: Wed, 1 Jun 2022 09:57:42 +0200 Subject: [PATCH] ts --- libs/remix-core-plugin/src/lib/editor-context-listener.ts | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/remix-core-plugin/src/lib/editor-context-listener.ts b/libs/remix-core-plugin/src/lib/editor-context-listener.ts index 144076cfae..db6799cb73 100644 --- a/libs/remix-core-plugin/src/lib/editor-context-listener.ts +++ b/libs/remix-core-plugin/src/lib/editor-context-listener.ts @@ -74,6 +74,9 @@ export class EditorContextListener extends Plugin { console.log('compiler loaded') await this.compile() await this.getAST() + const a = 'function (){a=4; c.getBook().run.}' + const ast = (SolidityParser as any).parse(a, { loc: true, range: true, tolerant: true }) + console.log('BAD AST', ast) }) }) diff --git a/package.json b/package.json index 94251acdfa..ec1788e7c2 100644 --- a/package.json +++ b/package.json @@ -323,7 +323,7 @@ "ts-jest": "^27.0.5", "ts-node": "^7.0.1", "tslint": "~6.0.0", - "typescript": "^4.7.2", + "typescript": "^4.4.3", "uglify-js": "^2.8.16", "vm-browserify": "0.0.4", "watchify": "^3.9.0",