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",