Skip to content

Commit

Permalink
Remove pipeCall
Browse files Browse the repository at this point in the history
  • Loading branch information
wcjohnson committed Oct 7, 2017
1 parent 9578116 commit 416c326
Show file tree
Hide file tree
Showing 12 changed files with 1 addition and 50 deletions.
6 changes: 1 addition & 5 deletions src/config.lsc
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export getMetadata() ->
enhancedComprehension: {
description: "Positional comprehensions and `case` syntax for comprehensions"
valueType: "boolean"
defaultValue: true
stage: "0"
}
noEnforcedSubscriptIndentation: {
Expand Down Expand Up @@ -71,10 +72,6 @@ export getMetadata() ->
description: "Specify an identifier to be transformed into PlaceholderExpression."
valueType: "string"
}
pipeCall: {
description: "a |> b infix binary operator invokes b(a)"
valueType: "boolean"
}
}
}

Expand Down Expand Up @@ -110,7 +107,6 @@ export getParserOpts(pluginOpts, initialParserOpts) ->
if pluginOpts?.placeholderArgs: plugins.push("syntacticPlaceholder")
if pluginOpts?.placeholder:
parserOpts.placeholder = pluginOpts.placeholder
if pluginOpts?.pipeCall: plugins.push("pipeCall")

// TODO: watch upstream on pattern matching; default to their syntax when complete
// patternMatchingVersion = pluginOpts?.patternMatching or "v4"
Expand Down
14 changes: 0 additions & 14 deletions src/transforms/pipe.lsc

This file was deleted.

4 changes: 0 additions & 4 deletions src/visitors/main.lsc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import * as comprehension from "../transforms/comprehension";
import { transformExistentialExpression } from "../transforms/safe";
import { maybeReplaceWithInlinedOperator } from "../transforms/inlinedOperators";
import { transformForInArrayStatement, transformForInObjectStatement, lintForInArrayStatement, lintForInObjectStatement } from "../transforms/for";
import { transformPipeOperator } from '../transforms/pipe'

import { markIdentifier } from "../state/stdlib";

Expand All @@ -24,9 +23,6 @@ export default visitMain(compilerState, programPath): void ->
{ opts } = compilerState
// Main LSC transforms
programPath.traverse({
PipeCallExpression(path): void ->
transformPipeOperator(path)

ForInArrayStatement(path): void ->
// TODO: push the linter conditional down into the transform
// and get linter status from compilerState
Expand Down
3 changes: 0 additions & 3 deletions test/fixtures/pipe-call/basic/actual.js

This file was deleted.

3 changes: 0 additions & 3 deletions test/fixtures/pipe-call/basic/expected.js

This file was deleted.

2 changes: 0 additions & 2 deletions test/fixtures/pipe-call/mixin-pattern/actual.js

This file was deleted.

5 changes: 0 additions & 5 deletions test/fixtures/pipe-call/mixin-pattern/expected.js

This file was deleted.

3 changes: 0 additions & 3 deletions test/fixtures/pipe-call/options.json

This file was deleted.

6 changes: 0 additions & 6 deletions test/fixtures/pipe-call/recompose-pattern/actual.js

This file was deleted.

3 changes: 0 additions & 3 deletions test/fixtures/pipe-call/recompose-pattern/expected.js

This file was deleted.

1 change: 0 additions & 1 deletion test/fixtures/pipe-call/rhs-expr/actual.js

This file was deleted.

1 change: 0 additions & 1 deletion test/fixtures/pipe-call/rhs-expr/expected.js

This file was deleted.

0 comments on commit 416c326

Please sign in to comment.