Skip to content

Commit

Permalink
Merge pull request #11 from fink-lang/larix-ast-changes
Browse files Browse the repository at this point in the history
feat(ast): upgrade to latest larix with AST simplifications
  • Loading branch information
kollhof authored Feb 27, 2020
2 parents 6bed915 + 60297a0 commit 5684e22
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@babel/cli": "^7.2.3",
"@babel/plugin-proposal-pipeline-operator": "^7.3.2",
"@babel/preset-env": "^7.3.4",
"@fink/larix": "^2.1.0",
"@fink/larix": "^3.0.0",
"@nearmap/eslint-config-base": "^1.1.0",
"babel-eslint": "^10.1.0",
"commitizen": "^4.0.3",
Expand Down
2 changes: 1 addition & 1 deletion src/transform/array.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {arrayExpression} from '@babel/types';


export const transform_array = (node, ctx)=> {
const elems = node.elems.map((elem)=> (
const elems = node.exprs.map((elem)=> (
elem === null
? null
: ctx.transform(elem)
Expand Down
2 changes: 1 addition & 1 deletion src/transform/match.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const match_condition = (value, expr, emit_result, ctx)=> {
};


const split_condition = ({test, result})=> [test, result];
const split_condition = ({left, right})=> [left, right];


function* match_all(value, matches, emit_result, ctx) {
Expand Down
2 changes: 1 addition & 1 deletion src/transform/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {


export const transform_object = (node, ctx)=> {
const props = node.props.map(ctx.transform);
const props = node.exprs.map(ctx.transform);
return objectExpression(props);
};

Expand Down

0 comments on commit 5684e22

Please sign in to comment.