-
Notifications
You must be signed in to change notification settings - Fork 128
Enable language version 3.10 and format dot shorthands. #1745
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
7f744ea
Enable language version 3.10 and format dot shorthands.
munificent cd039bb
Merge branch 'main' into dot-shorthands
munificent 9499bcd
Add a more complex nested dot shorthand test.
munificent b6fe575
Update to analyzer 8.0.0 and remove workarounds.
munificent File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
40 columns | | ||
munificent marked this conversation as resolved.
Show resolved
Hide resolved
|
||
(experiment dot-shorthands) | ||
>>> Getter. | ||
variable = . getter; | ||
<<< 3.9 | ||
variable = .getter; | ||
>>> Method call with unsplit arguments. | ||
variable = .method(1,x:2,3,y:4); | ||
<<< 3.9 | ||
variable = .method(1, x: 2, 3, y: 4); | ||
>>> Method call with split arguments. | ||
variable = .method(one, x: two, three, y: four); | ||
<<< 3.9 | ||
variable = .method( | ||
one, | ||
x: two, | ||
three, | ||
y: four, | ||
); | ||
>>> Generic method call. | ||
variable = . method < int , String > ( ) ; | ||
<<< 3.9 | ||
variable = .method<int, String>(); | ||
>>> Constructor. | ||
variable = .new(1); | ||
<<< 3.9 | ||
variable = .new(1); | ||
>>> Const constructor. | ||
variable = const . new ( ); | ||
<<< 3.9 | ||
variable = const .new(); | ||
>>> Const named constructor. | ||
variable = const . named ( ); | ||
<<< 3.9 | ||
variable = const .named(); | ||
>>> Unsplit selector chain. | ||
v = . property . method() . x . another(); | ||
<<< 3.9 | ||
v = .property.method().x.another(); | ||
>>> Split selector chain on shorthand getter. | ||
variable = .shorthand.method().another().third(); | ||
<<< 3.9 | ||
variable = .shorthand | ||
.method() | ||
.another() | ||
.third(); | ||
>>> Split selector chain on shorthand method. | ||
variable = .shorthand().method().getter.another().third(); | ||
<<< 3.9 | ||
variable = .shorthand() | ||
.method() | ||
.getter | ||
.another() | ||
.third(); | ||
>>> Split in shorthand method call argument list. | ||
context(.shorthand(argument, anotherArgument, thirdArgument) | ||
.chain().another().third().fourthOne()); | ||
<<< 3.9 | ||
context( | ||
.shorthand( | ||
argument, | ||
anotherArgument, | ||
thirdArgument, | ||
) | ||
.chain() | ||
.another() | ||
.third() | ||
.fourthOne(), | ||
); | ||
>>> Nested call. | ||
.method(.getter,.method(.new(.new())),const.ctor()); | ||
<<< | ||
.method( | ||
.getter, | ||
.method(.new(.new())), | ||
const .ctor(), | ||
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
40 columns | | ||
(experiment dot-shorthands) | ||
>>> Line comment after dot. | ||
variable = . // Comment. | ||
whoDoesThis(); | ||
<<< 3.9 | ||
variable = | ||
. // Comment. | ||
whoDoesThis(); | ||
>>> Block comment after dot. | ||
variable = ./* Comment. */whoDoesThis(); | ||
<<< 3.9 | ||
variable = | ||
. /* Comment. */ whoDoesThis(); | ||
>>> Line comment after `const`. | ||
variable = const // Comment. | ||
. whoDoesThis(); | ||
<<< 3.9 | ||
variable = | ||
const // Comment. | ||
.whoDoesThis(); | ||
>>> Block comment after `const`. | ||
variable = const/* Comment. */.whoDoesThis(); | ||
<<< 3.9 | ||
variable = | ||
const /* Comment. */ .whoDoesThis(); |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.