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/swift.js | |
parent | bac07fea6d2d4ed5fb7070c51e4cf3e56e3c155a (diff) | |
download | compiler-explorer-044dcfbf8885d0115e64cf75f74a0f40f54e2370.tar.gz compiler-explorer-044dcfbf8885d0115e64cf75f74a0f40f54e2370.zip |
Use ES6 Modules (#2132)
Diffstat (limited to 'lib/compilers/swift.js')
-rw-r--r-- | lib/compilers/swift.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/compilers/swift.js b/lib/compilers/swift.js index f1fa0137c..2951169bc 100644 --- a/lib/compilers/swift.js +++ b/lib/compilers/swift.js @@ -22,10 +22,11 @@ // 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'); +import { BaseCompiler } from '../base-compiler'; -class SwiftCompiler extends BaseCompiler { +import { ClangParser } from './argument-parsers'; + +export class SwiftCompiler extends BaseCompiler { static get key() { return 'swift'; } getSharedLibraryPathsAsArguments() { @@ -33,12 +34,10 @@ class SwiftCompiler extends BaseCompiler { } getArgumentParser() { - return argumentParsers.Clang; + return ClangParser; } isCfgCompiler(/*compilerVersion*/) { return true; } } - -module.exports = SwiftCompiler; |