24 lines
No EOL
676 B
Text
24 lines
No EOL
676 B
Text
proposal Pipeline{
|
|
pair SingleArgument {
|
|
applicable to {
|
|
"<<someFunctionIdent:Identifier | MemberExpression>>(<<someFunctionParam: Expression | Identifier>>);"
|
|
}
|
|
|
|
transform to {
|
|
"<<someFunctionParam>> |> <<someFunctionIdent>>(%);"
|
|
}
|
|
}
|
|
|
|
pair MultiArgument {
|
|
applicable to {
|
|
"<<someFunctionIdent:Identifier>>(
|
|
<<firstFunctionParam : Expression | Identifier>>,
|
|
<<restOfFunctionParams: anyRest>>
|
|
);"
|
|
}
|
|
|
|
transform to {
|
|
"<<firstFunctionParam>> |> <<someFunctionIdent>>(%, <<restOfFunctionParams>>);"
|
|
}
|
|
}
|
|
} |