blob: cb2b348fa0db2d3da92f9f57c7ecef4a16030231 [file] [log] [blame] [edit]
40 columns |
>>> Getter.
variable = . getter;
<<< 3.10
variable = .getter;
>>> Method call with unsplit arguments.
variable = .method(1,x:2,3,y:4);
<<< 3.10
variable = .method(1, x: 2, 3, y: 4);
>>> Method call with split arguments.
variable = .method(one, x: two, three, y: four);
<<< 3.10
variable = .method(
one,
x: two,
three,
y: four,
);
>>> Generic method call.
variable = . method < int , String > ( ) ;
<<< 3.10
variable = .method<int, String>();
>>> Constructor.
variable = .new(1);
<<< 3.10
variable = .new(1);
>>> Const constructor.
variable = const . new ( );
<<< 3.10
variable = const .new();
>>> Const named constructor.
variable = const . named ( );
<<< 3.10
variable = const .named();
>>> Unsplit selector chain.
v = . property . method() . x . another();
<<< 3.10
v = .property.method().x.another();
>>> Split selector chain on shorthand getter.
variable = .shorthand.method().another().third();
<<< 3.10
variable = .shorthand
.method()
.another()
.third();
>>> Split selector chain on shorthand method.
variable = .shorthand().method().getter.another().third();
<<< 3.10
variable = .shorthand()
.method()
.getter
.another()
.third();
>>> Split in shorthand method call argument list.
context(.shorthand(argument, anotherArgument, thirdArgument)
.chain().another().third().fourthOne());
<<< 3.10
context(
.shorthand(
argument,
anotherArgument,
thirdArgument,
)
.chain()
.another()
.third()
.fourthOne(),
);
>>> Nested call.
.method(.getter,.method(.new(.new())),const.ctor());
<<< 3.10
.method(
.getter,
.method(.new(.new())),
const .ctor(),
);