blob: f084a100de3abe382a1aeabd46c0a371b772c3c8 [file] [edit]
40 columns |
>>> split type parameters
typedef G = T Function<TypeOne, TypeTwo, TypeThree>();
<<< 3.6
typedef G = T Function<TypeOne, TypeTwo,
TypeThree>();
>>> split all type parameters
typedef G = T Function<TypeOne, TypeTwo, TypeThree, TypeFour, TypeFive, TypeSix>();
<<< 3.6
typedef G = T Function<
TypeOne,
TypeTwo,
TypeThree,
TypeFour,
TypeFive,
TypeSix>();
>>> split type and value parameters
typedef G = T Function<TypeOne, TypeTwo, TypeThree>(TypeOne one, TypeTwo two, TypeThree three);
<<< 3.6
typedef G = T Function<TypeOne, TypeTwo,
TypeThree>(TypeOne one,
TypeTwo two, TypeThree three);
>>> generic typedef parameters on one line
typedef Foo<T, S> = Function();
<<< 3.6
typedef Foo<T, S> = Function();
>>> generic typedef parameters that split
typedef LongfunctionType<First, Second, Third, Fourth, Fifth, Sixth> = Function(First first, Second second, Third third, Fourth fourth);
<<< 3.6
typedef LongfunctionType<First, Second,
Third, Fourth, Fifth, Sixth>
= Function(
First first,
Second second,
Third third,
Fourth fourth);
>>> both type parameter lists split
typedef LongfunctionType<First, Second, Third, Fourth, Fifth, Sixth> = Function<Seventh>(First first, Second second, Third third, Fourth fourth);
<<< 3.6
typedef LongfunctionType<First, Second,
Third, Fourth, Fifth, Sixth>
= Function<Seventh>(
First first,
Second second,
Third third,
Fourth fourth);
>>> all three parameter lists split
typedef LongfunctionType<First, Second, Third, Fourth, Fifth, Sixth> = Function<Seventh, Eighth, Ninth, Tenth, Eleventh, Twelfth, Thirteenth>(First first, Second second, Third third, Fourth fourth);
<<< 3.6
typedef LongfunctionType<First, Second,
Third, Fourth, Fifth, Sixth>
= Function<
Seventh,
Eighth,
Ninth,
Tenth,
Eleventh,
Twelfth,
Thirteenth>(
First first,
Second second,
Third third,
Fourth fourth);
>>> non-function split type parameters
typedef G = SomeType<TypeOne, TypeTwo, TypeThree>;
<<< 3.6
typedef G = SomeType<TypeOne, TypeTwo,
TypeThree>;
>>> non-function split all type parameters
typedef G = SomeType<TypeOne, TypeTwo, TypeThree, TypeFour, TypeFive, TypeSix>;
<<< 3.6
typedef G = SomeType<
TypeOne,
TypeTwo,
TypeThree,
TypeFour,
TypeFive,
TypeSix>;
>>> non-function generic typedef parameters on one line
typedef Foo<T, S> = SomeType;
<<< 3.6
typedef Foo<T, S> = SomeType;
>>> non-function generic typedef parameters that split
typedef LongGenericType<First, Second, Third, Fourth, Fifth, Sixth> = AnotherType<First, Second, Third, Fourth>;
<<< 3.6
typedef LongGenericType<First, Second,
Third, Fourth, Fifth, Sixth>
= AnotherType<First, Second, Third,
Fourth>;