Assume a simple example against jQuery that works perfectly fine.
$('#id').add('<div></div>')
Now let's try to break it up, so that a . continues against the type. This sort of thing can be common for fluent APIs like jQuery.
$('#id')
.add('<div></div>')
Unfortunately the second line doesn't consider the type of the returned object from the previous line. I think a simple solution would be to handle parsing lines that start with . specially.
To make this work even better #21 would need to be implemented.
Assume a simple example against jQuery that works perfectly fine.
Now let's try to break it up, so that a
.
continues against the type. This sort of thing can be common for fluent APIs like jQuery.Unfortunately the second line doesn't consider the type of the returned object from the previous line. I think a simple solution would be to handle parsing lines that start with
.
specially.To make this work even better #21 would need to be implemented.