Skip to content

Commit

Permalink
Export matching api
Browse files Browse the repository at this point in the history
  • Loading branch information
wcjohnson committed Oct 25, 2017
1 parent 8c2ba15 commit 7da6b5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transforms/match.lsc
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ transformMatchCase(mtch, casePath) ->
test: if c.outerGuard?.type != "MatchElse": mtch~transformMatchTest(casePath)
}

transformMatchCases(mtch, [casePath, ...rest]) ->
export transformMatchCases(mtch, [casePath, ...rest]) ->
c = casePath.node
{ test, consequent } = mtch~transformMatchCase(casePath)

Expand All @@ -148,7 +148,7 @@ transformMatchCases(mtch, [casePath, ...rest]) ->
consequent

// Computed values needed in recursive descent.
getMatchInfo(path, discriminantRef, isLinter) ->
export getMatchInfo(path, discriminantRef, isLinter) ->
{ node } = path
{
path, node, discriminantRef
Expand Down

0 comments on commit 7da6b5e

Please sign in to comment.