diff --git a/src/app.js b/src/app.js index 7c8fbb1a7f..60a51de921 100644 --- a/src/app.js +++ b/src/app.js @@ -200,7 +200,6 @@ function run () { startdebugging(txResult.transactionHash) }) - // ----------------- Tx listener ----------------- var transactionReceiptResolver = { _transactionReceipts: {}, @@ -402,8 +401,20 @@ function run () { } var renderer = new Renderer(rendererAPI) + // ----------------- StaticAnalysis ----------------- + + var staticAnalysisAPI = { + renderWarning: (label, warningContainer, type) => { + return renderer.error(label, warningContainer, type) + }, + offsetToLineColumn: (location, file) => { + return offsetToLineColumnConverter.offsetToLineColumn(location, file, compiler.lastCompilationResult) + } + } var staticanalysis = new StaticAnalysis(staticAnalysisAPI, compiler.event) + // ---------------- Righthand-panel -------------------- + var rhpAPI = { config: config, setEditorSize (delta) { diff --git a/src/app/editor/editor.js b/src/app/editor/editor.js index e179bf4608..8369e83d39 100644 --- a/src/app/editor/editor.js +++ b/src/app/editor/editor.js @@ -70,8 +70,6 @@ function Editor (opts = {}) { this.setPosition = function (line, column, noClip) { editor.moveCursorTo(line, column) - //var anchor = new ace.Anchor(editor, line, column) - //anchor.setPosition(line, column, noClip) } this.editorFontSize = function (incr) { diff --git a/src/app/files/browser-files.js b/src/app/files/browser-files.js index dbe9ee028e..b14163a892 100644 --- a/src/app/files/browser-files.js +++ b/src/app/files/browser-files.js @@ -176,5 +176,4 @@ function Files (storage) { } } - module.exports = Files