|
|
|
@ -122,7 +122,6 @@ export default class CodeParserAntlrService { |
|
|
|
|
try { |
|
|
|
|
this.plugin.currentFile = await this.plugin.call('fileManager', 'file') |
|
|
|
|
if (this.plugin.currentFile && this.plugin.currentFile.endsWith('.sol')) { |
|
|
|
|
if (!this.plugin.currentFile) return |
|
|
|
|
const fileContent = text || await this.plugin.call('fileManager', 'readFile', this.plugin.currentFile) |
|
|
|
|
if (!this.cache[this.plugin.currentFile]) { |
|
|
|
|
this.cache[this.plugin.currentFile] = { |
|
|
|
@ -137,8 +136,6 @@ export default class CodeParserAntlrService { |
|
|
|
|
} catch (e) { |
|
|
|
|
// do nothing
|
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
// do nothing
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} catch (e) { |
|
|
|
@ -243,7 +240,6 @@ export default class CodeParserAntlrService { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (this.plugin.currentFile && this.plugin.currentFile.endsWith('.sol')) { |
|
|
|
|
if (!this.plugin.currentFile) return |
|
|
|
|
const fileContent = text || await this.plugin.call('fileManager', 'readFile', this.plugin.currentFile) |
|
|
|
|
try { |
|
|
|
|
const startTime = Date.now() |
|
|
|
|