diff options
author | Austin Morton <apmorton@users.noreply.github.com> | 2020-09-26 16:59:26 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-26 16:59:26 -0400 |
commit | 044dcfbf8885d0115e64cf75f74a0f40f54e2370 (patch) | |
tree | 1dcc3e27139600d8e85004dc2a840bb420ccc835 /lib/compilers/golang.js | |
parent | bac07fea6d2d4ed5fb7070c51e4cf3e56e3c155a (diff) | |
download | compiler-explorer-044dcfbf8885d0115e64cf75f74a0f40f54e2370.tar.gz compiler-explorer-044dcfbf8885d0115e64cf75f74a0f40f54e2370.zip |
Use ES6 Modules (#2132)
Diffstat (limited to 'lib/compilers/golang.js')
-rw-r--r-- | lib/compilers/golang.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/compilers/golang.js b/lib/compilers/golang.js index 434e3a693..423030500 100644 --- a/lib/compilers/golang.js +++ b/lib/compilers/golang.js @@ -22,10 +22,12 @@ // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE // POSSIBILITY OF SUCH DAMAGE. -const BaseCompiler = require('../base-compiler'), - argumentParsers = require('./argument-parsers'), - _ = require('underscore'), - utils = require('../utils'); +import _ from 'underscore'; + +import { BaseCompiler } from '../base-compiler'; +import * as utils from '../utils'; + +import { ClangParser } from './argument-parsers'; // Each arch has a list of jump instructions in // Go source src/cmd/asm/internal/arch. @@ -42,7 +44,7 @@ const jumpPrefixes = [ 'cmpub', ]; -class GolangCompiler extends BaseCompiler { +export class GolangCompiler extends BaseCompiler { static get key() { return 'golang'; } convertNewGoL(code) { @@ -229,8 +231,6 @@ class GolangCompiler extends BaseCompiler { } getArgumentParser() { - return argumentParsers.Clang; + return ClangParser; } } - -module.exports = GolangCompiler; |