-
Notifications
You must be signed in to change notification settings - Fork 125
Support URIs in part-of directives. #626
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some pendantry about the usage of Function below. I don't necessarily think anyone is going to be looking at this file to learn how the feature works... but IMO we may as well be careful
test/splitting/function_types.unit
Outdated
<<< | ||
Function(parameter1, | ||
void printFn(param1, param2)) f; | ||
>>> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit] no name on this one? what is interesting about having a shorter first parameter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, not all of the tests have descriptions. I try to add them when it's worthwhile, but it's often obvious from the test.
In this case, it was an accidental copy/paste error and is redundant with the above one. Removed it.
VerylongParameterType | ||
parameterName) f; | ||
>>> split in function type and on variable name | ||
Function(VeryVeryVeryVeryLongParameterType) veryLongVariableName; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit] this isn't a VeryVeryVeryVeryLongParameterType it's a veryVeryVeryVeryLongParameterName
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is actually a type (though it doesn't matter either way for this test). Unlike the old function type syntax, the new syntax wisely assumes if you omit one identifier, you're omitting the name, not the type.
Function(int, String, Function(parameter1, parameter2, parameter3)) f; | ||
<<< | ||
Function( | ||
int, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit] this is misleading... IIUC this is a parameter named 'int' of type 'dynamic'. Or am I wrong?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above.
Fix #615.