Class CommaSeparatedParameters
java.lang.Object
org.ek9lang.compiler.repair.CommaSeparatedParameters
- All Implemented Interfaces:
TextRule
Parameters declared the way other languages declare them (was
ParameterDeclarations.commaSeparated):
-> a as Integer, b as String - several parameters on one -> line. EK9 takes one parameter on the
arrow line, or a bare -> with one indented line per parameter; a comma there is never valid, and the split
is the only reading. ParametersInParentheses is the other such rule.-
Nested Class Summary
Nested classes/interfaces inherited from interface TextRule
TextRule.Rewrite -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(List<String> lines, SyntaxProbe.SyntaxError failure) -> a as Integer, b as String- one parameter per line under a bare->.
-
Field Details
-
PARAMETER
One parameter as EK9 declares it:name as Type ....
-
-
Constructor Details
-
CommaSeparatedParameters
CommaSeparatedParameters()
-
-
Method Details